package lilv

  1. Overview
  2. Docs

Module Lilv.PortSource

Ports.

Sourcetype t

A port.

Sourceval is_a : Node.t -> t -> bool

Determine if a port is of a given class (input, output, audio, etc).

Sourceval is_input : t -> bool

Whether a port is an input.

Sourceval is_output : t -> bool

Whether a port is an output.

Sourceval is_audio : t -> bool

Whether a port is an audio port.

Sourceval is_control : t -> bool

Whether a port is a control port.

Sourceval has_property : Node.t -> t -> bool

Whether a port is a control port.

Sourceval is_connection_optional : t -> bool

Whether connection to a port is optional.

Sourceval index : t -> int

Index of a port.

Sourceval symbol : t -> string

Symbol of a port.

Sourceval name : t -> string

Name of a port.

Sourceval range : t -> Node.t * Node.t * Node.t

Range of a port (default, minimal and maximal values).

Sourceval range_float : t -> float * float * float

Range of a port as floats.

Sourceval default_float : t -> float option

Default value of a port as float.

Sourceval min_float : t -> float option

Minimal value of a port as float.

Sourceval max_float : t -> float option

Maximal value of a port as float.