From 150cecd45053252f684bc641b7a414dce907f120 Mon Sep 17 00:00:00 2001 From: stfufane Date: Sat, 30 May 2020 17:50:37 +0200 Subject: [PATCH] Fix sendPitchBend multiplication --- src/MIDI.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }