mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-29 09:57:44 +01:00
Comment.
git-svn-id: svn://localhost/ardour2/branches/3.0@10962 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
8135a0c5ec
commit
1390a1510d
1 changed files with 5 additions and 0 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue