lilv.port
class Port
Types 1
classPort
A port on a Plugin.
Methods
bool isA(Node portClass) @nogc nothrowDetermine if a port is of a given class (input, output, audio, etc).bool hasProperty(Node property) @nogc nothrowReturn whether a port has a certain property. Params: property = Property name Returns: true if port has the propertybool supportsEvent(Node eventType) @nogc nothrowReturn whether a port supports a certain event type. More precisely, this returns true iff the port has an atom:supports or an ev:supportsEvent property with event_type as the value.Nodes getValue(Node predicate)Get a value from a port. Port analog of Plugin.getValue() Params: predicate = URI or a QName Returns: Values associated with the predicate or null if no matchesNode get(Node predicate)Get a single value from a port. Like getValue() but just returns the first matching value. Params: predicate = URI or a QName Returns: First value matching predicate or null if no matchesNodes properties()Return the LV2 port properties of a port. Returns: A collection of LV2 port properties or null if nonevoid getRange(out Node def, out Node min, out Node max)Default / min / max values. Any of the three may be null if the port has no such value. Params: def = Output default value min = Output minimum value max = Output maximum valueScalePoints scalePoints()Get the scale points (enumeration values) of a port. This returns a collection of "interesting" named values of a port, which for example might be appropriate entries for a value selector in a UI. ...Constructors
this(const(LilvPlugin) * plug, const(LilvPort) * p, World world)Destructors