summaryrefslogtreecommitdiff
path: root/libs/ardour/smf_source.cc
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-05-30 20:13:29 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-05-30 20:13:29 +0000
commit9b5f357490d1f46a5fc93268e7236a537f1d1430 (patch)
tree8b6779079fefdad90349dcd44dbe65038ed3ae0b /libs/ardour/smf_source.cc
parentb1d5a11194e9299efeb9c2e62c396a20be205902 (diff)
make trimming in region name (colored) highlight work even in internal edit mode; change enter/leave handler to return true by default (MIGHT HAVE UNINTENDED EFFECTS on mouse response), thus avoiding multiple stacked canvas items fighting over enter/leave
git-svn-id: svn://localhost/ardour2/branches/3.0@7195 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/smf_source.cc')
-rw-r--r--libs/ardour/smf_source.cc14
1 files changed, 13 insertions, 1 deletions
diff --git a/libs/ardour/smf_source.cc b/libs/ardour/smf_source.cc
index 5d043c0174..761868f29e 100644
--- a/libs/ardour/smf_source.cc
+++ b/libs/ardour/smf_source.cc
@@ -169,7 +169,7 @@ SMFSource::read_unlocked (Evoral::EventSink<nframes_t>& destination, sframes_t s
assert(time >= start_ticks);
const sframes_t ev_frame_time = converter.to(time / (double)ppqn()) + stamp_offset;
-#if 0
+#if 1
cerr << " frames = " << ev_frame_time
<< " w/offset = " << ev_frame_time - negative_stamp_offset
<< endl;
@@ -438,6 +438,18 @@ SMFSource::load_model (bool lock, bool force_reload)
if (ret > 0) { // didn't skip (meta) event
ev.set_event_type(EventTypeMap::instance().midi_event_type(buf[0]));
+
+ std::string ss;
+
+ for (int xx = 0; xx < size; ++xx) {
+ char b[8];
+ snprintf (b, sizeof (b), "0x%x ", buf[xx]);
+ 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 , ev.event_type(), name()));
+
_model->append(ev);
}