Module Node.Biquad_filter

Biquad filter nodes.

module Type : sig ... end

Biquad filter type.

type opts

The type for BiquadFilterOptions.

val opts : ?⁠channel_count:int -> ?⁠channel_count_mode:Channel_count_mode.t -> ?⁠channel_interpretation:Channel_interpretation.t -> ?⁠type':Type.t -> ?⁠q:float -> ?⁠detune:float -> ?⁠frequency:float -> ?⁠gain:float -> unit -> opts

opts () are analyser node options with given parameters.

type t

The type for BiquadFilter objects.

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

create ~opts c creates a biquad filter node.

val as_node : t -> node

as_node n is n as an audio node.

val type' : t -> Type.t

type' n is the type of n.

val set_type : t -> Type.t -> unit

set_type n t sets the type' of n to t.

val detune : t -> Param.t

detune n is the frequency detuning of n.

val frequency : t -> Param.t

frequency n is the frequency of n.

val q : t -> Param.t

q n is the quality factor of n.

val gain : t -> Param.t

gain n is the gain of n.

val get_frequency_response : t -> frequencies:Brr.Tarray.float32 -> mag_response:Brr.Tarray.float32 -> phase_response:Brr.Tarray.float32 -> unit

get_frequency_response n ~frequencies_hz ~mag_response ~phase_response calculates frequency responses for frequencies.