Randomly playing samples within a folder
I have several folders with about 1000 samples in that I want max to randomly pick and play from. I dont want to use Sfplay/sflist because it would take a long time to make the lists (even worse if I renamed the files 1.wav, 2.wav etc) - is there a way to do this - just tell max to randomly grab and play .wavs from a folder ?
this construct can help you set up a coll with all your filenames:
..at least it should point you in the right direction?
Polybuffer~ is made for this, you can use it with info~ to populate your list and then just re-assign your playback object (whatever one you choose, as long as it's buffer~ based) for each file. I'm doing it in a patch at the moment and it works a treat.
Try umenu's populate/prefix function.
Brilliant ! tx
I'd avoid umenu for this... dunno, I wouldn't want to load up a UI object with 1000 sample names.
Thanks for this, it was really useful for me . I used the patch from Chris Rolfe. I was able to sync a folder to play the files randomly . I now have an issue that it I cannot select a different folder pathway using the same patch. any ideas on why this would happen and how I can access other folder paths?