Hi all, I'm working on a patch that pulls a random wav file from a directory, plays it and then when it's getting close to the end, opens another random file and fades from one to the other. It's a pretty basic idea, but I'm pretty new to pd, so almost every step of that process has been challenging.
I've managed to get most of it put together by watching different tutorials and using example patches people have posted, but there seems to be a big limitation that I haven't found a good solution for yet. I am hoping to use wav files ranging from about 5~10 minutes long.
I'm currently reading them into arrays and playing them with tabread4~, which basically works except that it freezes up when loading either file, meaning it will be seemingly impossible to use this method to get an uninterrupted stream of sound. It also doesn't seem to handle 10 minute long files very well - they seem to be cut off from what I can tell in the array.
Alternatively, it seems like I could use readsf~, but then I'm not sure how I could know when to load/start the coming file, since it doesn't seem to offer the control that tabread4~ and arrays have.
Oh, I'm using Linux by the way. Thanks for any help you're able to offer!