BelaPlatform / supercollider

an environment and programming language for real time audio synthesis and algorithmic composition
GNU General Public License v3.0
14 stars 8 forks source link

Ndef not functional remotely #19

Open jreus opened 8 years ago

jreus commented 8 years ago

Ndefs seem also not to work when coding remotely on the Bela. The following code doesn't throw any errors, but produces no signal at either output.

s = Server.new('belaServer', NetAddr("192.168.7.2", 57110));
s.initTree;
s.startAliveThread;
Ndef(\sintone -> 'belaServer', {
    AnalogOutput.ar( DC.ar( 0 ), SinOsc.ar(440).range(0.0, 0.5) ); // output channel must be audio rate
    Out.ar( 0, SinOsc.ar(440) );
}).play;

Whereas the following works fine:

x = {
    AnalogOutput.ar( DC.ar( 0 ), SinOsc.ar(440).range(0.0, 0.5) );
    Out.ar( 0, SinOsc.ar(440) );
}.play(target: s);
sensestage commented 7 years ago

I think this is related to #18 A lot of communication back and forth happens behind the scenes in Ndef.