From 55f91d54aac28931e6a946229a18fdccea19c336 Mon Sep 17 00:00:00 2001 From: Francois Best Date: Fri, 19 Aug 2016 14:58:39 +0200 Subject: [PATCH] Fix float pitch bend. --- src/MIDI.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); }