May I know whether it's possible to extract note onset and other musical details (e.g. pitch, note duration) form polyphonic MIDI(i.e. either multiples notes played from treble and bass voices, or chords) using the jMusic API?
It has a method to extract note onset - but it returns zero each time for a given note. However extracting pitch and duration for monophonic (i.e. single note) MIDI using jMusic is possible. But when there exist chords it only capt开发者_Python百科ures a single note of the chord, and note onset returns zero each time.
Is there a way I can resolve this?
Appreciate any insight asap. Thanks in advance
Disclaimer: I have not used jMusic. In fact, I never even heard of it.
But from analyzing MIDI files in the past, one mistake I often made was not analyzing the correct tracks. If your MIDI file has several tracks, make sure you address all of them. Otherwise, if you are not addressing the correct track, you may be missing some notes which could explain your problems.
For example, a MIDI file for a solo piano may be divided into two tracks: treble and bass clefs. If you only analyze the treble clef track, you will miss all of the bass clef notes.
精彩评论