Spectrum Analyzer
Getting the spectrum data from an audio source
Last updated
Getting the spectrum data from an audio source
Last updated
Assign a SoundSource here to obtain spectrum data when it plays. This field is optional, meaning it can be left null, and the spectrum data source can be set via code at runtime.
FFT (Fast Fourier Transform) is an algorithm used to extract frequency information from a signal. A larger size provides better precision but comes at a higher performance cost.
Block Size Number of data samples used for FFT, which can also be considered as frequency resolution. The bigger the size is, the better precision, but also higher performance cost.
Channel The target channel from which the spectrum is sampled.
Instead of using raw spectrum data, BroAudio processes it into amplitudes for easier use and better readability.
Metering The metering type used to calculate the amplitude of each band during updates.
Attack The time it takes to raise a level of 20dB in milliseconds
Decay The time it takes to reduce a level of 20dB in milliseconds
Smooth Increase this value to smooth the spectrum changes. The higher the value, the smoother it becomes
Defines the frequency bands used for analysis.
Frequency The starting frequency of the band. You can either enter a value manually or adjust it by dragging the lines in the spectrum view above.
Weight Adjusts the band's response sensitivity, allowing you to emphasize certain frequencies.
SetSource
void
Window Type The type to use when sampling.
Set the source for fetching spectrum datas. It should be called when the field is empty.