Node.AnalyserAnalyser nodes.
The type for AnalyserOptions.
val opts : ?channel_count:int -> ?channel_count_mode:Channel_count_mode.t -> ?channel_interpretation:Channel_interpretation.t
-> ?fft_size:int -> ?max_decibels:float -> ?min_decibels:float ->
?smoothing_time_constant:float -> unit -> optsopts () are analyser node options with given parameters.
The type for AnalyserNode objects.
val get_float_frequency_data : t -> Brr.Tarray.float32 -> unitget_float_frequency_data n d copies frequency data into d.
val get_byte_frequency_data : t -> Brr.Tarray.uint8 -> unitget_byte_frequency_data n d copies frequency data into d.
val get_float_time_domain_data : t -> Brr.Tarray.float32 -> unitget_float_time_domain_data n d copies time-domain data into d.
val get_byte_time_domain_data : t -> Brr.Tarray.uint8 -> unitget_byte_frequency_data n d copies time-domain data into d.
val fft_size : t -> intfft_size n is the window size of n.
val frequency_bin_count : t -> intfrequency_bin_count n is the frequency bin count of n.
val min_decibels : t -> floatmin_decibels n is the lower bound on results of n.
val set_min_decibels : t -> float -> unitset_min_decibels n v sets min_decibels of n to v.
val max_decibels : t -> floatmax_decibels n is the upper bound on results of n.
val set_max_decibels : t -> float -> unitset_max_decibels n v sets max_decibels of n to v.
val smoothing_time_constant : t -> floatsmoothing_time_constant n is the averaging constant of n.
val set_smoothing_time_constant : t -> float -> unitset_smoothing_time_constant n v sets smoothing_time_constant of n to v.