diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-23 16:31:34 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2010-08-23 16:31:34 +0000 |
commit | 6e904b1e1600f4ccc0338d0b0864f7e02d417b13 (patch) | |
tree | a224669b7ff25e3f680a68920701e4498d495793 /libs/ardour/plugin_insert.cc | |
parent | 6b6e6f49b4840183f29dfa1e74483c52603bffc1 (diff) |
3.0 version of rev 5564 from 2.x - basic boolean plugin parameter automation (no graphical editing intended). this involved adding a new "toggled" property to Evoral::Parameter
git-svn-id: svn://localhost/ardour2/branches/3.0@7670 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/plugin_insert.cc')
-rw-r--r-- | libs/ardour/plugin_insert.cc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index d6dfc014cf..a0deec6807 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -195,7 +195,7 @@ PluginInsert::set_automatable () but we want the Controllable related to this Parameter to have those limits. */ - param.set_range (desc.lower, desc.upper, _plugins.front()->default_value(i->id())); + param.set_range (desc.lower, desc.upper, _plugins.front()->default_value(i->id()), desc.toggled); can_automate (param); boost::shared_ptr<AutomationList> list(new AutomationList(param)); add_control (boost::shared_ptr<AutomationControl>(new PluginControl(this, param, list))); @@ -402,8 +402,9 @@ PluginInsert::run (BufferSet& bufs, framepos_t /*start_frame*/, framepos_t /*end void PluginInsert::set_parameter (Evoral::Parameter param, float val) { - if (param.type() != PluginAutomation) + if (param.type() != PluginAutomation) { return; + } /* the others will be set from the event triggered by this */ |