diff options
author | Jesse Chappell <jesse@essej.net> | 2008-07-15 04:07:21 +0000 |
---|---|---|
committer | Jesse Chappell <jesse@essej.net> | 2008-07-15 04:07:21 +0000 |
commit | 515546ee99ae71053716959afc0d9c34e5e7ae48 (patch) | |
tree | 498ee9dde3de495ff89aadf4c96f5d28a944a5de /libs/midi++2 | |
parent | 8bb1d55232a5eeb1a10d3e2f6328c2edcee5800b (diff) |
fixed pitchbend byte ordering
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@3607 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/midi++2')
-rw-r--r-- | libs/midi++2/midiparser.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/midi++2/midiparser.cc b/libs/midi++2/midiparser.cc index b80a78d897..36aa1a99cb 100644 --- a/libs/midi++2/midiparser.cc +++ b/libs/midi++2/midiparser.cc @@ -216,7 +216,7 @@ Parser::trace_event (Parser &p, byte *msg, size_t len) << "Channel " << (msg[0]&0xF)+1 << " Pitch Bend " - << ((msg[1]<<7)|msg[2]) + << ((msg[2]<<7)|msg[1]) << endmsg; break; @@ -730,8 +730,8 @@ Parser::signal (byte *msg, size_t len) case MIDI::pitchbend: channel_active_preparse[chan_i] (*this); - pitchbend (*this, (msg[1]<<7)|msg[2]); - channel_pitchbend[chan_i] (*this, (msg[1]<<7)|msg[2]); + pitchbend (*this, (msg[2]<<7)|msg[1]); + channel_pitchbend[chan_i] (*this, (msg[2]<<7)|msg[1]); channel_active_postparse[chan_i] (*this); break; |