Skip to content

Commit 150cecd

Browse files
stfufanefranky47
authored andcommitted
Fix sendPitchBend multiplication
1 parent ff3052c commit 150cecd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/MIDI.hpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -339,7 +339,7 @@ template<class Transport, class Settings, class Platform>
339339
void MidiInterface<Transport, Settings, Platform>::sendPitchBend(double inPitchValue,
340340
Channel inChannel)
341341
{
342-
const int scale = inPitchValue > 0.0 ? MIDI_PITCHBEND_MAX : MIDI_PITCHBEND_MIN;
342+
const int scale = inPitchValue > 0.0 ? MIDI_PITCHBEND_MAX : - MIDI_PITCHBEND_MIN;
343343
const int value = int(inPitchValue * double(scale));
344344
sendPitchBend(value, inChannel);
345345
}

0 commit comments

Comments
 (0)