summaryrefslogtreecommitdiff
path: root/libs/surfaces
diff options
context:
space:
mode:
authorRobin Gareus <robin@gareus.org>2017-09-09 21:46:26 +0200
committerRobin Gareus <robin@gareus.org>2017-09-09 21:46:26 +0200
commit057fd9259e35335d5e38e17d29f96dea27c17851 (patch)
tree2727009ee1d1d7f71c0677d6200927217b8442f2 /libs/surfaces
parentb5e1eb7538b9119e5b3abfb45d2ddf9f86331ffa (diff)
FP8: add mode to reset gain to unity
Re-selecting the most recently selected (blinkig select button) strip returns gain to unity (0dB)
Diffstat (limited to 'libs/surfaces')
-rw-r--r--libs/surfaces/faderport8/faderport8.cc12
1 files changed, 12 insertions, 0 deletions
diff --git a/libs/surfaces/faderport8/faderport8.cc b/libs/surfaces/faderport8/faderport8.cc
index 0ba8ae422a..2603a12e34 100644
--- a/libs/surfaces/faderport8/faderport8.cc
+++ b/libs/surfaces/faderport8/faderport8.cc
@@ -1633,6 +1633,18 @@ FaderPort8::select_strip (boost::weak_ptr<Stripable> ws)
return;
}
#if 1 /* single exclusive selection by default, toggle via shift */
+
+# if 1 /* selecting a selected strip -> move fader to unity */
+ if (s == first_selected_stripable () && !shift_mod ()) {
+ if (_ctrls.fader_mode () == ModeTrack) {
+ boost::shared_ptr<AutomationControl> ac = s->gain_control ();
+ ac->start_touch (ac->session().transport_frame());
+ ac->set_value (ac->normal (), PBD::Controllable::UseGroup);
+ }
+ return;
+ }
+# endif
+
if (shift_mod ()) {
ToggleStripableSelection (s);
} else {