lilv.port

class Port

Types 1

classPort

A port on a Plugin.

Fields
private const(LilvPlugin) * _plugin
private const(LilvPort) * _cPtr
private World _world
Methods
const(LilvPort) * handle() @property @nogc nothrow
World world() @property @nogc nothrow
Node node() @propertyRDF node for this port
uint index() @property @nogc nothrowPort index (may change between plugin versions).
Node symbol() @propertyShort symbol (valid C identifier).
Node name() @propertyHuman-readable name
Nodes classes() @propertyAll classes of this port
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 property
bool 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 matches
Node 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 matches
Nodes properties()Return the LV2 port properties of a port. Returns: A collection of LV2 port properties or null if none
void 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 value
ScalePoints 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