Fix a problem where VST automation data wasn't getting written (if the adjustments...
[ardour.git] / libs / ardour / plugin.cc
index 577b12c1a65ad97eb90c92618835c3d595172938..f14c56798b65e4cb404c8cf6b8162037baa90fdf 100644 (file)
@@ -365,6 +365,12 @@ Plugin::set_parameter (uint32_t which, float)
        ParameterChanged (which, get_parameter (which)); /* EMIT SIGNAL */
 }
 
+void
+Plugin::set_parameter_automated (uint32_t which, float val)
+{
+       Plugin::set_parameter (which, val);
+}
+
 int
 Plugin::set_state (const XMLNode& node, int /*version*/)
 {
@@ -396,7 +402,7 @@ Plugin::get_state ()
        root->add_property (X_("last-preset-label"), _last_preset.label);
        root->add_property (X_("parameter-changed-since-last-preset"), _parameter_changed_since_last_preset ? X_("yes") : X_("no"));
 
-#ifndef NO_PLUGIN_STATE        
+#ifndef NO_PLUGIN_STATE
        add_state (root);
 #else
        if (!seen_get_state_message) {