summaryrefslogtreecommitdiff
path: root/libs/ardour/smf_source.cc
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2015-09-18 15:13:09 +0200
committerRobin Gareus <robin@gareus.org>2015-09-18 17:37:36 +0200
commita5141fdaf35511ee8de3120afeffcd00a3a102d7 (patch)
tree3ea5c15164399bc2a3f843cdfb8086e9019fe1bc /libs/ardour/smf_source.cc
parent21b720fddcc2b98dbc4a7ce746bb07978fc9d8b3 (diff)
NOOP - SMF debugging.
Diffstat (limited to 'libs/ardour/smf_source.cc')
-rw-r--r--libs/ardour/smf_source.cc14
1 files changed, 10 insertions, 4 deletions
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc
index 6b27d2e75c..cbb8c5db1e 100644
--- a/libs/ardour/smf_source.cc
+++ b/libs/ardour/smf_source.cc
@@ -397,9 +397,11 @@ SMFSource::append_event_beats (const Glib::Threads::Mutex::Lock& lock,
return;
}
- /*printf("SMFSource: %s - append_event_beats ID = %d time = %lf, size = %u, data = ",
+#if 0
+ printf("SMFSource: %s - append_event_beats ID = %d time = %lf, size = %u, data = ",
name().c_str(), ev.id(), ev.time(), ev.size());
- for (size_t i = 0; i < ev.size(); ++i) printf("%X ", ev.buffer()[i]); printf("\n");*/
+ for (size_t i = 0; i < ev.size(); ++i) printf("%X ", ev.buffer()[i]); printf("\n");
+#endif
Evoral::Beats time = ev.time();
if (time < _last_ev_time_beats) {
@@ -678,8 +680,8 @@ SMFSource::load_model (const Glib::Threads::Mutex::Lock& lock, bool force_reload
ss += b;
}
- DEBUG_TRACE (DEBUG::MidiSourceIO, string_compose ("SMF %6 load model delta %1, time %2, size %3 buf %4, type %5\n",
- delta_t, time, size, ss , event_type, name()));
+ DEBUG_TRACE (DEBUG::MidiSourceIO, string_compose ("SMF %7 load model delta %1, time %2, size %3 buf %4, type %5 id %6\n",
+ delta_t, time, size, ss , event_type, event_id, name()));
#endif
eventlist.push_back(make_pair (
@@ -708,6 +710,10 @@ SMFSource::load_model (const Glib::Threads::Mutex::Lock& lock, bool force_reload
delete it->first;
}
+ // cerr << "----SMF-SRC-----\n";
+ // _playback_buf->dump (cerr);
+ // cerr << "----------------\n";
+
_model->end_write (Evoral::Sequence<Evoral::Beats>::ResolveStuckNotes, _length_beats);
_model->set_edited (false);
invalidate(lock);