Module Node.Dynamics_compressor

Dyamics compressor nodes.

type opts

The type for DynamicsCompressorOptions.

val opts : ?⁠channel_count:int -> ?⁠channel_count_mode:Channel_count_mode.t -> ?⁠channel_interpretation:Channel_interpretation.t -> ?⁠attack:float -> ?⁠knee:float -> ?⁠ratio:float -> ?⁠release:float -> ?⁠threshold:float -> unit -> opts

opts () are dynamics compressor node options with given parameters.

type t

The type for DynamicsCompressorNode objects.

val create : ?⁠opts:opts -> context -> t

create ~opts c creates a dynamics compressor node.

val as_node : t -> node

as_node n is n as an audio node.

val attack : t -> Param.t

attack n is the attack of n.

val knee : t -> Param.t

knee n is the knee of n.

val ratio : t -> Param.t

ratio n is the ratio of n.

val reduction : t -> float

reduction n is the reduction of n.

val release : t -> Param.t

release n is the release of n.

val threshold : t -> Param.t

threshold n is the threshold of n.