Alexis Posted April 21, 2009 Report Share Posted April 21, 2009 Sorry i´m occupying the forum with my questions. At least the last 4 were mine. ;-) I would like to play WAV-Files randomly which are located in a folder. I can use a workaround to create Random Numbers between 1 an 100, rename the soundfiles accordingly (EG "1.wav") and use a string variable to pick those files. But i don´t want to rename the soundfiles. Is this possible? Maybe with one of those sophisticated "REPEAT WITH FOLDER" -Commands? Thanks a lot once more!!! Alexandra P.S.: I sometimes get 0 when Creating Random Integer Var. between 1 and 12 (set to a random value). How come? Quote Link to comment Share on other sites More sharing options...
Cory Posted April 21, 2009 Report Share Posted April 21, 2009 Yeah. Count the number of files in the folder. Then create a random number between 1 and the number of files. Now Repeat with Folder and include a counter. When the counter equals the random number aborth the repeat with a break and play that file. Quote Link to comment Share on other sites More sharing options...
Alexis Posted April 22, 2009 Author Report Share Posted April 22, 2009 Awesome, works great! Those Repeat Commands are powerful. Thank You Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.