diff --git a/libs/ardour/mtc_slave.cc b/libs/ardour/mtc_slave.cc index 76abafb12b..39b9525bd0 100644 --- a/libs/ardour/mtc_slave.cc +++ b/libs/ardour/mtc_slave.cc @@ -286,6 +286,7 @@ MTC_Slave::speed_and_position (double& speed, nframes64_t& pos) session.request_transport_speed (0); update_mtc_status (MIDI::Parser::MTC_Stopped); reset(); + DEBUG_TRACE (DEBUG::MTC, "MTC not seen for 1/4 second - reset\n"); return false; } @@ -293,6 +294,10 @@ MTC_Slave::speed_and_position (double& speed, nframes64_t& pos) speed_now = (double) ((last.position - first_mtc_frame) / (double) (now - first_mtc_time)); + DEBUG_TRACE (DEBUG::MTC, string_compose ("apparent speed = %1 from last %2 now %3 first %4\n", + speed_now, last.position, now, first_mtc_time)); + + accumulator[accumulator_index++] = speed_now; if (accumulator_index >= accumulator_size) {