You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now the callback for pitch bend data receives the bend value as signed integer, which is not how the MIDI spec deals with them, where they are only ever positive values between 0x0000-0x3FFF with 0x2000 representing "neutral". While it is of course not possible to change the way the API works (that would break every sketch out there), it is possible to add documentation to the callbacks page to explain that if you're going to forward the event on, or write it to file, you have to add 0x2000 to the bend value and then turn it into 7-bit lsb and msb bytes. If you don't the pitch bend information will be incredibly wrong =D
The text was updated successfully, but these errors were encountered:
Right now the callback for pitch bend data receives the bend value as signed integer, which is not how the MIDI spec deals with them, where they are only ever positive values between 0x0000-0x3FFF with 0x2000 representing "neutral". While it is of course not possible to change the way the API works (that would break every sketch out there), it is possible to add documentation to the
callbacks
page to explain that if you're going to forward the event on, or write it to file, you have to add0x2000
to the bend value and then turn it into 7-bitlsb
andmsb
bytes. If you don't the pitch bend information will be incredibly wrong =DThe text was updated successfully, but these errors were encountered: