How to layer sound in processing

Hi guys, I’m very new here and a very beginner in Processing.
A quick question:
Is it possible to layer sounds in Processing.
Example: I’m running a sketch with a looping soundscape and I would like a timer to randomly choose small sound loops to play on top of the looping sound base. Is it possible do it? Thank you

I think yes

Look at the sound library and try it.

I believe @Chrisir meant to say the minim library. Sound library doesn’t seem to have much support these days, it is limited and it has some bugs in certain applications. Minim is more versatile. Check these posts: