Update Ctrl Surfaces: use new well-known-ctrl API

This commit is contained in:
Robin Gareus 2024-01-13 03:08:51 +01:00
parent a7e36f77ac
commit 70a0b47cef
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04
14 changed files with 400 additions and 410 deletions

View file

@ -47,8 +47,7 @@
#include "ardour/types_convert.h"
#include "ardour/vca.h"
#include "ardour/vca_manager.h"
#include "ardour/well_known_enum.h"
#include "gtkmm2ext/gui_thread.h"
@ -1177,25 +1176,25 @@ LaunchControlXL::init_dm_callbacks()
MISSING_INVALIDATOR, boost::bind (&LaunchControlXL::init_buttons,this), lcxl);
}
#ifdef MIXBUS
if (first_selected_stripable()->eq_enable_controllable()) {
first_selected_stripable()->eq_enable_controllable()->Changed.connect (stripable_connections,
if (first_selected_stripable()->mapped_control(EQ_Enable)) {
first_selected_stripable()->mapped_control(EQ_Enable)->Changed.connect (stripable_connections,
MISSING_INVALIDATOR, boost::bind (&LaunchControlXL::init_knobs_and_buttons,this), lcxl);
}
if (first_selected_stripable()->eq_shape_controllable(0)) {
first_selected_stripable()->eq_shape_controllable(0)->Changed.connect (stripable_connections,
if (first_selected_stripable()->mapped_control (EQ_Shape, 0)) {
first_selected_stripable()->mapped_control (EQ_Shape, 0)->Changed.connect (stripable_connections,
MISSING_INVALIDATOR, boost::bind (&LaunchControlXL::init_buttons,this), lcxl);
}
if (first_selected_stripable()->eq_shape_controllable(3)) {
first_selected_stripable()->eq_shape_controllable(3)->Changed.connect (stripable_connections,
if (first_selected_stripable()->mapped_control (EQ_Shape, 3)) {
first_selected_stripable()->mapped_control (EQ_Shape, 3)->Changed.connect (stripable_connections,
MISSING_INVALIDATOR, boost::bind (&LaunchControlXL::init_buttons,this), lcxl);
}
if (first_selected_stripable()->comp_enable_controllable()) {
first_selected_stripable()->comp_enable_controllable()->Changed.connect (stripable_connections,
if (first_selected_stripable()->mapped_control (Comp_Enable)) {
first_selected_stripable()->mapped_control (Comp_Enable)->Changed.connect (stripable_connections,
MISSING_INVALIDATOR, boost::bind (&LaunchControlXL::init_knobs_and_buttons,this), lcxl);
}
if (first_selected_stripable()->filter_enable_controllable(true)) { // only handle one case, as Mixbus only has one
first_selected_stripable()->filter_enable_controllable(true)->Changed.connect (stripable_connections,
if (first_selected_stripable()->mapped_control (HPF_Enable)) { // only handle one case, as Mixbus only has one
first_selected_stripable()->mapped_control (HPF_Enable)->Changed.connect (stripable_connections,
MISSING_INVALIDATOR, boost::bind (&LaunchControlXL::init_knobs_and_buttons, this), lcxl);
}
if (first_selected_stripable()->master_send_enable_controllable()) {