I've been trying to use AnalogOut, but when I run the following code, I get the following error:
AnalogOut Error: the UGen needs BELA analog outputs enabled
But I don't know what that means. Am I using AnalogOut correctly?
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.options.postln;
s.waitForBoot({
SynthDef(\writer, {
AnalogOut.ar(0, 0.5);
}).add;
s.sync;
a = Synth(\writer);
});
ServerQuit.add({ 0.exit }); // quit if the button is pressed