module Descriptor:sig..end
Descriptors.
type t
A descriptor.
val descriptor : Ladspa.Plugin.t -> int -> tRetrieve the n-th descriptor of a plugin.
val descriptors : Ladspa.Plugin.t -> t arrayRetrieve all the descriptors of a plugin.
val unique_id : t -> intThis numeric identifier indicates the plugin type uniquely. Plugin programmers may reserve ranges of IDs from a central body to avoid clashes. Hosts may assume that IDs are below 0x1000000.
val label : t -> stringThis identifier can be used as a unique, case-sensitive identifier for the plugin type within the plugin file. Plugin types should be identified by file and label rather than by index or plugin name, which may be changed in new plugin versions. Labels must not contain white-space characters.
val name : t -> stringName of the plugin (e.g. "Sine Oscillator").
val maker : t -> stringString indicating the maker of the plugin.
val copyright : t -> string optionString indicating any copyright applying to the plugin.
val port_count : t -> intThis indicates the number of ports (input AND output) present on the plugin.
val port_name : t -> int -> stringName of the n-th port.
val port_is_input : t -> int -> boolIs the n-th port an input?
val port_is_output : t -> int -> boolIs the n-th port an output?
val port_is_audio : t -> int -> boolIs the n-th port an audio port?
val port_is_control : t -> int -> boolIs the n-th port a control port?
val port_is_integer : t -> int -> bool
val port_is_boolean : t -> int -> bool
val port_is_logarithmic : t -> int -> bool
val port_get_default : t -> ?samplerate:int -> int -> float optionGet a sensible default value for a control port.
val port_get_min : t -> ?samplerate:int -> int -> float option
val port_get_max : t -> ?samplerate:int -> int -> float option
type instance
Instance of a descriptor.
val instantiate : t -> int -> int -> instanceinstantiate descr freq len instantiates the descriptor descr with a
sampling frequency freq indicating that len samples should be
processed at each run.
val set_samples : instance -> int -> unitChange the number of samples that should be processed at each run.
val connect_audio_port : instance -> int -> float array -> int -> unitconnect_audio_port inst p buf ofs connects the audio port p of
instance inst to the buffer buf starting at position ofs.
val connect_control_port_in : instance -> int -> float -> unitConnect an input control port.
val connect_control_port_out : instance -> int -> float Stdlib.ref -> unitConnect an output control port.
val activate : instance -> unitActivate (i.e. initialize) a plugin.
val deactivate : instance -> unitDeactivate a plugin.
exception Input_port_not_connected of int
An input port is not connected.
val run : instance -> unitProcess samples.
val pre_run : instance -> unitInternal function used by the DSSI binding.
Internal function used by the DSSI binding.
val post_run : instance -> unitInternal function used by the DSSI binding.
val post_run_adding : instance -> unit