Fix sendPitchBend multiplication
This commit is contained in:
parent
ff3052ceb4
commit
150cecd450
|
|
@ -339,7 +339,7 @@ template<class Transport, class Settings, class Platform>
|
||||||
void MidiInterface<Transport, Settings, Platform>::sendPitchBend(double inPitchValue,
|
void MidiInterface<Transport, Settings, Platform>::sendPitchBend(double inPitchValue,
|
||||||
Channel inChannel)
|
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));
|
const int value = int(inPitchValue * double(scale));
|
||||||
sendPitchBend(value, inChannel);
|
sendPitchBend(value, inChannel);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue