From a5e8a69dec467cc7d938cc3d92acb218b04486a9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 4 May 2018 09:40:28 -0400 Subject: add well known controls to list accessible via a MIDI binding map (or OSC?) --- libs/ardour/session_state.cc | 53 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 53 insertions(+) (limited to 'libs/ardour/session_state.cc') diff --git a/libs/ardour/session_state.cc b/libs/ardour/session_state.cc index fcaa76e2ee..346a359229 100644 --- a/libs/ardour/session_state.cc +++ b/libs/ardour/session_state.cc @@ -3816,6 +3816,58 @@ Session::controllable_by_descriptor (const ControllableDescriptor& desc) c = s->pan_elevation_control(); break; + case EQEnableAutomation: + c = s->eq_enable_controllable(); + break; + + case EQGainAutomation: + c = s->eq_gain_controllable(desc.target (0)); + break; + + case EQFreqAutomation: + c = s->eq_freq_controllable(desc.target(0)); + break; + + case EQQAutomation: + c = s->eq_q_controllable(desc.target(0)); + break; + + case EQShapeAutomation: + c = s->eq_shape_controllable(desc.target(0)); + break; + + case FilterFreqAutomation: + c = s->filter_freq_controllable(desc.target(0)); + break; + + case FilterSlopeAutomation: + c = s->filter_slope_controllable(desc.target(0)); + break; + + case FilterEnableAutomation: + c = s->filter_enable_controllable(desc.target(0)); + break; + + case CompressorEnableAutomation: + c = s->comp_enable_controllable(); + break; + + case CompressorThresholdAutomation: + c = s->comp_threshold_controllable(); + break; + + case CompressorSpeedAutomation: + c = s->comp_speed_controllable(); + break; + + case CompressorModeAutomation: + c = s->comp_mode_controllable(); + break; + + case CompressorMakeupAutomation: + c = s->comp_makeup_controllable(); + break; + case PluginAutomation: { uint32_t plugin = desc.target (0); @@ -3856,6 +3908,7 @@ Session::controllable_by_descriptor (const ControllableDescriptor& desc) break; } + default: /* relax and return a null pointer */ break; -- cgit v1.2.3