diff options
Diffstat (limited to 'src/engine/InternalTrigger.cpp')
-rw-r--r-- | src/engine/InternalTrigger.cpp | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/src/engine/InternalTrigger.cpp b/src/engine/InternalTrigger.cpp index d76d6910..a4cc3609 100644 --- a/src/engine/InternalTrigger.cpp +++ b/src/engine/InternalTrigger.cpp @@ -42,18 +42,22 @@ TriggerNode::TriggerNode(const string& path, bool polyphonic, PatchImpl* parent, _ports->at(0) = _midi_in_port; _note_port = new InputPort(this, "note", 1, 1, DataType::CONTROL, 60.0f, 1); - _note_port->set_variable("lv2:minimum", 0.0f); - _note_port->set_variable("lv2:maximum", 127.0f); - _note_port->set_variable("lv2:integer", true); + _note_port->set_property("lv2:minimum", 0.0f); + _note_port->set_property("lv2:maximum", 127.0f); + _note_port->set_property("lv2:integer", true); _ports->at(1) = _note_port; _gate_port = new OutputPort(this, "gate", 2, 1, DataType::AUDIO, 0.0f, _buffer_size); + _gate_port->set_property("lv2:toggled", true); _ports->at(2) = _gate_port; _trig_port = new OutputPort(this, "trigger", 3, 1, DataType::AUDIO, 0.0f, _buffer_size); + _trig_port->set_property("lv2:toggled", true); _ports->at(3) = _trig_port; _vel_port = new OutputPort(this, "velocity", 4, 1, DataType::AUDIO, 0.0f, _buffer_size); + _vel_port->set_property("lv2:minimum", 0.0f); + _vel_port->set_property("lv2:maximum", 1.0f); _ports->at(4) = _vel_port; } |