AudioSpectrumOutput
class NatML.Devices.Outputs.AudioClipOutput : AudioOutput
The AudioSpectrumOutput
computes the spectral distribution of audio buffers using the Fast Fourier Transform.
Creating the Output
The AudioSpectrumOutput
is created with the expected sampleCount
in a given FFT window. The channel
parameter can be used to select the channel index on which to perform the spectrum transformation.
The sampleCount
is always rounded to the closest power of two.
Updating with New Buffers
Refer to the Updating with New Buffers section of the AudioOutput
class for more information.
Accessing the Autospectrum
The spectrum
array contains the autospectrum (i.e. the spectrum magnitude) at each frequency bin.
The length of the spectrum
is always half of the sample count provided in the constructor.
Disposing the Output
Refer to the Disposing the Output section of the AudioOutput
class for more information.
Last updated