Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... do { |x| x.join.postcs };""; ~indices.do(_.postln);""; ) ( var colors = { Color.rand(0.3, 1.0) } ! (~lines.size + 1); var views; var selection; w = Window().layout_( VLayout(*{ |j| var line = { StaticText.new } ! ~maxLineSize; views = views ...

  2. Pdef Doc

    ... create a new pattern each time it is called Pdef(\x, { Pbind(\note, Pseries(10.rand, 5.rand, 8.rand + 1), \dur, 1 / (8.rand + 1)) }); Pn(Pdef(\x)).play; // the function is called in the incoming event as current environment, so parameters ...

  3. FreqShift Doc

    ... ar table, pitch; table = [0, 2, 4, 5, 7, 9, 11, 12]; inf.do { pitch = (48+(12*2.rand) + table.choose).midicps; Synth.grain(\frqShift1, [\freq, pitch]); 3.wait; }; }).play; ) // shift pulse wave in opposite directions ( SynthDef(\frqShift1, ...

  4. 2_flatcat2_gui Quark

    ... s etc var butzone = CompositeView(win, Rect(160, 0, 750, 25)).background_(Color.rand); // a userview to draw the numeric values on var uv = UserView(win, vbounds.top_(vbounds.height).height_(30)) .background_(Color.grey); try { win.alpha_(N ...

  5. Participation.test Quark

    ... ( \ , [[ \ , \ , \ ], data].flop.flat.postln)\ \)\ );\ \ e.do( _ .data = \ 1000.rand \.dup(3).postln );\ e.do( _ .start);\ \ \ \ f = e[0];\ \ f.nextIndex \Ê! 10;\ \ f.newChain;\ f.newChain(1, 3)\ f.newChain(0.1, 10, 0.0)\ f.newChain(0.1, 10 ...

  6. Instr-making-Synths Doc

    ... EnvGen.kr(Env.triangle(dur),doneAction:2) }); Instr(\sin).spawnEvent( (dur: 4.0.rand) ) ) ⧉ ✔ see also Instr Patterns helpfile source: /tmp/scquark_hs/crucial-library/HelpSource/Guides/Instr-making-Synths.schelp link::Guides/Instr-making-Sy ...

  7. 091-livecoding-worlds Doc

    ... 0.1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; var mass= 1; RedBoid(~world, loc, vel, 0, mass, mass*5) //world,loc,vel,acc,mass,size .maxForce_(0.6.rrand(1.6)); }. ...

  8. 091-livecoding-worlds Quark

    ... 0.1); //dim,grav,maxvel,damp //--objects { var loc= RedVector2D[width, height].rand; var vel= RedVector2D[0.5, 0.5].rand2; var mass= 1; RedBoid(~world, loc, vel, 0, mass, mass*5) //world,loc,vel,acc,mass,size .maxForce_(0.6.rrand(1.6)); }. ...

  9. Epic Sax Guy (cheap version) by rukano (rukano) Code

    ... p=0.1, gate=1| var num = 16; var harms = Array.series(num, 1, 1) * Array.exprand(num, 0.995, 1.001); var snd = SinOsc.ar(freq * SinOsc.kr(Rand(2.0,5.0),0,Rand(0.001, 0.01),1) * harms, mul:Array.geom(num, 1, 0.63)); snd = Splay.ar(sn ...

  10. FuzzyDictionary Quark

    /* dictionary that keeps objects with the same key in a list and returns randomly one of them */ FuzzyDictionary : IdentityDictionary { put { arg key, item; super.put(key, super.at(key).add(item)) } at { arg key; var list = super.at(key); l ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow