Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1643) Code (228) Doc (514) Help (194) Quark (697) Plugin (10) SCDoc ↗ Forum ↗ Google ↗
  1. Streams-Patterns-Events2 Doc

    ... plied as is supplied to Routine. ( var a, b, c; a = Prout.new({ 3.do({ arg i; 3.rand.yield; }) }); // make two streams from the pattern b = a.asStream; c = a.asStream; 4.do({ b.next.postln; }); // print 4 values from first stream 4.do({ c.n ...

  2. Reed synthesis by snappizz (snappizz) Code

    ... 3| var snd, blow; // pulse with modulating width snd = Pulse.ar((Rand(-0.03, 0.05) + freq.cpsmidi).midicps, 0.48 + LFNoise1.kr(0.06, 0.1), 0.2); // add a little "grit" to the reed snd = Disintegrator.ar(snd, 0.5, 0. ...

  3. CoinGate Doc

    ... .5| var trig; trig = CoinGate.kr(prob, Impulse.kr(10)); Out.ar(out, SinOsc.ar( TRand.kr(300.0, 400.0, trig), 0, 0.2 ) ) }).play; ) a.set(\prob, 1.0); a.set(\prob, 0.0); a.set(\prob, 0.1); ( a = SynthDef("help-TCoin", { |out = 0, prob = 0.5| ...

  4. TestFlowView Quark

    ... w(w,Rect(100,100,200,200)); // nil bounds f = FlowView(c); c.background = Color.rand; f.background = Color.rand; cb = c.absoluteBounds; fb = f.absoluteBounds; this.assertEquals( cb.origin, fb.origin, "with no supplied bounds, origin should ...

  5. softVol_ Doc

    ... Spec is used. Examples Ndef(\test, { |freq=200| Splay.ar(SinOsc.ar(freq * Array.rand(12, 0.95, 1.05))) }); Ndef(\test).play(vol: 0.1); // example of softSet, softSet which knows lastVal, // softVol_ and softVol_ which knows lastVol: ( w = W ...

  6. touchosc-simple1.desc Quark

    ... stAddr(n.hostname, n.port); Tdef(\toscTest, { inf.do { n.sendMsg('/accxyz', 1.0.rand2, 1.0.rand2, 1.0.rand2); if (0.1.coin) { n.sendMsg('/xfader'.postln, 1.0.rand); }; if (0.1.coin) { n.sendMsg("/1/fader4".postln, 1.0.rand); }; 0.1.wait; }; ...

  7. matchItem Doc

    ... ing). a = [nil, 1, 2, 3, "wort", "1", [pi, 2pi]]; a.any { |x| x.matchItem(10000.rand) }; // true always ⧉ ✔ Function-matchItem Test item by passing it to a function which should return a Boolean . a = [10, 20, 30, { |item| item.isPrime }]; ...

  8. TIRand Doc

    TIRand: Filter: Description Class methods ar kr Inherited class methods Instance methods Inherited instance methods Examples Classes | UGens > Random'>Random | UGens > Triggers'>Triggers TIRand : UGen : AbstractFunction : Object Triggered i ...

  9. gendy1 Quark

    ... , ascale = 1, dscale = 1| var n = q.numChans ? 2; var mods, snds; // var dist = Rand(0, 7); // choose new random distrib when running // var addd = exprand(0.001, 1); // choose new random distrib when running dist = dist.lag(1); addd = addd ...

  10. PLbindefPar Doc

    ... = 0, freq = 400, att = 0.005, rel = 0.1, amp = 0.1| var sig = { SinOsc.ar(freq, Rand(0, 2pi)) } ! 2; sig = sig * EnvGen.ar(Env.perc(att, rel, amp), doneAction: 2); OffsetOut.ar(out, sig); }).add; SynthDef(\saw_grain, { |out = 0, freq = 400, ...

prev 91 92 93 94 95 96 97 98 99 100 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow