diff options
Diffstat (limited to 'src/engine/InputPort.cpp')
-rw-r--r-- | src/engine/InputPort.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/engine/InputPort.cpp b/src/engine/InputPort.cpp index 010fdd93..80ae836d 100644 --- a/src/engine/InputPort.cpp +++ b/src/engine/InputPort.cpp @@ -49,6 +49,12 @@ InputPort::InputPort(BufferFactory& bufs, { if (!dynamic_cast<Patch*>(parent)) add_property("rdf:type", Raul::Atom(Raul::Atom::URI, "lv2:InputPort")); + + // Set default control range + if (type == PortType::CONTROL) { + set_property("lv2:minimum", 0.0f); + set_property("lv2:maximum", 1.0f); + } } |