diff data/midi/MIDIInput.cpp @ 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 e6d35670e1df
children d7f3dfe6f9a4
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);