aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--sound/mididrv.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/mididrv.cpp b/sound/mididrv.cpp
index 62ca5bd695..5733d7f546 100644
--- a/sound/mididrv.cpp
+++ b/sound/mididrv.cpp
@@ -1214,7 +1214,7 @@ void MidiDriver_ALSA::send(uint32 b)
case 0xE0:{
// long theBend = ((((long)midiCmd[1] + (long)(midiCmd[2] << 7))) - 0x2000) / 4;
// snd_seq_ev_set_pitchbend(&ev, chanID, theBend);
- long theBend = (long)midiCmd[1] + (long)(midiCmd[2] << 7);
+ long theBend = ((long)midiCmd[1] + (long)(midiCmd[2] << 7)) - 0x2000;
snd_seq_ev_set_pitchbend(&ev, chanID, theBend);
send_event(1);
}