I'm having trouble implementing [folder_list] to randomly select a file from the current directory of the patch I'm in. You can see an example of what I'm doing below:
I banging [folder_list] to get the list of files in the directory, then using [list-drip] to find the total number of items in the list and then passing this number to [random] to pick a random file from the current file list using [list-idx] (which is from the list-abs library).
The problem I'm having is instead of outputting one item of the list (i.e. the directory of one file) pd outputs several. I'm not certain of what is going on. Have I misunderstood what data type [folder_list] is outputting (is it not a list?!). Any help would be very much appreciated.
Best,
Chris