Error in when trying to use minim BeatDetect

I’m trying to use the code to detect beats in a song. I looked a Minim.BeatDetect class that i found in several examples:

but when i try this sketch it gives me an error in the detect() function call:
The function detect(AudioBuffer) does not exist.

I’m a little new to Processing, so i hope i’m not doing anything wrong with the way i added the library(i went to library manager and just looked for minim and adeed it)

what am i doing wrong and how can i solve this?

1 Like

the example code
how to make a music visualization using beat detect and random lines - Processing 2.x and 3.x Forum ,
works ( on win7 64bit / processing 3.5.3. )

but i do see at console

==== JavaSound Minim Error ====
==== Don’t know the ID3 code WXXX

but when you have doubts about install library,
-a- need restart processing
-b- you must start with a example from that library…

++ as this verifies that the library is in the correct path
++ and you start a example with good loading of file…

1 Like

Did @kll answer your question?

It looks to me like you loaded the latest library, but copied an old example from an old library off the forum. The latest beat detection examples (shown in the screenshot above) are:

  • PDE > File > Examples > Contributed Libraries > minim > Analysis
    • FrequencyEnergyBeatDetection
    • SoundEnergyBeatDetection

this is so weird. the example works. I if copy entire code of the example to my file (beatDetect.pde) it gives me the same error on the same line.
not sure I understand why.

I saved the example on another folder and then that one works.

Strange. Maybe you have a tab or a subfolder in the broken sketch with a bad copy of the library jar, or with invalid code causing the error? Start from the clean copy – and good luck!