Offline Analysis

Hi !

I’m trying to do an offline analysis of imported music file.

I’m searching to have a similar behavior of “GetSpectrumDatawithout playing the song (offline analysis).

Can someone help me ? (I’m new with Unity3D so maybe it’s simple than expected…)

How about using AudioClip.GetData() to perform processing?

1 Like

Seems to be great but do I need FFT ?

Yes, the data is time domain, so you’ll need to transform for spectral shenanigans.

Something from the manual to keep in mind:

Any words from Unity? It shouldn’t be that hard to modify slightly AudioSource.GetSpectrumData and let us send samples. Unreal already does that https://docs.unrealengine.com/en-US/Engine/Audio/Synesthesia/index.html not to mention more functions like loudness and frequencies bands strength.