-
( s.waitForBoot({ SynthDef(\testIEnvGen, { //Make it max 128 points. //This must be set in the SynthDef as IEnvGen needs to be instantiated with a max of num of inputs! var env = \env.kr(Env.newClear(128).algaAsArray); Out.ar(\out.ir(0), Al ...
-
( Udef(\test, { var env = UEnvGen.ar( Env([0.3,0.4,0.2,0.3], [2.0,2.0,2.0], \lin), \freq); var out = SinOsc.ar( env ) * 0.2; UOut.ar(0, out ) }); Udef(\test2, { var env = ULine.ar(200,400, 10, \freq); var out = SinOsc.ar( env ) * 0.2; UOut. ...
-
( Udef(\test, { var env = UEnvGen.ar( Env([0.3,0.4,0.2,0.3], [2.0,2.0,2.0], \lin), \freq); var out = SinOsc.ar( env ) * 0.2; UOut.ar(0, out ) }); Udef(\test2, { var env = ULine.ar(200,400, 10, \freq); var out = SinOsc.ar( env ) * 0.2; UOut. ...
-
... wtopic.php?topic_id=125 ( SynthDef("ana_kick", { arg out=0, pan=0, amp=0.1; var env, env2, env3, pch, osc, noise, outS; env = EnvGen.kr(Env.perc(0, 0.20, 1, -4), doneAction:2); env2 = EnvGen.kr(Env.new([60,3,0],[0.08,0.16],[-18,-5])); env3 ...
-
... add{ SynthDef("periodmerge".debug(\pn),{arg bufnum,start,end,size,mult,pan; var env=EnvGen.ar(Env.new([1,1,0], [size/BufSampleRate.ir(bufnum),0],[0,0]).debug(\env), doneAction: 2); var sam=PlayBuf.ar(1,bufnum,((end-start)/SampleRate.ir)/(si ...
-
... , { arg out=0, in=1, lag=1, mul=1, gate=1, threshold=0.5; var trig,trig2,input; EnvGen.kr( Env.cutoff( 1 ), gate, doneAction: 2 ); input = In.kr( in, nc ); trig = input - threshold; trig2 = threshold - input; // reverse trigger SendTrig.kr( ...
-
... sed on mousepos at server! ( SynthDef(\xxy, {|out, sustain = 1, freq = 440| var env, son; env = Line.ar(1, 0, sustain, doneAction: 2); son = SinOsc.ar( freq * [1, 1.2, 1.5, 1.7] + (env % (1 - env *0.1) * 1000), SinOsc.ar(40) * MouseX.kr(0, ...
-
... nly ++ "proto-cmds.scd").loadPath; } } // totally customizable command: uses an environment to store parameters: // ~fire = function to execute // ~setDoneSignal = create the signal receiver to move on // OR: // ~dur = time to wait until ne ...
-
... nly ++ "proto-cmds.scd").loadPath; } } // totally customizable command: uses an environment to store parameters: // ~fire = function to execute // ~setDoneSignal = create the signal receiver to move on // OR: // ~dur = time to wait until ne ...
-
... ons (evaluation, new object generation, self-modification) // must be stored in environment variables // certain variables must have specific names to be found easily from outside: // ~next = func to generate next value Proto { classvar <>s ...