Fixed ambiguous call.

This commit is contained in:
Francois Best 2012-06-17 12:10:58 +02:00
parent cfe39e04aa
commit 8e087e40b1
1 changed files with 1 additions and 2 deletions

View File

@ -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);
}