-
... g out to env = Env([0, 1, 0], [1, 4], [3, -4], 1); // create a controlenv and a loop of CtkNotes to play inside the CtkGroup freq = pnotes[\control].note(addAction: \head, target: group) .outbus_(bus1) // need to use the .bus method on CtkC ...
-
... the routine creates sound objects that free themselves when they become silent loop { var note = rrand(60, 63); var elev = Prand([-90, -60, 30, 0, 90]).asStream; // Kamikaze is a special case of synth generated by SATIE // it frees itself ...
-
... nd(0.5, 1.0, 1)], inf), // pew: 0.4, // pew: Phprand(0.4, 10.0), ]), 1, 2.0, // Loop length is the second number here. ) ) ).play(quant: 1); ) /* When Pseed wraps around a whole pattern like in the above example the values are being generat ...
-
... and.kr(minFreq, maxFreq, recTrig), 0.4); RecordBuf.ar(irSig, i_kernel, recTrig, loop: 0, trigger: recTrig); convTrig = TDelay.kr(recTrig, BufDur.ir(i_kernel)); // split updates across two triggers. // Note that [1, 0] creates a MultiChannel ...
-
... l run again immediately. And, if the number is always 0, it creates an infinite loop that can lock up SuperCollider. That shouldn't scare you off of scheduling -- this is less likely to happen with Routines and Tasks, which you will use mor ...
-
... f("pitchFollow1",{ var in, amp, freq, hasFreq, out; in = PlayBuf.ar(1,c.bufnum, loop:1); amp = Amplitude.kr(in, 0.05, 0.05); # freq, hasFreq = Tartini.kr(in); out = Mix.new(VarSaw.ar(freq * [0.5,1,2], 0, LFNoise1.kr(0.3,0.1,0.1), amp)); Out ...
-
... g == a[20000]).postln }); // play it x = { PlayBuf.ar(1, b, BufRateScale.kr(b), loop: 0) * 0.5 }.play; b.free; x.free; // interleave a multi-dimensional array ( l = Signal.sineFill(16384, Array.fill(200, { 0 }).add(1)); r = Array.fill(16384 ...
-
... (d.device, d.name); Tdef(\mc).quant = -1; Tdef(\mc, { var tick = 1/24; m.start; loop { m.midiClock; tick.wait; }; }).play; ShutDown.add { Tdef(\mc).stop }; ) // Use the clock // For an external source, set latency as low as possible s.laten ...
-
... ue_(0.5); k.value; ⧉ ✔ Classic knobs rotating demo for BCF: ( var x = 0; fork { loop { 0.1.wait; x = x + 0.1; 8.do { |i| var el = m.elementAt(\kn, 1, i); var val = (x + (i/7)).mod(1.0); el.value_( val ) } } } ) // Various tests to show how ...
-
... wrapped into a Pdiff). Sieve.union(Pseq([1, 10], inf), 5, 7, `30) Sieve.union({ loop { rrand(1,10).yield } }.r, 5, 7, `30) // compare with result from the pattern alone // a union with one argument just returns its resulting elements. // As ...