Bela Gem sample reading
Hello there,
I’m a new owner of a Bela Gem Multi, my aim is to use it for a sound installation requiring multichannel audio played on headphones. For this, I wanted to use RNBO and then export the C++ code to run it on Bela. My actual project is to have a realtime selection of a lot of audio files (more than 500). There are predominantly under 30 seconds and goes to around 5 minutes for the longer ones. Right now, it does not work with this number of files when I build the exported C++ code with the Bela IDE. But it does work when I use less audio files (around 40, WAVE 48-24).
In RNBO, I use a very simple patch (screenshot below), to select the files read by a groove~ which buffer is changed by a multibuffer~. I declare all my audio files with buffer~ objects, they seem to be recognized in the console of the Bela IDE. It seems it’s the working method right now in RNBO to use buffers, even though it’s really painful to name individual files like this.
I had not anticipated this issue and following an answer from the Bela forum, I understand that I need to load a few samples in RAM to play them and load the rest from disk when it's needed. Here I'm going over what the RAM is capable with this size of audio files and reading only from RAM.
Is it possible in RNBO to specify this kind of operation (i.e. allocation between RAM and disk) ?
Thanks a lot for your help !
