Skip to content

numAudioBusChannels on Bela scsynth lower than remote sclang #67

Description

@brianfay

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions