Module

Audio.WebAudio.AnalyserNode

Package
purescript-webaudio
Repository
adkelley/purescript-webaudio

#fftSize Source

fftSize :: AnalyserNode -> Effect ByteLength

The size of the FFT (Fast Fourier Transform) to be used to determine the frequency domain. Its value must be a non-zero power of 2 in a range from 32 to 32768; its default value is 2048. If its value is not a power of 2, or it is outside the specified range, the exception INDEX_SIZE_ERR is thrown.

#frequencyBinCount Source

frequencyBinCount :: AnalyserNode -> Effect ByteLength

Half that of the FFT size. This generally equates to the number of data values you will have to play with for the visualization.

#minDecibels Source

minDecibels :: AnalyserNode -> Effect Number

Specifies the minimum value for the range of results when using getByteFrequencyData().

#maxDecibels Source

maxDecibels :: AnalyserNode -> Effect Number

Specifies the maxi0mum value for the range of results when using getByteFrequencyData().

#smoothingTimeConstant Source

smoothingTimeConstant :: AnalyserNode -> Effect Number

The averaging constant with the last analysis frame. This makes the transition between values over time smoother.

#getFloatFrequencyData Source

getFloatFrequencyData :: AnalyserNode -> Float32Array -> Effect Unit

Copy the current frequency data into the Float32Array.

#getByteFrequencyData Source

getByteFrequencyData :: AnalyserNode -> Uint8Array -> Effect Unit

Copy the current frequency data into the Uint8Array.

#getFloatTimeDomainData Source

getFloatTimeDomainData :: AnalyserNode -> Float32Array -> Effect Unit

Copy the current waveform, or time-domain, data into the Float32Array.

#getByteTimeDomainData Source

getByteTimeDomainData :: AnalyserNode -> Uint8Array -> Effect Unit

Copy the current waveform, or time-domain, data into the Uint8Array.