diff options
author | Ben Loftis <ben@harrisonconsoles.com> | 2017-05-10 11:31:03 -0500 |
---|---|---|
committer | Robin Gareus <robin@gareus.org> | 2017-05-12 15:44:01 +0200 |
commit | efc2660fec0d01c4c47d3fffcc5443025b33afc0 (patch) | |
tree | bd0788bdfb187508c4e179e2883431ff118370cb /libs/ardour/route.cc | |
parent | 8ba868e9334548ab03cd517e6c79d9f13d8ba7f2 (diff) |
MCP: Mixbus32C: Restore missing filter controls to the Dyn page.
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 { |