diff options
Diffstat (limited to 'libs/ardour/route.cc')
-rw-r--r-- | libs/ardour/route.cc | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/libs/ardour/route.cc b/libs/ardour/route.cc index c6e3f157b3..dba71584e2 100644 --- a/libs/ardour/route.cc +++ b/libs/ardour/route.cc @@ -5113,6 +5113,38 @@ Route::eq_hpf_controllable () const #endif } +boost::shared_ptr<AutomationControl> +Route::eq_lpf_controllable () const +{ +#ifdef MIXBUS32C + boost::shared_ptr<PluginInsert> eq = ch_eq(); + + if (!eq) { + return boost::shared_ptr<AutomationControl>(); + } + + return boost::dynamic_pointer_cast<ARDOUR::AutomationControl> (eq->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, 6))); +#else + return boost::shared_ptr<AutomationControl>(); +#endif +} + +boost::shared_ptr<AutomationControl> +Route::filter_enable_controllable () const +{ +#ifdef MIXBUS32C + boost::shared_ptr<PluginInsert> eq = ch_eq(); + + if (!eq) { + return boost::shared_ptr<AutomationControl>(); + } + + return boost::dynamic_pointer_cast<ARDOUR::AutomationControl> (eq->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, 2))); +#else + return boost::shared_ptr<AutomationControl>(); +#endif +} + string Route::eq_band_name (uint32_t band) const { |