#include <cstring>
#include <cstdlib>
#include <unistd.h>
-#include <string>
+#include <cstring>
#include <iostream>
#include <iterator>
<< "Channel "
<< (msg[0]&0xF)+1
<< " Pitch Bend "
- << ((msg[1]<<7)|msg[2])
+ << ((msg[2]<<7)|msg[1])
<< endmsg;
break;
trace_connection.disconnect ();
if (onoff) {
+ cerr << "enabling tracing for port " << _port.name() << endl;
trace_stream = o;
trace_prefix = prefix;
trace_connection = any.connect (mem_fun (*this, &Parser::trace_event));
switch (inbyte) {
case 0xf8:
- timing (*this);
+ timing (*this, _midi_clock_timestamp);
break;
case 0xfa:
- start (*this);
+ start (*this, _midi_clock_timestamp);
break;
case 0xfb:
- contineu (*this);
+ contineu (*this, _midi_clock_timestamp);
break;
case 0xfc:
- stop (*this);
+ stop (*this, _midi_clock_timestamp);
break;
case 0xfe:
/* !!! active sense message in realtime_msg: should not reach here
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;