-
... nt syntax in these two examples { if( LFNoise1 .kr(1.0, 0.5, 0.5) , SinOsc .ar, Saw .ar ) * 0.1 }.play; { Trig1 .ar( Dust .ar(3), 0.2).lag(0.1).if( FSinOsc .ar(440), FSinOsc .ar(880)) * 0.1 }.play; @ y Dynamic geometry support. Returns Poin ...
-
... nels[0].voice_(20.rand)}} // #sc #supercollider // now with tag f={|i,o,d|play{Saw.ar(XLine.kr(i,o,d,1,0,2))!2*EnvGen.kr(Env.sine(d))}};fork{loop{t=rrand(1e3,9e3);f.(t,t/4,rrand(0.1,1));9.rand.wait}}//#sc play{a=[1,1.01,2,2.02,3.5,4.01,5. ...
-
... .005, amp = 0.1, gate = 1| var env, sig = Decay .ar( Impulse .ar(0), decayTime, Saw .ar(freq)); env = EnvGen .ar( Env .asr(attackTime, amp, decayTime, \lin ), gate, doneAction: 2); Out .ar(out, sig ! 2 * env) }).add; // spat fx // This effe ...
-
... just a way to give names to values coming out of the types of patterns we just saw. When you ask a Pbind stream for its next value, the result is an object called an Event . Like a Dictionary (which is a superclass of Event), an event is a ...
-
... = 0.005, amp = 0.1, gate = 1| var env, sig = Decay.ar(Impulse.ar(0), decayTime, Saw.ar(freq)); env = EnvGen.ar(Env.asr(attackTime, amp, decayTime, \lin), gate, doneAction: 2); Out.ar(out, sig ! 2 * env) }).add; // spat fx // This effect int ...
-
... ange while running. ( Ndef(\thatSound, {SinOsc.ar*0.2}); Ndef(\thatOtherSound, {Saw.ar*0.1}); That.amp(\thatTest, Ndef(\thatSound), {|r| r.postln}, {Impulse.kr(1.0)}); ) // now change the input That(\thatTest).input = Ndef(\thatOtherSound); ...
-
... this will yield exactly 3 values 4.do { p.next.postln }; // 4th value is nil We saw that list patterns can contain other patterns, and that the inner patterns are treated like "subroutines." List patterns do this by calling embedInStream on ...
-
... ore than two channels size has to be passed. ( { DXFan.ar( Dseq([0, 2], inf), `(Saw.ar(50 * [1, 5], 0.03)), size: 4, fadeTime: 0.1 ) }.plot(0.2) ) // crossfading a mono source between several outs ( { DXFan.ar( Dseq([0, 3, 1, 2], inf), BPF. ...
-
... will yield exactly 3 values 4.do { p.next.postln }; // 4th value is nil ⧉ ✔ We saw that list patterns can contain other patterns, and that the inner patterns are treated like "subroutines." List patterns do this by calling embedInStream on ...
-
... than two channels size has to be passed. ( { DXFan .ar( Dseq ([0, 2], inf ), `( Saw .ar(50 * [1, 5], 0.03)), size: 4, fadeTime: 0.1 ) }.plot(0.2) ) // crossfading a mono source between several outs ( { DXFan .ar( Dseq ([0, 3, 1, 2], inf ), ...