13
0

FP8: add metronome level reset

This commit is contained in:
Robin Gareus 2017-04-16 17:18:05 +02:00
parent f18f7dca43
commit 67f2e4b866

View File

@ -318,6 +318,12 @@ FaderPort8::button_prev_next (bool next)
void
FaderPort8::button_encoder ()
{
/* special-case metronome level */
if (_ctrls.button (FP8Controls::BtnClick).is_pressed ()) {
Config->set_click_gain (1.0);
_ctrls.button (FP8Controls::BtnClick).ignore_release();
return;
}
switch (_ctrls.nav_mode()) {
case NavZoom:
ZoomToSession (); // XXX undo zoom