From 8e087e40b1a682cffd10b3739102ee7ef7396c0b Mon Sep 17 00:00:00 2001 From: Francois Best Date: Sun, 17 Jun 2012 12:10:58 +0200 Subject: [PATCH] Fixed ambiguous call. --- src/MIDI.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/MIDI.cpp b/src/MIDI.cpp index 5908157..9a37d35 100644 --- a/src/MIDI.cpp +++ b/src/MIDI.cpp @@ -324,8 +324,7 @@ void MIDI_Class::sendPitchBend(double PitchValue, byte Channel) { - unsigned int pitchval = (PitchValue+1.f)*8192; - if (pitchval > 16383) pitchval = 16383; // overflow protection + int pitchval = PitchValue * MIDI_PITCHBEND_MAX; sendPitchBend(pitchval,Channel); }