summaryrefslogtreecommitdiffstats
path: root/src/libs/gui/Port.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/gui/Port.cpp')
-rw-r--r--src/libs/gui/Port.cpp12
1 files changed, 7 insertions, 5 deletions
diff --git a/src/libs/gui/Port.cpp b/src/libs/gui/Port.cpp
index ab574f88..fd35ff90 100644
--- a/src/libs/gui/Port.cpp
+++ b/src/libs/gui/Port.cpp
@@ -122,11 +122,13 @@ Port::activity()
void
Port::set_control(float value, bool signal)
{
- if (_port_model->type() != DataType::CONTROL && _port_model->type() != DataType::AUDIO)
- return;
-
- if (signal)
- App::instance().engine()->set_port_value_immediate(_port_model->path(), Atom(value));
+ if (signal) {
+ if (_port_model->type() == DataType::CONTROL) {
+ App::instance().engine()->set_port_value(_port_model->path(), Atom(value));
+ } else if (_port_model->type() == DataType::EVENT) {
+ cout << "EVENT CONTROL" << endl;
+ }
+ }
FlowCanvas::Port::set_control(value);
}