summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2010-07-25 13:26:53 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2010-07-25 13:26:53 +0000
commitfce685b2e7cc57f1310d9d83bba9f4a3c98b9afe (patch)
tree391357ffb259d047cacb64794de9209d03a4e11c /libs
parent93a3b1a22189fa936a88b14bca4834af1c499330 (diff)
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
Diffstat (limited to 'libs')
-rw-r--r--libs/ardour/midi_track.cc11
1 files changed, 8 insertions, 3 deletions
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<nframes_t> 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());
+ }
}
}
}