Fix Mixbus well-known filter controls (HP/LP freq)

This commit is contained in:
Robin Gareus 2020-02-13 17:21:38 +01:00
parent b9b6a57245
commit 45ff356819
Signed by: rgareus
GPG Key ID: A090BCE02CF57F04

View File

@ -5576,13 +5576,13 @@ Route::filter_freq_controllable (bool hpf) const
}
if (hpf) {
#ifdef MIXBUS32C
return boost::dynamic_pointer_cast<ARDOUR::AutomationControl> (eq->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, 6))); // HPF freq
return boost::dynamic_pointer_cast<ARDOUR::AutomationControl> (eq->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, 5))); // HPF freq
#else
return boost::dynamic_pointer_cast<ARDOUR::AutomationControl> (eq->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, 2)));
#endif
} else {
#ifdef MIXBUS32C
return boost::dynamic_pointer_cast<ARDOUR::AutomationControl> (eq->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, 5))); // LPF freq
return boost::dynamic_pointer_cast<ARDOUR::AutomationControl> (eq->control (Evoral::Parameter (ARDOUR::PluginAutomation, 0, 6))); // LPF freq
#else
return boost::shared_ptr<AutomationControl>();
#endif