Does anyone know of something similar for automatic analysis of audio using the FFT? There are visual ways to do it, but it would be nice to have an automated script
float* samples = ... //load audio samples here
int len = ...
fftwf_plan p = fftwf_plan_r2r_1d(len,samples,samples,FFTW_REDFT10,FFTW_ESTIMATE);
fftwf_execute(p);
RDResolution* res;
size_t count;
RDMethod* m = resdet_methods();
m->func(samples,len,1,1,&res,&count,12,m->threshold);