diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-20 18:13:03 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2011-07-20 18:13:03 +0000 |
commit | c99738d88e8a2ad806b219b9f3614a6b55b6bf37 (patch) | |
tree | d506a27d404e1b63063372ebe2f63aacc7e6ebb4 /libs/ardour/midi_stretch.cc | |
parent | 8c7fda11cf47cd8dd04c6eabffc437dd942403d5 (diff) |
try to fix data loss at end of a capture pass for MIDI - add a new virtual method to MidiSource that specifies what should be done with stuck notes, remove duplicate(i hope) _last_flush_frame from SMFSource that mirrored, more or less, MidiSource::_last_write_end; use new virtual method when stopping after capture.
git-svn-id: svn://localhost/ardour2/branches/3.0@9910 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_stretch.cc')
-rw-r--r-- | libs/ardour/midi_stretch.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/midi_stretch.cc b/libs/ardour/midi_stretch.cc index 4dfab65fd4..d9ac1403a9 100644 --- a/libs/ardour/midi_stretch.cc +++ b/libs/ardour/midi_stretch.cc @@ -103,7 +103,7 @@ MidiStretch::run (boost::shared_ptr<Region> r, Progress* progress) new_model->append(ev, Evoral::next_event_id()); } - new_model->end_write (); + new_model->end_write (Evoral::Sequence<Evoral::MusicalTime>::DeleteStuckNotes); new_model->set_edited (true); new_src->copy_interpolation_from (src); |