NoteOn turns into NoteOff for velocity 1/127


That shouldn’t happen, right?

1 / 127 = 0.00787401574803149606299212598425


Sounds like a rounding error… Maybe you should be calling the other version of noteOn which takes the velocity as a uint8 rather than a float?


Thanks, it’s hard tracking the velocity in the app since some of the MIDI classes (such as the MidiMessageCollector) passes the velocity as float.
For now I’ve added a workaround that sets none-zero velocity to a minimum of 2/127 whenever I known it changes into float.


The midi class should probably be rounding the number to the nearest integer rather than rounding it down - I’ll tweak that.