Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MIDI.sendPitchBend() Problem #345

Open
matalog opened this issue Mar 27, 2024 · 1 comment
Open

MIDI.sendPitchBend() Problem #345

matalog opened this issue Mar 27, 2024 · 1 comment
Labels

Comments

@matalog
Copy link

matalog commented Mar 27, 2024

The description of MIDI.sendPitchBend() here https://fortyseveneffects.github.io/arduino_midi_library/a00032.html#gaaaf16c1334640e690ecbd835d645e4cb is not correct. The negative values of the float f are not converted to negative numbers - they end up positive, so a sweep of the full range of pitch bend values with float from -1 to 1 results in an initial higher bend down to zero and back up to a higher bend again, instead of an initial low bend to zero to high bend.

I was able to use the MIDI.sendPitchBend() correctly by leaving out your code, and scaling my values to signed 16 (14) bit integers and putting that directly in MIDI.sendPitchBend(s14int,1) for example.

@matalog matalog added the bug label Mar 27, 2024
@marchingband
Copy link

Same here, I am using ESP32-S3, not sure if this is an arch related bug. I noticed MIDI_PITCHBEND_MAX is 8191, perhaps if it was 8191.0 it would work as intended.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants