Minim beat detection inconsistency

I'm doing some very basic beat detection with Minim but I'm finding the results to be somewhat erratic. Each time I analyse the same file with the same settings I get a different result. I would have expected that this should give the same result each time, given the same input — is that not the case?

Thanks.

Answers

  • ddfddf
    Answer ✓

    If the BeatDetection object does not see every single buffer of audio from the file it will be a little bit different every time, I think. If you are analyzing the song with something like beat.detect(song.mix) in your draw(), then which buffers the detection algorithm sees will depend on framerate of the sketch.

  • OK, that makes sense, thanks. For it to be 100% consistent then you would have to set the buffer length to sample rate/frame rate, I guess.

Sign In or Register to comment.