mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-07 07:14:56 +01:00
Initial support of Latch for some ctrl-surfaces
This commit is contained in:
parent
9e256b044d
commit
c4a5ad33a5
3 changed files with 3 additions and 2 deletions
|
|
@ -90,6 +90,7 @@ FaderPort8::setup_actions ()
|
||||||
BindFunction (BtnATouch, released, button_automation, ARDOUR::Touch);
|
BindFunction (BtnATouch, released, button_automation, ARDOUR::Touch);
|
||||||
BindFunction (BtnARead, released, button_automation, ARDOUR::Play);
|
BindFunction (BtnARead, released, button_automation, ARDOUR::Play);
|
||||||
BindFunction (BtnAWrite, released, button_automation, ARDOUR::Write);
|
BindFunction (BtnAWrite, released, button_automation, ARDOUR::Write);
|
||||||
|
BindFunction (BtnALatch, released, button_automation, ARDOUR::Latch);
|
||||||
|
|
||||||
_ctrls.button (FP8Controls::BtnEncoder).pressed.connect_same_thread (button_connections, boost::bind (&FaderPort8::button_encoder, this));
|
_ctrls.button (FP8Controls::BtnEncoder).pressed.connect_same_thread (button_connections, boost::bind (&FaderPort8::button_encoder, this));
|
||||||
_ctrls.button (FP8Controls::BtnParam).pressed.connect_same_thread (button_connections, boost::bind (&FaderPort8::button_parameter, this));
|
_ctrls.button (FP8Controls::BtnParam).pressed.connect_same_thread (button_connections, boost::bind (&FaderPort8::button_parameter, this));
|
||||||
|
|
|
||||||
|
|
@ -100,6 +100,7 @@ FaderPort8::notify_automation_mode_changed ()
|
||||||
_ctrls.button (FP8Controls::BtnATouch).set_active (as == Touch);
|
_ctrls.button (FP8Controls::BtnATouch).set_active (as == Touch);
|
||||||
_ctrls.button (FP8Controls::BtnARead).set_active (as == Play);
|
_ctrls.button (FP8Controls::BtnARead).set_active (as == Play);
|
||||||
_ctrls.button (FP8Controls::BtnAWrite).set_active (as == Write);
|
_ctrls.button (FP8Controls::BtnAWrite).set_active (as == Write);
|
||||||
|
_ctrls.button (FP8Controls::BtnALatch).set_active (as == Latch);
|
||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
|
|
|
||||||
|
|
@ -233,13 +233,12 @@ FP8Controls::initialize ()
|
||||||
button (BtnARead).set_color (0x00ff00ff);
|
button (BtnARead).set_color (0x00ff00ff);
|
||||||
button (BtnAWrite).set_color (0xff0000ff);
|
button (BtnAWrite).set_color (0xff0000ff);
|
||||||
button (BtnATouch).set_color (0xff8800ff);
|
button (BtnATouch).set_color (0xff8800ff);
|
||||||
|
button (BtnALatch).set_color (0xffff00ff);
|
||||||
|
|
||||||
button (BtnUser1).set_color (0x0000ffff);
|
button (BtnUser1).set_color (0x0000ffff);
|
||||||
button (BtnUser2).set_color (0x0000ffff);
|
button (BtnUser2).set_color (0x0000ffff);
|
||||||
button (BtnUser3).set_color (0x0000ffff);
|
button (BtnUser3).set_color (0x0000ffff);
|
||||||
|
|
||||||
button (BtnALatch).set_color (0x0000ffff);
|
|
||||||
|
|
||||||
button (BtnBypass).set_color (0x888888ff);
|
button (BtnBypass).set_color (0x888888ff);
|
||||||
button (BtnBypassAll).set_color (0xffffffff);
|
button (BtnBypassAll).set_color (0xffffffff);
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue