# HG changeset patch # User Chris Cannam # Date 1235645348 0 # Node ID 9773aadbae0cae04d3670be0f28c781d949cc829 # Parent fa32590f5a61582f4001ca3036c41e613ac3ad12 * Handle zero-velocity note ons as well as note offs (can't believe I fell for that one) * Add Peek Left / Peek Right (alt+left/right) and change peek-drag (i.e. dragging without moving playback pointer or other panes) from ctrl+drag to alt+drag for symmetry diff -r fa32590f5a61 -r 9773aadbae0c data/midi/MIDIInput.cpp --- a/data/midi/MIDIInput.cpp Wed Feb 25 12:02:53 2009 +0000 +++ b/data/midi/MIDIInput.cpp Thu Feb 26 10:49:08 2009 +0000 @@ -55,8 +55,9 @@ // that as the event time. if (!message || message->empty()) return; unsigned long t = m_frameTimer->getFrame(); + MIDIByte code = (*message)[0]; MIDIEvent ev(t, - (*message)[0], + code, message->size() > 1 ? (*message)[1] : 0, message->size() > 2 ? (*message)[2] : 0); postEvent(ev);