summaryrefslogtreecommitdiffstats
path: root/src/engine/internals/Controller.cpp
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2010-02-14 02:33:14 +0000
committerDavid Robillard <d@drobilla.net>2010-02-14 02:33:14 +0000
commit8e39e60112ff2a86587436edbde31dc1030bb681 (patch)
treea0b3e44fca9748928dba8357ee043459addf425e /src/engine/internals/Controller.cpp
parentfa2a13801862a379d367afa29497dbe24662ecba (diff)
downloadingen-8e39e60112ff2a86587436edbde31dc1030bb681.tar.gz
ingen-8e39e60112ff2a86587436edbde31dc1030bb681.tar.bz2
ingen-8e39e60112ff2a86587436edbde31dc1030bb681.zip
Add human name to internal nodes (fix ticket #479).
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@2448 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/engine/internals/Controller.cpp')
-rw-r--r--src/engine/internals/Controller.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/internals/Controller.cpp b/src/engine/internals/Controller.cpp
index 634fc152..3d856fe0 100644
--- a/src/engine/internals/Controller.cpp
+++ b/src/engine/internals/Controller.cpp
@@ -53,25 +53,31 @@ ControllerNode::ControllerNode(BufferFactory& bufs,
_ports = new Raul::Array<PortImpl*>(6);
_midi_in_port = new InputPort(bufs, this, "input", 0, 1, PortType::EVENTS, Raul::Atom(), _buffer_size);
+ _midi_in_port->set_property(uris.lv2_name, "Input");
_ports->at(0) = _midi_in_port;
_param_port = new InputPort(bufs, this, "controller", 1, 1, PortType::CONTROL, 0.0f, sizeof(Sample));
_param_port->set_property(uris.lv2_minimum, 0.0f);
_param_port->set_property(uris.lv2_maximum, 127.0f);
_param_port->set_property(uris.lv2_integer, true);
+ _param_port->set_property(uris.lv2_name, "Controller");
_ports->at(1) = _param_port;
_log_port = new InputPort(bufs, this, "logarithmic", 2, 1, PortType::CONTROL, 0.0f, sizeof(Sample));
_log_port->set_property(uris.lv2_portProperty, uris.lv2_toggled);
+ _log_port->set_property(uris.lv2_name, "Logarithmic");
_ports->at(2) = _log_port;
_min_port = new InputPort(bufs, this, "minimum", 3, 1, PortType::CONTROL, 0.0f, sizeof(Sample));
+ _min_port->set_property(uris.lv2_name, "Minimum");
_ports->at(3) = _min_port;
_max_port = new InputPort(bufs, this, "maximum", 4, 1, PortType::CONTROL, 1.0f, sizeof(Sample));
+ _max_port->set_property(uris.lv2_name, "Maximum");
_ports->at(4) = _max_port;
_audio_port = new OutputPort(bufs, this, "ar_output", 5, 1, PortType::AUDIO, 0.0f, _buffer_size);
+ _audio_port->set_property(uris.lv2_name, "Output");
_ports->at(5) = _audio_port;
}