+ for (uint32_t i = 0; i < eq_bands; i++) {
+ if (_strip->eq_band_name(i).size()) {
+ 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 + 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 + 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 + 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 + 1, _strip->eq_shape_controllable(i)), OSC::instance());
+ change_message_with_id ("/select/eq_shape", i + 1, _strip->eq_shape_controllable(i));
+ }
+ }
+}
+
+void
+OSCSelectObserver::eq_end ()
+{
+ //need to check feedback for [13]
+ eq_connections.drop_connections ();
+ clear_strip ("/select/eq_hpf", 0);
+ clear_strip ("/select/eq_enable", 0);
+
+ for (uint32_t i = 1; i <= _strip->eq_band_cnt (); i++) {
+ text_with_id ("/select/eq_band_name", i, " ");
+ clear_strip_with_id ("/select/eq_gain", i, 0);
+ clear_strip_with_id ("/select/eq_freq", i, 0);
+ clear_strip_with_id ("/select/eq_q", i, 0);
+ clear_strip_with_id ("/select/eq_shape", i, 0);
+
+
+ }
+}
+
+void
+OSCSelectObserver::eq_restart(int x)
+{
+ eq_end();
+ eq_init();