Forums > MaxMSP

Speeding up audio analysis

February 10, 2011 | 9:01 pm

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.


February 11, 2011 | 2:41 pm

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


February 11, 2011 | 10:43 pm

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


February 12, 2011 | 10:28 pm

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


February 18, 2011 | 8:08 pm

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.


Viewing 5 posts - 1 through 5 (of 5 total)