-
... ; x = a.asStream; x.nextN(20).postln; x.reset; ) // sound example ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(out, SinOsc .ar(freq, 0, ...
-
... .kr(in) in - input signal see also: PauseSelf // example ( SynthDef ( \freeSelf_help , { |out, t_trig| FreeSelf .kr(t_trig); Out .ar(out, SinOsc .ar(400,0,0.2)); }).send(s); ) a = Synth ( \freeSelf_help ); a.set( \t_trig , 1); // a single i ...
-
... back - wear headphones to prevent it. // patching input to output ( SynthDef ( "help-AudioIn" ,{ arg out=0; Out .ar(out, AudioIn .ar(1) ) }).play; ) // stereo through patching from input to output ( SynthDef ( "help-AudioIn" ,{ arg out=0; O ...
-
... ); // a four second 1 channel Buffer ) // record for four seconds ( SynthDef ( \help_RecordBuf , { arg out = 0, bufnum = 0; var formant; formant = Formant .ar( XLine .kr(400,1000, 4), 2000, 800, 0.125); RecordBuf .ar(formant, bufnum, doneAc ...
-
... hs at any time simply by executing blocks of code. // do this ( x = SynthDef ( "Help-SynthDef" , { arg out=0; Out .ar(out, PinkNoise .ar(0.1)) }).play; // SynthDef-play returns a Synth object. ) // then do this ( SynthDef ( "help-Rand" , { ...
-
... mes b = a.asStream; 16.do({ b.next.postln; }); ) // sound example ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(out, SinOsc .ar(freq, 0, ...
-
... to track a particular UGen. src - UGen to monitor //example ( SynthDef ( "Done-help" , { arg out, t_trig; var line, a, b; line= Line .kr(1,0,1); a= SinOsc .ar(440,0,0.1*line); //sound fading out b= WhiteNoise .ar( Done .kr(line)*0.1); //no ...
-
... 2 Decay Integrator TwoPole [ APF TwoZero ] OnePole [ OneZero ] Resonz ] Look in Help/UGens/Filters in the SuperCollider help system to see filter help files and numerous examples. //////////////////////////////////////////////////////////// ...
-
... stream will also be infinite. Ppatlace as a sequence of pitches: ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(out, SinOsc .ar(freq, 0, ...
-
... 7.do({ b.next.postln; }); ) Prand used as a sequence of pitches: ( SynthDef ( \help_sinegrain , { arg out=0, freq=440, sustain=0.05; var env; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(out, SinOsc .ar(freq, 0, ...