Functions | |
void | onsetsds_loadframe (OnsetsDS *ods, float *fftbuf) |
void | onsetsds_whiten (OnsetsDS *ods) |
void | onsetsds_odf (OnsetsDS *ods) |
void | onsetsds_detect (OnsetsDS *ods) |
void onsetsds_loadframe | ( | OnsetsDS * | ods, | |
float * | fftbuf | |||
) |
Load the current frame of FFT data into the OnsetsDS struct.
Not typically called directly by users since onsetsds_process() calls this.
void onsetsds_whiten | ( | OnsetsDS * | ods | ) |
Apply adaptive whitening to the FFT data in the OnsetsDS struct.
Not typically called directly by users since onsetsds_process() calls this.
void onsetsds_odf | ( | OnsetsDS * | ods | ) |
Calculate the Onset Detection Function (includes scaling ODF outputs to similar range)
Not typically called directly by users since onsetsds_process() calls this.
void onsetsds_detect | ( | OnsetsDS * | ods | ) |
Detects salient peaks in Onset Detection Function by removing the median, then thresholding. Afterwards, the member ods.detected will indicate whether or not an onset was detected.
Not typically called directly by users since onsetsds_process() calls this.