Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (889) Code (79) Doc (285) Help (132) Quark (392) Plugin (1) SCDoc ↗ Forum ↗ Google ↗
  1. RedSampler Doc

    ... ln; a.prepareForPlay(sf.path, sf.path, sf.numFrames.rand, len); sf.close; }; r= Routine.run{ 1.wait; inf.do{ a.play(a.loadedKeys.choose.postln, 4, 2.rrand(6), 4, loop:2); 2.rrand(5).wait; }; }; ) r.stop; a.free; ⧉ ✔ //--example that chops u ...

  2. KmeansToBPSet1 Doc

    ... (10),Impulse.kr(10),MouseX.kr(0.01,0.5,'exponential'), b.bufnum)),0.0))}.play //routine playing with mean initial positions ( c= {inf.do{ b.setn(40,Array.fill(10,{1.0.rand})); rrand(0.1,0.2).wait;}}.fork ) c.stop; //routine playing with dat ...

  3. RedSmooth2 Doc

    ... true; CmdPeriod.doOnce({win.close}); win.front; fifo= List.fill(100, flt.val); Routine({ inf.do{|i| fifo.pop; fifo.addFirst(flt.filter(slider.value)); plot.value= fifo; "trend %".format(flt.trend.round(0.0001)).postln; (1/50).wait; }; }).p ...

  4. DataBuffer Doc

    ... ("OpenBCI_WifiShieldOSC.local", 13999)); d= DataBuffer(c); c.start; d.start; r= Routine.run({inf.do{d.readData.postln; 0.1.wait}}); d.dataBuffer.size; //will vary from 0 up to ~100 depending on network d.accelBuffer.size; //will grow up to ...

  5. BusMeters Doc

    ... erver.default; m = BusMeters(s,Array.fill(4,{Bus.audio(s,2)})); m.gui; m.start; Routine({ 500.do { { EnvGen.kr(Env.perc) * Saw.ar(rrand(100,400),rrand(-80,0).dbamp) }.play(outbus:m.busses.choose); 0.1.wait; } }).play(AppClock) ⧉ ✔ 15 busses ...

  6. 22_Runtime_errors Doc

    ... on> var i = 3 < FunctionDef in closed FunctionDef > (no arguments or variables) Routine-prStart arg this = <instance of Routine> arg inval = 758.000000 ⧉ ✔ //////////////////////////////////////////////////////////////////////////////////// ...

  7. Pfsm Doc

    ... 2], 73, #[0, 2], Pseq([74, 75, 76, 77]), #[2, 3, 3], nil, nil ], inf).asStream; Routine({ loop({ Synth(\help_sinegrain, [\freq, a.next.midicps]); 0.1.wait; }) }).play; ) ( Pfsm([ #[5, 6, 7], // entry states // e1 (== state 0) Pbind(\dur, Ps ...

  8. CutFunc Doc

    ... eq),500,0.1)%modulo, 0.0));}).play; clock= ExternalClock(TempoClock(2.1)).play; Routine.run({ sf= BBCutBuffer(Platform.resourceDir +/+ "sounds/break2.aiff",4); s.sync; BBCut2([CutFunc({arg i, block, clock; "cut".postln; synth.set(\freq,55+( ...

  9. particle_system_with_sound Doc

    ... a, age, \d, delta); }; Pen.stroke; }; win.front; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Main.elapsedTime+(1/60); usr.refresh; (nextTime-Main.elapsedTime).max(0.001).wait; }); }).play(App ...

  10. SWPlotterMonitor Doc

    ... ple example use, plotting some fake data: ( // some fake data e = 0; f = 0; r = Routine{ loop { e = 0.0.rrand(1); f = 0.0.rrand(1).cos; 0.5.wait; } }.play; // look at the data m = SWPlotterMonitor.new( { //data to plot [ [e, f], // view the ...

prev 11 12 13 14 15 16 17 18 19 20 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow