Skip to main content

Beat Detection

The beat detector employs FFT sub-bands and energy history to perform its analysis. FFT sub-bands are frequency components obtained by breaking down an audio signal into smaller segments using the FFT algorithm.

The default size for FFT sub-bands is 32, and the default energy history size is 41. You can customize these sizes to suit your needs by using the appropriate functions.

Is Beat​

Calculate if there was beat in the processed magnitude spectrum.

Is Kick​

Calculate if there was a kick beat in the processed magnitude spectrum.

Is Snare​

Calculate if there was a snare drum beat in the processed magnitude spectrum.

Is Hi Hat​

Calculate if there was a hi-hat beat in the processed magnitude spectrum.

Is Beat Range​

Calculate if there is a beat within the given sub-bands span. If the FFT sub-band size is 32 (which is the default value), the range is 0-31.

Get Band​

Get the value of the specified sub-band.