From 0d95a4bfe4bb7f9da2b706bf78022841001e377a Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Sat, 26 Mar 2011 21:28:40 +0000 Subject: [PATCH] remove sample-rate adjustment of plugin parameters - represents a misunderstanding of the LADSPA spec git-svn-id: svn://localhost/ardour2/branches/3.0@9217 d708f5d6-7413-0410-9779-e7cbd77b26cf --- libs/ardour/plugin_insert.cc | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/libs/ardour/plugin_insert.cc b/libs/ardour/plugin_insert.cc index 41e1376b9a..9a49051f38 100644 --- a/libs/ardour/plugin_insert.cc +++ b/libs/ardour/plugin_insert.cc @@ -1074,10 +1074,7 @@ PluginInsert::PluginControl::set_value (double user_val) double PluginInsert::PluginControl::user_to_plugin (double val) const { - if (_sr_dependent) { - val /= _session.frame_rate (); - } - + /* no known transformations at this time */ return val; } @@ -1115,10 +1112,7 @@ PluginInsert::PluginControl::plugin_to_ui (double val) const double PluginInsert::PluginControl::plugin_to_user (double val) const { - if (_sr_dependent) { - val = val * _session.frame_rate (); - } - + /* no known transformations at this time */ return val; }