Module Node.Iir_filter

IIR filter nodes.

type opts

The type for IIRFilterOptions.

val opts : ?channel_count:int -> ?channel_count_mode:Channel_count_mode.t -> ?channel_interpretation:Channel_interpretation.t -> feedforward:Brr.Tarray.float32 -> feedback:Brr.Tarray.float32 -> unit -> opts

opts () are IIR filter node options with given parameters.

type t

The type for IIRFilterNode objects.

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

create ~opts c creates a IIR filter node.

val as_node : t -> node

as_node n is n as an audio node.

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 ~mag_response ~phase_response calculates frequency responses for frequencies.