Quantcast
Channel: Library Questions - Processing 2.x and 3.x Forum
Viewing all articles
Browse latest Browse all 2896

How do I play a random audio sample?

$
0
0

Hi there. So I'm still quite new to the coding game and I've been working on a visual code which is going really well. I'm now trying to add some sound. Using Minim audio samples I've made it so a sound plays when you click. However, I would like it to be so that when I click it plays a random 1 of, say, 5 audio samples. How do I go about doing this?

Many thanks in advance for any help


Viewing all articles
Browse latest Browse all 2896

Trending Articles