Playing random audio file

Hi,

we are touch designer beginners and are working on an interactive audio installation.
We are currently trying to figure out how to play audio files in a randomly generated order after a trigger input. When another trigger happens they are supposed to stop playing (fading out) and once they are triggered again we would like another randomly generated order of the audio files to play (fade in) so that it doesn’t always start with the same audio file.

We haven’t been able to find a solution so far after several hours of searching. We are also total newbies to touch designer and no programmers. Any help would be greatly appreciated!

Difficult to use TD without a minimum interest in programming…
There is no premade solution in TD, you have to build your device.
Some paths:
– use some physical entry (keyboard, midi…) with a Chop
– use folder Dat to have a table with the list of your files, a little random python script started by your signal can choose the file (chop execute Dat)
– use timer Chop to do the fade in and the fade out
For a project like that you HAVE to use (and to learn) a minimum of Python.

Hi @corayana

This is probably best suited for some DATs, which can be scary, but I can give you this to try playing with!

randomAudioFileSelect.toe (4.6 KB)

Just select a folder and start the timer (after setting it to whatever duration you want). Hope this helps!

1 Like