Fix float pitch bend.
This commit is contained in:
parent
d48f371b96
commit
55f91d54aa
|
|
@ -284,7 +284,7 @@ template<class SerialPort, class Settings>
|
||||||
void MidiInterface<SerialPort, Settings>::sendPitchBend(double inPitchValue,
|
void MidiInterface<SerialPort, Settings>::sendPitchBend(double inPitchValue,
|
||||||
Channel inChannel)
|
Channel inChannel)
|
||||||
{
|
{
|
||||||
const int value = inPitchValue * MIDI_PITCHBEND_MAX * Settings::Toto;
|
const int value = int(inPitchValue * double(MIDI_PITCHBEND_MAX));
|
||||||
sendPitchBend(value, inChannel);
|
sendPitchBend(value, inChannel);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue