Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (1643) Code (228) Doc (514) Help (194) Quark (697) Plugin (10) SCDoc ↗ Forum ↗ Google ↗
  1. 04-Functions-and-Other-Functionality Doc

    ... itself f.value; // f hasn't changed, so the post window says 3 again f = { 3.0.rand }; // Assign the variable a Function as a value f.value; // 3.0.rand returns a random value from 0.0 to 3.0 (exclusive). f.value; // Another random value f ...

  2. FileWriter Quark

    ... stfile2.txt" , "w" , true ); Task ({ 20.do{ f.writeLine( Array .fill( 10, { 1.0.rand })); 1.0.wait; }; "done" .postln; }).play; f.close; This helpfile was created with the class HelpFile2

  3. timeDomainEfx Quark

    ... anDiff=0.1; (qnty.asInteger).do({ var x; audio = AllpassL.ar(audio, maxDelay, [rrand(0.01,maxDelay),rrand(0.01,maxDelay)], decay) }); audio }, \qAllpassL,{ arg audio,decay=1,maxDelay=0.3,qnty=4; (qnty.asInteger).do({ var x; audio = AllpassL ...

  4. Diamond Quark

    ... This defaults to 3 for a triad @*/ var pivot, new_start; pivot = start + (niad.rand); new_start = pivot - (niad.rand); ^[new_start, pivot]; } d2Pivot { arg x, y, orientation, niad=3; /*@ desc: Find a pivot based on a start point, describe ...

  5. Maybe Doc

    ... receiver together with all arguments a = Array.fill(8, { |i| var k = (1/(i+1)).rand; Maybe({ |x| x * k }) }); b = o(Maybe({ |x| x }), *a); b.value(1); method::do Calls the source, like in link::Classes/Function::. Examples:: code:: // the ...

  6. SharedIn Doc

    ... n2", y = s.nextNodeID, 0, 1); Routine({ 30.do({ s.setSharedControl(0, 300 * (10.rand + 1)); 0.2.wait; }); s.sendMsg(\n_free, x); s.sendMsg(\n_free, y); }).play; ) s.quit; ⧉ ✔ helpfile source: /usr/local/share/SuperCollider/HelpSource/Classe ...

  7. RedSmooth Doc

    ... ent value. Inherited instance methods Examples a= RedSmooth(0.05); a.filter(1.0.rand); //run repeatedly - low pass filtered random data //plot example a= RedSmooth(0.1); ~squarewave= (0..1000).collect{|x| (x%200>100).binaryValue}; ~smoothed ...

  8. Public Quark

    ... the environment a[ \x ] = 5; b[ \x ]; // 5 is in b now as well. b[ \x ] = { 1.0.rand }; a[ \x ].postcs; a[ \x ] = Array .rand(20, 0, 10); b[ \x ]; b[ \x ] = "hi adam"; a[ \x ] = "hi eve"; // clear all. a.clear; b.clear; // using Public with ...

  9. CutRev1 Quark

    ... layN.ar(in, 0.048,0.048); //for delaytime if want modulation- //LFNoise1.kr(0.1.rand, 0.04, 0.05) y=Mix.arFill(c,{CombL.ar(z,0.1,rrand(0.01, 0.1),5)}); // chain of 4 allpass delays on each of two channels (8 total) : a.do({ y = AllpassN.ar( ...

  10. HowToGetToAllServers Quark

    ... terns, by name: Pbind( \server, r.s, \where, \annie, \instrument, \zzz, \note, Prand([0, 2, 3, 5], 8), \dur, 0.25 ).play; ) // if the Republic's server, r.s, is the default, // one can leave out the server argument: Server.default = s = r.s ...

prev 101 102 103 104 105 106 107 108 109 110 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow