Fixed ambiguous call.
This commit is contained in:
parent
cfe39e04aa
commit
8e087e40b1
|
|
@ -324,8 +324,7 @@ void MIDI_Class::sendPitchBend(double PitchValue,
|
||||||
byte Channel)
|
byte Channel)
|
||||||
{
|
{
|
||||||
|
|
||||||
unsigned int pitchval = (PitchValue+1.f)*8192;
|
int pitchval = PitchValue * MIDI_PITCHBEND_MAX;
|
||||||
if (pitchval > 16383) pitchval = 16383; // overflow protection
|
|
||||||
sendPitchBend(pitchval,Channel);
|
sendPitchBend(pitchval,Channel);
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue