diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-18 10:52:15 -0500 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2016-01-18 12:11:09 -0500 |
commit | 64c9198d602a86cf584cf84157470edd1ee2caf0 (patch) | |
tree | 9665c19cede3adbebbac2100e4a583f687d8f359 /libs/surfaces/faderport | |
parent | 1948b50a68381d7ffb14a88ffcf6da2c910bc012 (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.cc | 6 |
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); } } } |