OSC: eq bands off by one fix
authorLen Ovens <len@ovenwerks.net>
Thu, 28 Jul 2016 15:51:15 +0000 (08:51 -0700)
committerLen Ovens <len@ovenwerks.net>
Thu, 28 Jul 2016 15:51:15 +0000 (08:51 -0700)
libs/surfaces/osc/osc_select_observer.cc

index 3224b5e880d91605c9f9155cf22245b2bcceba6a..99c1c2c82f883570a49624491cc4318c442a867b 100644 (file)
@@ -536,19 +536,19 @@ OSCSelectObserver::eq_init()
                        text_with_id ("/select/eq_band_name", i + 1, _strip->eq_band_name (i));
                }
                if (_strip->eq_gain_controllable (i)) {
-                       _strip->eq_gain_controllable(i)->Changed.connect (eq_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::change_message_with_id, this, X_("/select/eq_gain"), i, _strip->eq_gain_controllable(i)), OSC::instance());
+                       _strip->eq_gain_controllable(i)->Changed.connect (eq_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::change_message_with_id, this, X_("/select/eq_gain"), i + 1, _strip->eq_gain_controllable(i)), OSC::instance());
                        change_message_with_id ("/select/eq_gain", i + 1, _strip->eq_gain_controllable(i));
                }
                if (_strip->eq_freq_controllable (i)) {
-                       _strip->eq_freq_controllable(i)->Changed.connect (eq_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::change_message_with_id, this, X_("/select/eq_freq"), i, _strip->eq_freq_controllable(i)), OSC::instance());
+                       _strip->eq_freq_controllable(i)->Changed.connect (eq_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::change_message_with_id, this, X_("/select/eq_freq"), i + 1, _strip->eq_freq_controllable(i)), OSC::instance());
                        change_message_with_id ("/select/eq_freq", i + 1, _strip->eq_freq_controllable(i));
                }
                if (_strip->eq_q_controllable (i)) {
-                       _strip->eq_q_controllable(i)->Changed.connect (eq_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::change_message_with_id, this, X_("/select/eq_q"), i, _strip->eq_q_controllable(i)), OSC::instance());
+                       _strip->eq_q_controllable(i)->Changed.connect (eq_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::change_message_with_id, this, X_("/select/eq_q"), i + 1, _strip->eq_q_controllable(i)), OSC::instance());
                        change_message_with_id ("/select/eq_q", i + 1, _strip->eq_q_controllable(i));
                }
                if (_strip->eq_shape_controllable (i)) {
-                       _strip->eq_shape_controllable(i)->Changed.connect (eq_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::change_message_with_id, this, X_("/select/eq_shape"), i, _strip->eq_shape_controllable(i)), OSC::instance());
+                       _strip->eq_shape_controllable(i)->Changed.connect (eq_connections, MISSING_INVALIDATOR, boost::bind (&OSCSelectObserver::change_message_with_id, this, X_("/select/eq_shape"), i + 1, _strip->eq_shape_controllable(i)), OSC::instance());
                        change_message_with_id ("/select/eq_shape", i + 1, _strip->eq_shape_controllable(i));
                }
        }