I’m trying to play samples randomly from a directory using loop() but am having some issues. I am able to locate the folder and access the samples individually however loop() does not allow for the sample argument to be a list (i.e. sample=[1,2,3,4]). My real goal, however, is to be able to select samples at random on the fly.
s1 >> loop("/usr/local/lib/python2.7/site-packages/FoxDot/snd/loop/", dur=1/4, sample=41)
Is there a better way to do this or something that I’m overlooking?