diff options
author | David Robillard <d@drobilla.net> | 2008-02-21 00:15:20 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-02-21 00:15:20 +0000 |
commit | 0d0bd81a75d23a9d2dd13312f30b7f21138e037a (patch) | |
tree | be0b987aca046bcde33a39b2a12f786d3846b785 /libs/ardour/midi_model.cc | |
parent | 68bfed0a461635e3f5c05651f755dca6e22df5d9 (diff) |
Fix timing on MIDI import.
git-svn-id: svn://localhost/ardour2/branches/3.0@3093 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_model.cc')
-rw-r--r-- | libs/ardour/midi_model.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/libs/ardour/midi_model.cc b/libs/ardour/midi_model.cc index 44416713f8..6bd351a6dc 100644 --- a/libs/ardour/midi_model.cc +++ b/libs/ardour/midi_model.cc @@ -660,7 +660,7 @@ MidiModel::write_to(boost::shared_ptr<MidiSource> source) const boost::shared_ptr<const Note> earliest_off = active_notes.top(); const MidiEvent& off_ev = earliest_off->off_event(); if (off_ev.time() <= (*n)->time()) { - source->append_event_unlocked(off_ev); + source->append_event_unlocked(Frames, off_ev); active_notes.pop(); } else { break; @@ -668,14 +668,14 @@ MidiModel::write_to(boost::shared_ptr<MidiSource> source) } // Write this note on - source->append_event_unlocked((*n)->on_event()); + source->append_event_unlocked(Frames, (*n)->on_event()); if ((*n)->duration() > 0) active_notes.push(*n); } // Write any trailing note offs while ( ! active_notes.empty() ) { - source->append_event_unlocked(active_notes.top()->off_event()); + source->append_event_unlocked(Frames, active_notes.top()->off_event()); active_notes.pop(); } |