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:

How would I make the sound play? It doesn't work! - Processing 2.x and 3.x Forum
I'm trying to use minim to create a sounds when the balls collide, but i'm a bit lost. Thank you! - Processing 2.x and 3.x Forum

Kf