branchrust_reboot/main/BeatDetectioncancel
17 Commits over 0 Days - ∞cph!
Reduce AudioVisualisationEntity samples to 128, improve performance
More beat detection work. Go back from using RMS, as the basic average provides better variation
Balancing volume response, set up laser light
Handle fake input nicely with the new setup
Use both audio channels for audio vis so that player turning around doesn't affect beat detection
Roughly keep track of peak audio level to better handle differing volume between stations, or Unity's thing of including the volume level falloff from distance in the data
Get the discofloor looking good with the updated audio input
Put GetFakeInput back, we actually do use it!
Select the best audio sample size to roughly cover the last frame (within reasonable limits)
Since we only care about the overall volume, use GetOutputData instead of GetSpectrumData. No more need for an FFT.
Removed unnecessary brackets
Now getting an RMS value from each call to GetSpectrumData by taking the square root of the squares of each value, although no one is completely sure what exactly GetSpectrumData returns for each frequency band.
Removed GetFakeInput since it was unused.