Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (692) Code (80) Doc (247) Help (48) Quark (306) Plugin (11) SCDoc ↗ Forum ↗ Google ↗
  1. Re: Recursion-toy-like vines with Pen by vividsnow (vividsnow) Code

    ... = List[]; q.numBranches.do{ arg i; theta = (i / q.numBranches) * 2pi; radius = q.maxRadius; q.branches.add(q.makeBranch(x, y, theta - (pi/2), radius)); } }, fUpdate: { arg env; var index; var nu ...

  2. Literals Help

    ... 9 98.6 1.0 -0.5 Exponential notation is also supported. 1.2e4 1e-4 The constant pi can be appended to a number to create floating point constant: 2pi 0.5pi -0.25pi Numbers can also be written in radices other than base 10 up to base 36. The ...

  3. scm_synthdef_autoload Quark

    ... Action:2); var env = EnvGen.kr(Env.linen(atk, time, rel), doneAction: 2); sig = PitchShift.ar(sig, pitchRatio: stretch); sig = sig * env; sig = tanh(sig * (1 + boost)); OffsetOut.ar(out, Pan2.ar(sig, pan, amp)); }).store(); ); ( SynthDef(\S ...

  4. HDR Quark

    ... te] * level; Out.ar(out, BFDecode1.ar(w, x, y, z, [0.25, -0.25, -0.75, -1.25] * pi) * env); }, {arg playgate = 1, out, wmute = 1, xmute = 1, ymute = 1, zmute = 1, level = 1; var env; env = EnvGen.kr( Env([0, 1, 0], [0.1, 0.1], \sin, 1), pla ...

  5. BoidsND Quark

    ... gets = List.new(0); obstacles = List.new(0); wrap = false; // default to no wrapping } // optimized version of the rules prDoRules { var posSum, velSum, sizeOfNeighbors; posSum = RealVector.zero(dim); // empty vectors velSum = RealVector.ze ...

  6. WebRTCGUI Doc

    ... sed via a Browser. For specifics on the setup please check https://github.com/capital-G/webRTCgui . A quick example: w = WebRTCGUI(); ( w.newSlider( // internal name for supercollider but also label name: \myControl, // specs of the GUI con ...

  7. 00_loadMe Quark

    ... ns, e.g. specific platforms: NTMI.hasGui = false; // headless mode, e.g. for raspi or bela NTMI.isPi = true // simulate default raspi OS account NTMI.isPatch = false; // detect raspi patchbox OS NTMI.myname = \KoolKat; // use as flag to mak ...

  8. WavetablePrep Quark

    ... } fromImage { |image, numPos = 128, valueFunc({ |color| color.luminance })| var pix; var cos = Signal.fftCosTable(wtSize); if(image.width != wtSize or: { image.height != numPos }) { image.scalesWhenResized_(true) .setSize(wtSize, numPos) }; ...

  9. NMLUnitTests Quark

    ... ce sync failed", 2); "Testing objectSpacePut:".postln; testObject2 = Polar(0.5, pi); objectSpace2[\polar] = testObject2; this.asynchAssert({objectSpace1[\polar].notNil}, {objectSpace1[\polar] == objectSpace2[\polar] == testObject2}, "datasp ...

  10. GravityGrid Doc

    ... ,0.01,LFNoise0.kr(1,4),LFNoise0.kr(1,4)),1000,0.1),0.0)}.play //48k spectrum looping {Pan2.ar(Resonz.ar(GravityGrid.ar(Impulse.kr(5),0.01,LFNoise0.kr(1,4),LFNoise0.kr(1,4)),1000,0.1),0.0)}.play b = Buffer.alloc(s, 9, 1); //weights buffer b. ...

prev 51 52 53 54 55 56 57 58 59 60 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow