Hey!
Hi to all, pleased to meet you!
I am kind of pretty new to Bela.
I am trying to run a SC on Bela, but I have some problems about it!
Right now it tells me that:
WARNING: Server localhost not running, could not send SynthDef.
There is the code if you want to have a look and hopefully give me some feedback!
s = Server.default;
s.options.numAnalogInChannels = 2; // can only be 2, 4 or 8
s.options.numAnalogOutChannels = 2;
s.options.numDigitalChannels = 0;
s.options.maxLogins = 4; // set max number of clients
s.options.bindAddress = "0.0.0.0"; // allow anyone on the network connect to this server
s.options.blockSize = 16;
s.options.numInputBusChannels = 2;
s.options.numOutputBusChannels = 2;
s.options.postln;
b = Buffer.read(s,"/root/Bela/projects/Start3/MitWMitL.wav");
q = Buffer.read(s,"/root/Bela/projects/Start3/MitWOhneL.wav");
w = Buffer.read(s,"/root/Bela/projects/Start3/OhneWaMitL.wav");
w = Buffer.read(s,"/root/Bela/projects/Start3/WohneLohne3.wav");
(
SystemClock.sched(2.0,{ //um zu Demonstration nur 2 Sekunden
"2.0 seconds later".postln;
//Mit Wasser mit Licht
(~a = 0;
~z = if (~a >4,(
SystemClock.sched(2.0,{
"2.0 seconds later".postln;
(SynthDef(\help_PlayBuf, {| out = 0, bufnum = 0 |
Out.ar(out,
PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum), doneAction: Done.freeSelf)
)
}).play(s, [\out, 0, \bufnum, b]) ; );}; ); ); ); );
//Mit Wasser Ohne Licht
(~a = 1;
~x = if (~a > 3, (
SystemClock.sched(2.0,{
"2.0 seconds later".postln;
(SynthDef(\help_PlayBuf, {| out = 0, bufnum = 0 |
Out.ar(out,
PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum), doneAction: Done.freeSelf)
)
}).play(s, [\out, 0, \bufnum, q]); );}; );
); ); );
//Ohne Wasser Mit Licht
(~a = 1;
~c = if (~a > 0, (
SystemClock.sched(2.0,{
"2.0 seconds later".postln;
(SynthDef(\help_PlayBuf, {| out = 0, bufnum = 0 |
Out.ar(out,
PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum), doneAction: Done.freeSelf)
)
}).play(s, [\out, 0, \bufnum, w]); );}; );
); ); );
//Ohne Wasser Ohne Licht
(~a = 1;
~c = if (~a > 5, (
SystemClock.sched(2.0,{
"2.0 seconds later".postln;
(SynthDef(\help_PlayBuf, {| out = 0, bufnum = 0 |
Out.ar(out,
PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum), doneAction: Done.freeSelf)
)
}).play(s, [\out, 0, \bufnum, e]); );}; );
); ); );
}; ); )
Thanks in advance!