summaryrefslogtreecommitdiffstats
path: root/src/gui
diff options
context:
space:
mode:
Diffstat (limited to 'src/gui')
-rw-r--r--src/gui/ControlPanel.cpp2
-rw-r--r--src/gui/NodeMenu.cpp5
-rw-r--r--src/gui/Port.cpp4
3 files changed, 6 insertions, 5 deletions
diff --git a/src/gui/ControlPanel.cpp b/src/gui/ControlPanel.cpp
index 21728d59..e393b7ca 100644
--- a/src/gui/ControlPanel.cpp
+++ b/src/gui/ControlPanel.cpp
@@ -185,7 +185,7 @@ ControlPanel::value_changed_atom(SharedPtr<PortModel> port, const Raul::Atom& va
{
if (_callback_enabled) {
if (_all_voices_radio->get_active()) {
- App::instance().engine()->set_port_value(port->path(), val);
+ App::instance().engine()->set_property(port->path(), "ingen:value", val);
port->value(val);
} else {
int voice = _voice_spinbutton->get_value_as_int();
diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp
index 887ef06a..c801d3e7 100644
--- a/src/gui/NodeMenu.cpp
+++ b/src/gui/NodeMenu.cpp
@@ -145,7 +145,7 @@ NodeMenu::on_menu_randomize()
float min = 0.0f, max = 1.0f;
nm->port_value_range(*i, min, max);
const float val = ((rand() / (float)RAND_MAX) * (max - min) + min);
- App::instance().engine()->set_port_value((*i)->path(), val);
+ App::instance().engine()->set_property((*i)->path(), "ingen:value", val);
}
}
@@ -176,8 +176,9 @@ NodeMenu::on_preset_activated(const std::string uri)
for (; !slv2_results_finished(values); slv2_results_next(values)) {
SLV2Value sym = slv2_results_get_binding_value(values, 0);
SLV2Value val = slv2_results_get_binding_value(values, 1);
- App::instance().engine()->set_port_value(
+ App::instance().engine()->set_property(
node->path().base() + slv2_value_as_string(sym),
+ "ingen:value",
slv2_value_as_float(val));
}
App::instance().engine()->bundle_end();
diff --git a/src/gui/Port.cpp b/src/gui/Port.cpp
index fafac68d..70cade09 100644
--- a/src/gui/Port.cpp
+++ b/src/gui/Port.cpp
@@ -165,7 +165,7 @@ Port::set_control(float value, bool signal)
{
if (signal) {
if (model()->type() == PortType::CONTROL) {
- App::instance().engine()->set_port_value(model()->path(), Atom(value));
+ App::instance().engine()->set_property(model()->path(), "ingen:value", Atom(value));
PatchWindow* pw = App::instance().window_factory()->patch_window(
PtrCast<PatchModel>(model()->parent()));
if (!pw)
@@ -175,7 +175,7 @@ Port::set_control(float value, bool signal)
pw->show_port_status(model().get(), value);
} else if (model()->type() == PortType::EVENTS) {
- App::instance().engine()->set_port_value(model()->path(),
+ App::instance().engine()->set_property(model()->path(), "ingen:value",
Atom("<http://example.org/ev#BangEvent>", 0, NULL));
}
}