Audio Analysis for Audio Reactive FX
Audio Analysis Component
Audio Analysis is a component which takes the attached audio source and calculates the levels. Derived from Keijiro’s code, It supports Property Binders that modifies properties of attached objects based on the amplitude level.
The component breaks down the frequency data into 8 bins based on the frequency classification as below:
|Audio Band||Description||Frequency Range (Hz)|
There are two kind of audio levels calculated from the audio source.
- Actual digital output which can have abrupt fall or spikes.
- Buffered levels which smooths down the fall value. Useful to make choppy animations smoother.
Select an Audio Channel to use as an input.
Example demo showcasing a sphere scaled by the audio amplitude. It uses the Audio Analysis component to calculate the audio amplitude and a Property Binder to animate the scale property of the sphere.
LevelMeter is a slightly advanced example of the use of Audio Level Tracker that shows low/mid/high frequency band levels. It also uses the raw waveform function to draw the waveform graph.
- Unity 2019.3 or later for parameter binders