Fix sendPitchBend multiplication

This commit is contained in:
stfufane 2020-05-30 17:50:37 +02:00 committed by Francois Best
parent ff3052ceb4
commit 150cecd450
1 changed files with 1 additions and 1 deletions

View File

@ -339,7 +339,7 @@ template<class Transport, class Settings, class Platform>
void MidiInterface<Transport, Settings, Platform>::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);
}