1

enter image description here

I'm using https://github.com/LeffelMania/android-midi-lib to read meta-event and get midi data. I think I drew correctly like this but the problem is timing concept. I can't render UI match with playing music, even know BPM, Quarter pulse per note(QPPN), microsecond per quarter note(tempo). Any suggest?

Slim_user71169
  • 806
  • 3
  • 12
  • 25
  • 2
    Just in case you didn't know, there is lag time between the time a note is played and the time it is actually played through the speaker. If that's not the problem, please know that your problem is too broad in its current state. You'll need to simplify your problem and also simplify your midi file so that it plays only one single note for a very specific duration to begin with, and nothing else. – Stephan Branczyk Aug 12 '14 at 06:07
  • @StephanBranczyk No. It's not about lag time. It's about I don't know how to render a note right in time. – Slim_user71169 Aug 12 '14 at 06:21
  • Render the test midi test file with a midi program on your PC. – Stephan Branczyk Aug 12 '14 at 06:32
  • 1
    related: [Reading notes from MIDI file using NAudio](http://stackoverflow.com/q/23888692/11654) – CL. Aug 12 '14 at 07:43
  • Is that a screenshot from your app? it looks great! – Phantômaxx Aug 12 '14 at 10:57
  • @FrankN.Stein: No. But I can draw the same. My problems is just playing match with those shapes. I don't know what to do with BPM, QPPN, tempo even know these numbers. – Slim_user71169 Aug 13 '14 at 00:33
  • So, you lack some music bases... for sure, I ca say that BPM = beats per minute. tempo should be beats per measure, QPPN... never heard . nothing that Google won't help yuou to find. Then the rest is math. – Phantômaxx Aug 13 '14 at 07:26

0 Answers0