From afc8f3710e4878946d46fcdd92a1c4618429321e Mon Sep 17 00:00:00 2001 From: Jamieson Christian Date: Mon, 21 Oct 2002 16:55:26 +0000 Subject: Fixing the ALSA fix. ;) svn-id: r5220 --- sound/mididrv.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); } -- cgit v1.2.3