- _plugin->setParameter (_plugin, which, val);
- Plugin::set_parameter (which, val);
+ float oldval = get_parameter (which);
+
+ if (PBD::floateq (oldval, newval, 1)) {
+ return;
+ }
+
+ _plugin->setParameter (_plugin, which, newval);
+
+ float curval = get_parameter (which);
+
+ if (!PBD::floateq (curval, oldval, 1)) {
+ /* value has changed, follow rest of the notification path */
+ Plugin::set_parameter (which, newval);
+ }