summaryrefslogtreecommitdiff
path: root/gtk2_ardour
diff options
context:
space:
mode:
authorCarl Hetherington <carl@carlh.net>2011-12-10 13:48:41 +0000
committerCarl Hetherington <carl@carlh.net>2011-12-10 13:48:41 +0000
commit1390a1510da934ab7b7d10560f16fe6daf01b355 (patch)
treee54bb30ddf8d1d4bad03c3013cc7a5659e8dff24 /gtk2_ardour
parent8135a0c5ec116607896b2d1aac108f052963b492 (diff)
Comment.
git-svn-id: svn://localhost/ardour2/branches/3.0@10962 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'gtk2_ardour')
-rw-r--r--gtk2_ardour/midi_region_view.cc5
1 files changed, 5 insertions, 0 deletions
diff --git a/gtk2_ardour/midi_region_view.cc b/gtk2_ardour/midi_region_view.cc
index b295e55733..5ac243dd3e 100644
--- a/gtk2_ardour/midi_region_view.cc
+++ b/gtk2_ardour/midi_region_view.cc
@@ -3609,6 +3609,11 @@ MidiRegionView::data_recorded (boost::weak_ptr<MidiSource> w)
Evoral::MIDIEvent<MidiBuffer::TimeType> const ev (*i, false);
assert (ev.buffer ());
+ /* ev.time() is in session frames, so (ev.time() - converter.origin_b()) is
+ frames from the start of the source, and so time_beats is in terms of the
+ source.
+ */
+
Evoral::MusicalTime const time_beats = converter.from (ev.time () - converter.origin_b ());
if (ev.type() == MIDI_CMD_NOTE_ON) {