Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... g i; // the octave Array.fill(resolution, {arg j; // the notes sndNameList.size.rand; // put a random sound into array }); }); }); }; ldSndsGBufferList.value(selbPool.items[0].asSymbol); soundFuncPop = GUI.popUpMenu.new(win, Rect(10, 54, 10 ...

  2. SensorData.help Quark

    ... ving average factor // values are added with: a.addValue( 0.3 ); // create some randomlike data for testing: b = 1.0.rand; 50.do{ b = b + (0.2.rand2); a.addValue( b ); }; a.data.plot; // properties of the sensordata: a.longStdDev; // standa ...

  3. 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 ...

  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. 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)); }. ...

  7. 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 ...

  8. PlayerPool Quark

    ... .at(selected).asString } maxIndex { ^list.size } choose { this.select(list.size.rand) } children { ^list } /* do not pre-load the children, just the initially selected one (the source) and the enveloped players prepareChildrenToBundle { arg ...

  9. RandIDAllocator Quark

    RandIDAllocator { classvar <>dict; *value { |server| var count; server = server ? Server.default; dict = dict ?? { IdentityDictionary() }; count = dict[ server ] ? -1; count = (count + 1).wrap(0, server.options.numRGens - 1); dict[ server ] ...

  10. mouse_and_drawing Quark

    ... var accumPos = pos.sampleOn(clicks).inject([], { |state,x| state.addI(T(x,Color.rand)) }); accumPos.collect{ |positions| var drawings = positions.collect{ |tup| PenDrawedShapes([PenWedge(tup.at1,10,0,2*pi)], \fill, tup.at2, Color.red) }; va ...

prev 41 42 43 44 45 46 47 48 49 50 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow