summaryrefslogtreecommitdiff
path: root/libs/surfaces/faderport
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2016-01-18 10:52:15 -0500
committerPaul Davis <paul@linuxaudiosystems.com>2016-01-18 12:11:09 -0500
commit64c9198d602a86cf584cf84157470edd1ee2caf0 (patch)
tree9665c19cede3adbebbac2100e4a583f687d8f359 /libs/surfaces/faderport
parent1948b50a68381d7ffb14a88ffcf6da2c910bc012 (diff)
add group disposition argument to Route::set_gain() and use it in various UIs
Executive decisions were necessary in a couple of places about the correct group disposition behaviour, notably faderport and OSC surfaces
Diffstat (limited to 'libs/surfaces/faderport')
-rw-r--r--libs/surfaces/faderport/faderport.cc6
1 files changed, 5 insertions, 1 deletions
diff --git a/libs/surfaces/faderport/faderport.cc b/libs/surfaces/faderport/faderport.cc
index 9481445af2..50250a5f13 100644
--- a/libs/surfaces/faderport/faderport.cc
+++ b/libs/surfaces/faderport/faderport.cc
@@ -499,7 +499,11 @@ FaderPort::fader_handler (MIDI::Parser &, MIDI::EventTwoBytes* tb)
if (gain) {
int ival = (fader_msb << 7) | fader_lsb;
float val = gain->interface_to_internal (ival/16384.0);
- _current_route->set_gain (val, this);
+ /* even though the faderport only controls a
+ single route at a time, allow the fader to
+ modify the group, if appropriate.
+ */
+ _current_route->set_gain (val, Controllable::UseGroup);
}
}
}