diff options
Diffstat (limited to 'src/gui/NodeMenu.cpp')
-rw-r--r-- | src/gui/NodeMenu.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/gui/NodeMenu.cpp b/src/gui/NodeMenu.cpp index c801d3e7..ae735ad6 100644 --- a/src/gui/NodeMenu.cpp +++ b/src/gui/NodeMenu.cpp @@ -17,6 +17,7 @@ #include <gtkmm.h> #include "interface/EngineInterface.hpp" +#include "shared/LV2URIMap.hpp" #include "client/NodeModel.hpp" #include "client/PluginModel.hpp" #include "App.hpp" @@ -145,7 +146,8 @@ 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_property((*i)->path(), "ingen:value", val); + App::instance().engine()->set_property((*i)->path(), + App::instance().uris().ingen_value, val); } } @@ -178,7 +180,7 @@ NodeMenu::on_preset_activated(const std::string uri) SLV2Value val = slv2_results_get_binding_value(values, 1); App::instance().engine()->set_property( node->path().base() + slv2_value_as_string(sym), - "ingen:value", + App::instance().uris().ingen_value, slv2_value_as_float(val)); } App::instance().engine()->bundle_end(); |