diff options
Diffstat (limited to 'src/libs/gui')
-rw-r--r-- | src/libs/gui/ControlPanel.cpp | 6 | ||||
-rw-r--r-- | src/libs/gui/Port.cpp | 3 |
2 files changed, 3 insertions, 6 deletions
diff --git a/src/libs/gui/ControlPanel.cpp b/src/libs/gui/ControlPanel.cpp index 9be36b65..0f38d5dd 100644 --- a/src/libs/gui/ControlPanel.cpp +++ b/src/libs/gui/ControlPanel.cpp @@ -226,13 +226,11 @@ ControlPanel::value_changed(SharedPtr<PortModel> port, float val) if (_callback_enabled) { if (_all_voices_radio->get_active()) { - App::instance().engine()->set_port_value_immediate(port->path(), "ingen:Float", - sizeof(float), &val); + App::instance().engine()->set_port_value_immediate(port->path(), Atom(val)); port->value(val); } else { int voice = _voice_spinbutton->get_value_as_int() - 1; - App::instance().engine()->set_port_value_immediate(port->path(), "ingen:Float", - voice, sizeof(float), &val); + App::instance().engine()->set_voice_value_immediate(port->path(), voice, Atom(val)); port->value(val); } diff --git a/src/libs/gui/Port.cpp b/src/libs/gui/Port.cpp index 71050a3e..f675497b 100644 --- a/src/libs/gui/Port.cpp +++ b/src/libs/gui/Port.cpp @@ -116,8 +116,7 @@ Port::set_control(float value, bool signal) return; if (signal) - App::instance().engine()->set_port_value_immediate(_port_model->path(), "ingen:Float", - sizeof(float), &value); + App::instance().engine()->set_port_value_immediate(_port_model->path(), Atom(value)); FlowCanvas::Port::set_control(value); } |