keijiro / MidiJack

MIDI input plugin for Unity
697 stars 113 forks source link

Note up triggers twice #43

Open tomkail opened 5 years ago

tomkail commented 5 years ago

Tested on OSX with a drum kit and keyboard. On hitting a drum I expect to see a note on and an note off. What I see is two note ons and an a note off. The second note on has data2 of 0. Should the system avoid registering note on if note off is detected?

keijiro commented 5 years ago

Thanks for the report. Hmm, I have never seen a device that sends a note-on message with data2=0. Which device (drum kit) are you using?

tomkail commented 5 years ago

Axus AXK2 (It's a cheap one). However, it happens on my Casio keyboard too. Just tested again on a fresh version of the package, here's the result of a note up/down via keyboard:

Note pressed NoteOn: Ch1,48,0.6220472

Note released NoteOn: Ch1,48,0 NoteOff: Ch1,48

tomascinga commented 5 years ago

Happens to me too on M-Audio O2.