package lilv

  1. Overview
  2. Docs

Ports.

type t

A port.

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

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

val is_input : t -> bool

Whether a port is an input.

val is_output : t -> bool

Whether a port is an output.

val is_audio : t -> bool

Whether a port is an audio port.

val is_control : t -> bool

Whether a port is a control port.

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

Whether a port is a control port.

val is_connection_optional : t -> bool

Whether connection to a port is optional.

val index : t -> int

Index of a port.

val symbol : t -> string

Symbol of a port.

val name : t -> string

Name of a port.

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

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

val range_float : t -> float * float * float

Range of a port as floats.

val default_float : t -> float option

Default value of a port as float.

val min_float : t -> float option

Minimal value of a port as float.

val max_float : t -> float option

Maximal value of a port as float.

OCaml

Innovation. Community. Security.