Hi there,
I’m pretty new to processing.
For an audio installation, I need a processing sketch to play random sounds from the data folder every 5 seconds, indefinitely.
For this example I have 10 mp3 files, but I’ll need to use it with at least 100 sounds in the future.
The files are numbered from 0 to 9.
My problem is that I need the program to play all the files and not repeating any of them untill it played all of the 10 files.
And more important, when it has played the 10 files in a unique random order, I need it to do it again with an other unique order of random number, and so on.
In Max/MSP this randomness is called an ‘urn’, but I can’t find similar things with processing.
Maybe I should generate a list of 10 numbers from 0 to 9 in a random order, then play my files following that order, and repeating that every 10 files. But I have no idea how to do it.
thanks kll !
The IntList works great ! But it stopped a the end of the first list.
But how could I program a ‘reshuffle’, for example, every time it has played a number a files thats equal to int max -1 ?