mirror of
https://github.com/Ardour/ardour.git
synced 2026-01-06 21:55:43 +01:00
improved version of last commit, for tracking plugin control changes and mapping them to PluginInsert automation controls
git-svn-id: svn://localhost/ardour2/branches/3.0@13025 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
parent
67f8063256
commit
bfd2ee48ce
2 changed files with 16 additions and 6 deletions
|
|
@ -2790,11 +2790,6 @@ AUPlugin::parameter_change_listener (void* /*arg*/, void* /*src*/, const AudioUn
|
|||
ParameterMap::iterator i = parameter_map.find (event->mArgument.mParameter.mParameterID);
|
||||
|
||||
if (i != parameter_map.end()) {
|
||||
boost::shared_ptr<AutomationControl> ac = automation_control (Evoral::Parameter (PluginAutomation, 0, i->second));
|
||||
if (ac) {
|
||||
cerr << "updating " << ac->name() << " to << new_value << endl;
|
||||
ac->set_double (new_value);
|
||||
}
|
||||
ParameterChanged (i->second, new_value);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue