- Edited
Hello there,
I am having difficulties live coding Bela from the SuperCollider IDE on my laptop.
SC–Bela documentation reference
I see that this issue has already been addressed in several threads e.g. Sclang on bela? e.g. SuperCollider through Bela IDE, yet I still can’t get connection between SC IDE and bela to work.
On this page I read:
“It’s also possible to live code Bela from the SuperCollider IDE. Download the Bela class files and follow the instructions in the README file to set it up. This setup allows you to execute code on your laptop, directly communicating with scsynth running on your Bela in real time.”
(NB the link to bela class files is a dead link)
Workflow
I am using the Bela SC example 7-Remote-control/remote.scd
This is my workflow:
1. Bela is connected to laptop via USB
2. On browser (bela.local) I run the following code (reduced version of _main.scd):
s = Server.default;
// Set up options for the Bela
s.options.numAnalogInChannels = 2;
s.options.numAnalogOutChannels = 2;
s.options.numDigitalChannels = 0;
s.options.maxLogins = 4;
s.options.blockSize = 16;
s.options.numInputBusChannels = 2;
s.options.numOutputBusChannels = 2;
s.waitForBoot {
};
ServerQuit.add({ 0.exit }); // quit if the button is pressed
3. I run this code from my SuperCollider IDE (version 3.11.2)
( // connect to the already-running remote belaserver
Server.default = s = Server("belaServer", NetAddr(“XXX.XXX.X.XX”, 57110)); // In the NetAddr I am pasting my IP address
s.options.maxLogins = 4; // should match the settings on the Bela
s.initTree;
s.startAliveThread;
);
When I run this:
- The interpreter is active
- The server is not (yellow values in SC IDE)
In fact, running s.plotTree
and attempting any further computation triggers this message in the post window:
WARNING: Server failed to respond to Group:queryTree!
WARNING: server 'belaServer' not running.
Am I using the wrong NetAddr
? (using Bela’s IP address is no better)
I would be very thankful for some help!