#include "boost/lambda/lambda.hpp"
+#include "pbd/control_math.h"
+
#include "ardour/track.h"
#include "ardour/dB.h"
#include "ardour/meter.h"
, _strip (s)
, tick_enable (false)
{
- std::cout << "entered observer\n";
addr = lo_address_new (lo_address_get_hostname(a) , lo_address_get_port(a));
_strip->PropertyChanged.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCCueObserver::name_changed, this, boost::lambda::_1, 0), OSC::instance());
name_changed (ARDOUR::Properties::name, 0);
- _strip->mute_control()->Changed.connect (strip_connections, MISSING_INVALIDATOR, bind (&OSCCueObserver::send_change_message, this, X_("/cue/mute"), 0, _strip->mute_control()), OSC::instance());
+ _strip->mute_control()->Changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCCueObserver::send_change_message, this, X_("/cue/mute"), 0, _strip->mute_control()), OSC::instance());
send_change_message ("/cue/mute", 0, _strip->mute_control());
gain_timeout.push_back (0);
- std::cout << "observer past gain timeout for aux\n";
- _strip->gain_control()->Changed.connect (strip_connections, MISSING_INVALIDATOR, bind (&OSCCueObserver::send_gain_message, this, 0, _strip->gain_control()), OSC::instance());
+ _strip->gain_control()->Changed.connect (strip_connections, MISSING_INVALIDATOR, boost::bind (&OSCCueObserver::send_gain_message, this, 0, _strip->gain_control()), OSC::instance());
send_gain_message (0, _strip->gain_control());
send_init ();
- std::cout << "observer past send init\n";
tick_enable = true;
tick ();
path = string_compose ("%1/%2", path, id);
}
lo_message msg = lo_message_new ();
- lo_message_add_float (msg, gain_to_slider_position (controllable->get_value()));
+ lo_message_add_float (msg, controllable->internal_to_interface (controllable->get_value()));
gain_timeout[id] = 8;
lo_send_message (addr, path.c_str(), msg);