From 5a31c6e40f96a96a369da36c0a5c15e77164ec64 Mon Sep 17 00:00:00 2001 From: paul Date: Sun, 25 Jul 2010 13:26:53 +0000 Subject: [PATCH] only push note-on information into the step edit ringbuffer git-svn-id: http://subversion.ardour.org/svn/ardour2/ardour2/branches/3.0@7490 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/midi_track.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc index 9dced1e0b..b1a8b1f21 100644 --- a/libs/ardour/midi_track.cc +++ b/libs/ardour/midi_track.cc @@ -419,9 +419,14 @@ MidiTrack::push_midi_input_to_step_edit_ringbuffer (nframes_t nframes) const Evoral::MIDIEvent ev(*e, false); - /* we don't care about the time for this purpose */ - - _step_edit_ring_buffer.write (0, ev.type(), ev.size(), ev.buffer()); + /* note on, since for step edit, note length is determined + elsewhere + */ + + if (ev.is_note_on()) { + /* we don't care about the time for this purpose */ + _step_edit_ring_buffer.write (0, ev.type(), ev.size(), ev.buffer()); + } } } } -- 2.11.4.GIT