From 057fd9259e35335d5e38e17d29f96dea27c17851 Mon Sep 17 00:00:00 2001 From: Robin Gareus Date: Sat, 9 Sep 2017 21:46:26 +0200 Subject: [PATCH] FP8: add mode to reset gain to unity Re-selecting the most recently selected (blinkig select button) strip returns gain to unity (0dB) --- libs/surfaces/faderport8/faderport8.cc | 12 ++++++++++++ 1 file changed, 12 insertions(+) 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 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 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 {