bamsehopp . I suppose this uploads the files to a small partition on the SD card? is there a way to stream files directly from the larger portion of the card? I’m using an 8gb card.
The working partition is by default slightly below 4 GB. You can extend it to take up all free space in the SD card following the instructions here.
bamsehopp Anyway when I try to load the file in an array (I’m using PD), i get an out of memory error
There's not a lot of RAM on the board (512MB), and 16-bit wav files would take up twice as much space in RAM as the size of the file because of how Pd handles data. Normally when you have large samples the trick is to use [readsf~], which doesn't load all the file at once but streams it from disk as needed. The downside to that is that every time you start playing a file it needs a bit of time between the [open( and [1( (start) messages. If you need instantaneous playback of many and/or long audio files, you can use a combination of loading the first few samples in RAM (using [soundfiler] and [tabplay~]), for immediate playback, paired with [readsf~] for streaming the later part of the file from disk. Here's an example that does just that: https://github.com/giuliomoro/dynamic-load-files-Pd