Beads - Add timeout when an audio ends

Hello everyone,

I want the audio to be reproduced in loop, but between loops, I need a timeout.

I tried coding “delay(1000);” but it influences the rest of the code.

In case anyone is wondering what I want to do: I want a bass drum sound in a loop (bum bum bum bum…), but with the possibility of adding time between loops (bum bum bum bum). The idea is to be able to make music. I’ll connect it all with potentiometers. I’m lost.

A thousand thanks,

Derrik

Hi @Alumno51.
If you’re using the exact method

delay(1000);

That is not from the Beads library, it comes from the Processing code base. So it most definitely will effect the rest of your code.
Beads has different ways of doing what you’re trying to do. It comes with an example that possibly may be what you’re looking for. Look at this:
beads/Lesson07_Music.pde
Good luck!