- nframes_t next_tick_offset = nframes_t(next_tick) - transport_frames;
-
-#ifdef DEBUG_MIDI_CLOCK
- cerr << "Transport:" << transport_frames
- << ":Last tick time:" << _last_tick << ":"
- << ":Next tick time:" << next_tick << ":"
- << "Offset:" << next_tick_offset << ":"
- << "cycle length:" << jack_port->nframes_this_cycle()
- << endl;
-#endif
-
- if (next_tick_offset >= jack_port->nframes_this_cycle())
+ framecnt_t next_tick_offset = framecnt_t(next_tick) - transport_frames;
+
+ DEBUG_TRACE (PBD::DEBUG::MidiClock,
+ string_compose ("Transport: %1, last tick time: %2, next tick time: %3, offset: %4, cycle length: %5\n",
+ transport_frames, _last_tick, next_tick, next_tick_offset, _midi_port->nframes_this_cycle()
+ )
+ );
+
+ if (next_tick_offset >= _midi_port->nframes_this_cycle())