From c99738d88e8a2ad806b219b9f3614a6b55b6bf37 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Wed, 20 Jul 2011 18:13:03 +0000 Subject: 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 --- libs/ardour/midi_stretch.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libs/ardour/midi_stretch.cc') 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 r, Progress* progress) new_model->append(ev, Evoral::next_event_id()); } - new_model->end_write (); + new_model->end_write (Evoral::Sequence::DeleteStuckNotes); new_model->set_edited (true); new_src->copy_interpolation_from (src); -- cgit v1.2.3