changeset 569:9773aadbae0c

* 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
author Chris Cannam
date Thu, 26 Feb 2009 10:49:08 +0000
parents fa32590f5a61
children 8212c9d3b3b3
files data/midi/MIDIInput.cpp
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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);