summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2012-07-20 15:10:10 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2012-07-20 15:10:10 +0000
commit253f0ae04c9678e62c9881783b0d3618cf531e28 (patch)
tree8d2f8725b4135471e44e52644cf860d8468811de
parentbe76962b6a1a94072752e9e5d61ee1b018a6c366 (diff)
make note on/off MIDI control do something sensible, rather than attempt to use the enter keyboard as a big fader
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@13057 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/surfaces/generic_midi/midicontrollable.cc4
1 files changed, 3 insertions, 1 deletions
diff --git a/libs/surfaces/generic_midi/midicontrollable.cc b/libs/surfaces/generic_midi/midicontrollable.cc
index 18c582f8b0..7c91dd559a 100644
--- a/libs/surfaces/generic_midi/midicontrollable.cc
+++ b/libs/surfaces/generic_midi/midicontrollable.cc
@@ -128,7 +128,9 @@ void
MIDIControllable::midi_sense_note (Parser &p, EventTwoBytes *msg, bool is_on)
{
if (!bistate) {
- controllable.set_value (msg->note_number/127.0);
+ if (msg->note_number == control_additional) {
+ controllable.set_value (msg->velocity/127.0);
+ }
} else {
/* Note: parser handles the use of zero velocity to