From fce685b2e7cc57f1310d9d83bba9f4a3c98b9afe Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sun, 25 Jul 2010 13:26:53 +0000 Subject: only push note-on information into the step edit ringbuffer git-svn-id: svn://localhost/ardour2/branches/3.0@7490 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/midi_track.cc | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) (limited to 'libs/ardour') diff --git a/libs/ardour/midi_track.cc b/libs/ardour/midi_track.cc index 9dced1e0b9..b1a8b1f210 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()); + } } } } -- cgit v1.2.3