jesse-scam / algorithmic-beat-mapping-unity

Real-time and Preprocessed Audio Analysis for Onset Detection (Beat Mapping) Using Spectral Flux
MIT License
138 stars 33 forks source link

About Spectrum Sample step #3

Open Personuo opened 8 months ago

Personuo commented 8 months ago

Hello ,I have a questions , that is how to setting spectrum sample step , and I found in this code

int spectrumSampleSize = 1024;
int iterations = preProcessedSamples.Length / spectrumSampleSize;

why iterations = preProcessedSamples.Length / spectrumSampleSize ? this mean if I set spectrumSampleSize to 4096 , iterations will reduce.

Shouldn't the number of iterations be determined based on the step size and time? I'm sorry, I'm not very familiar with the principles of music data processing.