From the releases page on github.
root@bela:~# scsynth -v
scsynth 3.11.2 (Built from branch 'develop' [4989ef982])
root@bela:~# sclang -v
sclang 3.11.2 (Built from branch 'develop' [4989ef982])
root@bela:~# dpkg -l sc3-plugins
ii sc3-plugins 3.11.2 armhf sc3-plugins built using CMake
Here's the full source:
s = Server.default;
s.options.numAnalogInChannels = 8;
s.options.numAnalogOutChannels = 8;
s.options.numDigitalChannels = 16;
s.options.blockSize = 16;
s.options.numInputBusChannels = 2;
s.options.numOutputBusChannels = 2;
s.latency = nil;
s.waitForBoot({
(
{
var tr3 = DigitalIn.kr(15);
Out.ar(0, tr3 * SinOsc.ar(440))
}.play;
)
});
I'm not sure about DigitalIn.ar vs DigitalIn.kr. *.kr in this context here (audio rate vs. control rate for a trigger input?)
I'm trying to run through the Bela IDE as opposed to connecting to the server remotely now.
*.kr gives this error:
DigitalIn error: digital pin must be between 0 and 16, it is -2147483648
*.ar gives no error, but also doesn't seem to be reading the pin.