summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-12-01 15:46:25 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-12-01 15:46:25 +0000
commit50131b3751e6ed5c9ed7450406049b2195ea9ecf (patch)
tree02db24c6bb9a783c1f4ba95cff7acc87bd74140c /libs
parent759267af15ba002231cb04b0a2d1c53ce9e48295 (diff)
continue with MTC debugging
git-svn-id: svn://localhost/ardour2/branches/3.0@6250 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/mtc_slave.cc4
-rw-r--r--libs/midi++2/mtc.cc10
2 files changed, 4 insertions, 10 deletions
diff --git a/libs/ardour/mtc_slave.cc b/libs/ardour/mtc_slave.cc
index 2fd96b7341..e346e11d56 100644
--- a/libs/ardour/mtc_slave.cc
+++ b/libs/ardour/mtc_slave.cc
@@ -216,8 +216,8 @@ MTC_Slave::compute_apparent_speed (nframes64_t now)
if (current.timestamp != 0) {
double speed = (double) ((mtc_frame - current.position) / (double) (now - current.timestamp));
- DEBUG_TRACE (DEBUG::MTC, string_compose ("instantaneous speed = %1 from %2 - %3 / %4 - %5\n",
- speed, mtc_frame, current.position, now, current.timestamp));
+ DEBUG_TRACE (DEBUG::MTC, string_compose ("instantaneous speed = %1 from %2 / %3\n",
+ speed, mtc_frame - current.position, now - current.timestamp));
/* crude low pass filter/smoother for speed */
diff --git a/libs/midi++2/mtc.cc b/libs/midi++2/mtc.cc
index bd3205a8c1..55ceb97b8f 100644
--- a/libs/midi++2/mtc.cc
+++ b/libs/midi++2/mtc.cc
@@ -90,7 +90,6 @@ Parser::process_mtc_quarter_frame (byte *msg)
depending on the direction of the MTC generator ...
*/
-#define DEBUG_MTC
#ifdef DEBUG_MTC
cerr << "MTC: (state = " << _mtc_running << ") "
<< which_quarter_frame << " vs. " << expected_mtc_quarter_frame_code
@@ -112,7 +111,7 @@ Parser::process_mtc_quarter_frame (byte *msg)
consecutive_qtr_frame_cnt++;
}
- cerr << "first seen qframe = " << (int) last_qtr_frame << endl;
+ // cerr << "first seen qframe = " << (int) last_qtr_frame << endl;
return;
@@ -120,7 +119,7 @@ Parser::process_mtc_quarter_frame (byte *msg)
/* third quarter frame */
- cerr << "second seen qframe = " << (int) which_quarter_frame << endl;
+ // cerr << "second seen qframe = " << (int) which_quarter_frame << endl;
if (last_qtr_frame < which_quarter_frame) {
_mtc_running = MTC_Forward;
@@ -291,11 +290,6 @@ Parser::process_mtc_quarter_frame (byte *msg)
*/
if (consecutive_qtr_frame_cnt >= 8) {
- cerr << hex;
- for (size_t xx = 0; xx < sizeof (_qtr_mtc_time); ++xx) {
- cerr << (int) _qtr_mtc_time[xx] << ' ';
- }
- cerr << dec << endl;
memcpy (_mtc_time, _qtr_mtc_time, sizeof (_mtc_time));
memset (_qtr_mtc_time, 0, sizeof (_qtr_mtc_time));
if (!_mtc_locked) {