diff --git a/src/MIDI.hpp b/src/MIDI.hpp index 1731916..144e40e 100644 --- a/src/MIDI.hpp +++ b/src/MIDI.hpp @@ -339,7 +339,7 @@ template void MidiInterface::sendPitchBend(double inPitchValue, Channel inChannel) { - const int scale = inPitchValue > 0.0 ? MIDI_PITCHBEND_MAX : MIDI_PITCHBEND_MIN; + const int scale = inPitchValue > 0.0 ? MIDI_PITCHBEND_MAX : - MIDI_PITCHBEND_MIN; const int value = int(inPitchValue * double(scale)); sendPitchBend(value, inChannel); }