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

Printing "UGen(AnalogIn): 0.694458" causes mode switches #28

Closed giuliomoro closed 7 years ago

giuliomoro commented 7 years ago

e.g.: when running


// ak
(
SynthDef("AnalogIn",{ arg out=0;
    Out.ar(out,
        SinOsc.ar( AnalogIn.ar( 0 ).poll.exprange( 200, 5000 ), 0, 0.1 )
    )
}).send(s);
);

a = Synth.new("AnalogIn", target: s).postln;

While this would be fixed with #26, as printf would automatically be wrapped by rt_printf, it is probably better to set SetPrintFunc(rt_printf) somewhere.