Speeding up audio analysis

agargara's icon

I currently have a patch that analyzes an audio file by playing through it and calculating a running average for frequency, average gain, and a few other aspects. The problem is that you have to wait for the entire file to play through for the analysis to complete!

Is there a way to seek through an audio file at a faster speed without loss of precision? I suppose I could just play the file back at 4x the speed or something, but I feel like doing so would screw up the measurements.

Holland Hopson's icon

Have you looked into using the NonRealTime driver in DSP Status?

Roald Baudoux's icon

You might also integrate your analysis patch into an upsampled poly~.

seejayjames's icon

you could try peek~ through the whole file, but not sure how fast it'll be.

agargara's icon

Thanks Holland, that helps speed it up a lot! I didn't know there was that option.

Roald and seejayjames, thanks for the ideas, I might see if I can get any speed boosts from them. For now though, using the NonRealTime driver helps immensely.