-
... Def with a gate ( SynthDef(\simple, { var env = EnvGen.kr(Env.asr, \gate.kr(1), doneAction: Done.freeSelf), sin = SinOsc.ar(\freq.kr(111)), saw = Saw.ar(\sawfreq.kr(110)); Out.ar(\out.kr(0), SelectX.ar(\which.kr, [sin, saw]) * env * \amp.kr ...
-
... win.background = Color.grey; win.alpha = 0.95; win.onClose = {s.freeAll; "Done!".postln}; CmdPeriod.doOnce({win.close}); win.view.decorator = FlowLayout(win.view.bounds, margin: 10@10, gap: 20@10 ); buttonArray = Array.fill( ...
-
... rCollider folder and make an "nb_test" directory // ... this doesn't have to be done through the terminal .... it's ok to make the directory // from the Finder (File->NEW FOLDER in the SuperCollider folder) cd /Applications/SuperCollider mk ...
-
... .0, 0.0], [fade, (BufDur.ir(bufnum)*(end - start)/rate) - (2.0*fade), fade]).ar(Done.freeSelf); env = env*amp; sig = Pan2.ar(sig, pan); Out.ar(out, sig*env); }).add; //// Playing a mono buffer with a loop in the middle SynthD ...
-
... hat beat values will increment consistently. Setting the quantum is meant to be done before the performance begins, not during. SuperCollider can change its beatsPerBar independently of the Link quantum. But, in that case, barlines across p ...
-
... k { pitches.size.do{ |i| { var freq = pitches[i].midicps; var env = Env.perc.ar(Done.freeSelf); SinOsc.ar(freq) * 0.1 * env }.play; 0.2.wait } } ) ⧉ ✔ . put ( index , item ) From superclass: ArrayedCollection Put item at index starting from ...
-
... action, verbosity; *new { arg server, path, channel, normalize=true, actionWhenDone, verbose=true; ^super.new.init(server, path, channel, normalize, actionWhenDone, verbose, nil); } // Create an instance from an existing array of loaded Bu ...
-
... rules . In a classic lindenmayer system (L-system) , each level of rewriting is done at once, rewriting the whole string. This can be also done in a depth-first traversal through all levels, taking in a stream and resulting in a stream. The ...
-
... (0.001), interpol.round(0.001)) }; dt.value.wait; }; fading = false; "fadeTempo done. tempo was: % new tempo is: %\n".postf( start.round(0.001), interpol.round(0.001)); }; clock = clock ? SystemClock; fadeTask.play(clock); } warpTempo { arg ...
-
... = 1, amp = 1, pan| var env, u = 1; env = EnvGen.ar(Env.perc(0.01, sustain), 1, doneAction: Done.freeSelf); 5.do { var d; d = exprand(0.01, 1); u = SinOsc.ar(d * 300, u, rrand(0.1, 1.2) * d, 1) }; Out.ar(out, Pan2.ar(SinOsc.ar(u + 1 * freq, ...