diff --git a/src/MIDI.hpp b/src/MIDI.hpp index c57cc2b..12d0019 100644 --- a/src/MIDI.hpp +++ b/src/MIDI.hpp @@ -284,7 +284,7 @@ template void MidiInterface::sendPitchBend(double inPitchValue, Channel inChannel) { - const int value = inPitchValue * MIDI_PITCHBEND_MAX * Settings::Toto; + const int value = int(inPitchValue * double(MIDI_PITCHBEND_MAX)); sendPitchBend(value, inChannel); }