summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorLen Ovens <len@ovenwerks.net>2016-07-28 08:51:15 -0700
committerLen Ovens <len@ovenwerks.net>2016-07-28 08:51:15 -0700
commit7c5a8dea7c3c22ab1e59460584ed27263461675c (patch)
treeb772da680acab8247c56c725bffb7bd6bb6f9c53 /libs
parent04029a656ee274bb0f328dc3ccfc146a6f1df88f (diff)
OSC: eq bands off by one fix
Diffstat (limited to 'libs')
-rw-r--r--libs/surfaces/osc/osc_select_observer.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/libs/surfaces/osc/osc_select_observer.cc b/libs/surfaces/osc/osc_select_observer.cc
index 3224b5e880..99c1c2c82f 100644
--- a/libs/surfaces/osc/osc_select_observer.cc
+++ b/libs/surfaces/osc/osc_select_observer.cc
@@ -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));
}
}