package brr

  1. Overview
  2. Docs
Legend:
Page
Library
Module
Module type
Parameter
Class
Class type
Source

Module Node.Biquad_filterSource

Biquad filter nodes.

Sourcemodule Type : sig ... end

Biquad filter type.

Sourcetype opts

The type for BiquadFilterOptions.

Sourceval 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.

Sourcetype t

The type for BiquadFilter objects.

Sourceval create : ?opts:opts -> context -> t

create ~opts c creates a biquad filter node.

Sourceval as_node : t -> node

as_node n is n as an audio node.

Sourceval type' : t -> Type.t

type' n is the type of n.

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

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

Sourceval detune : t -> Param.t

detune n is the frequency detuning of n.

Sourceval frequency : t -> Param.t

frequency n is the frequency of n.

Sourceval q : t -> Param.t

q n is the quality factor of n.

Sourceval gain : t -> Param.t

gain n is the gain of n.

Sourceval 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.