path: root/src/server/internals/Controller.cpp
diff options
authorDavid Robillard <>2013-06-09 02:27:16 +0000
committerDavid Robillard <>2013-06-09 02:27:16 +0000
commit2a37fbef6832aebfcb22feefa0bb05104eb6f018 (patch)
tree5e161bce0a7e0e6c5b66659693a139bff8520ec2 /src/server/internals/Controller.cpp
parent947b2ebaee2a4a6e5b59ec90856dd66eae63b3f2 (diff)
Inherit certain properties from ports connected to patch ports.
This is a bit too hard-edged at present, but does the right thing when building a patch from scratch at least. Something needs to be done about removing the properties, but this is hard for outputs since the arcs aren't keyed that way. The main problem here is that Ardour barfs on plugins with MIDI input for audio tracks, so if you *ever* connect the control input to a MIDI anything, it will stick and not work in an Ardour audio track. Maybe it should be just implemented for inputs as a stop gap... git-svn-id: a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/server/internals/Controller.cpp')
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/internals/Controller.cpp b/src/server/internals/Controller.cpp
index dd693eb3..5ac37df4 100644
--- a/src/server/internals/Controller.cpp
+++ b/src/server/internals/Controller.cpp
@@ -56,6 +56,8 @@ ControllerNode::ControllerNode(InternalPlugin* plugin,
_midi_in_port = new InputPort(bufs, this, Raul::Symbol("input"), 0, 1,
PortType::ATOM, uris.atom_Sequence, Atom());
_midi_in_port->set_property(uris.lv2_name, bufs.forge().alloc("Input"));
+ _midi_in_port->set_property(uris.atom_supports,
+ bufs.forge().make_urid(uris.midi_MidiEvent));
_ports->at(0) = _midi_in_port;
_param_port = new InputPort(bufs, this, Raul::Symbol("controller"), 1, 1,