Hi, I've been struggling to build a simple guitar looper using SuperCollider on Bela.
After a ton of debugging I realized that using sclang's bus allocator (I'm calling Bus.audio()) must be creating a bus with an index that's too high for Bela. If I tried providing my own bus index, say around 10, things were fine. But if I used Bus.audio(), with a bus index in the hundreds, I got silence.
Setting this parameter in the server startup with s.options.numAudioBusChannels = 1024; fixes the issue.
I'm running SuperCollider using the 12-SuperCollider: 7-remote-control script in the IDE, and then running some of the code here in a remote SC IDE. Everything's worked very smoothly apart from the bus issue. With the bus issue I never had any errors in the Bela IDE post window or the SC IDE post window, so it was really hard to figure out what was going on.
I would put in a PR to change the remote-control script to set s.options.numAudioBusChannels and s.options.numControlBusChannels, but I'm confused about what the number should be; is Bela intentionally using less than 1024 for performance reasons?
Hi, I've been struggling to build a simple guitar looper using SuperCollider on Bela.
After a ton of debugging I realized that using sclang's bus allocator (I'm calling
Bus.audio()) must be creating a bus with an index that's too high for Bela. If I tried providing my own bus index, say around 10, things were fine. But if I usedBus.audio(), with a bus index in the hundreds, I got silence.Setting this parameter in the server startup with
s.options.numAudioBusChannels = 1024;fixes the issue.I'm running SuperCollider using the
12-SuperCollider: 7-remote-controlscript in the IDE, and then running some of the code here in a remote SC IDE. Everything's worked very smoothly apart from the bus issue. With the bus issue I never had any errors in the Bela IDE post window or the SC IDE post window, so it was really hard to figure out what was going on.I would put in a PR to change the remote-control script to set
s.options.numAudioBusChannelsands.options.numControlBusChannels, but I'm confused about what the number should be; is Bela intentionally using less than 1024 for performance reasons?