Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (764) Code (64) Doc (175) Help (16) Quark (509) SCDoc ↗ Forum ↗ Google ↗
  1. Confetti2 by henk-lasschuit (Henk Lasschuit) Code

    ... == ~vhighest) && (h == ~hhighest), { //highest value will be colored red Pen.color=Color.red; Pen.addRect(Rect(h*z, v*z, z, z)); Pen.fill; }); if (( v == ~vlowest) && (h == ~hlowest), { //lowest value will be c ...

  2. Draw your waveform feat. silly pattern player by rukano (rukano) Code

    ... e changes u.background_(Color.black); u.animate_(true); u.drawFunc = { |u| Pen.strokeColor = Color.white; Pen.moveTo( Point(0, a[0]) ); a[1..].do{ |value, index| Pen.lineTo( Point(index+1, value) ) }; Pen.stroke; }; // call o ...

  3. Scribble Squiggle by 56228375 (56228375) Code

    ... ue); q.drawFunc_({ ~allPoints.do({ |pos, index| if ((index > 0), { Pen.fillColor = "000000"; Pen.line( Point(~allPoints[index-1][0], ~allPoints[index-1][1]), Point(pos[0], pos[1])); Pen.stroke; }); }); }); ) / ...

  4. Simple animated 2D user interface by rukano (rukano) Code

    ... t status of a bus, and also setting a bus from the GUI. The circle turns red depending on the oscillator value, and the oscillator frequency and amplitude are controlled by the x, y position of the circle in the window. // needs shared mem ...

  5. game of life by raffael-seyfried (Raver_Ale) Code

    ... resh = true; uview.drawFunc = { |uview| xSize.do { |x| ySize.do { |y| Pen.fillColor = if(~arr[x][y]>0, {Color.black},{Color.white}); Pen.fillRect(Rect(x * scale,y * scale, scale, scale)); Pen.fill; } } }; // TODO: ...

  6. UPIC waveform editor by snappizz (snappizz) Code

    ... lastVal = nil; }) .drawFunc_({ |me| Pen.moveTo(0@(me.bounds.height * (wave[0] + 1) / 2)); for(1, size - 1, { |i, a| Pen.lineTo((me.bounds.width * i / size)@(me.bounds ...

  7. Feigenbaum by henklass (henklass) Code

    ... nds); u.background=Color.white; u.clearOnRefresh_(false); u.drawFunc={ Pen.fillColor = Color.black; Pen.addRect(Rect(p1, p2, 1, 1)); Pen.fill; }; r=Routine({ forBy(0, 4, 4/windowWidth, {arg l; //l (for lambda, the fertil ...

  8. The Beasties by henklass (henklass) Code

    ... same amount of energy. If one of the parents hasn't enough energy, the other compensates, if possible. In that way, death of a child is prevented as much as possible. ====================================================================== ...

  9. Confetti 3 by henklass (henklass) Code

    ... axfreq)-log(minfreq))*(h+(maxWidth*v))/(maxWidth*maxHeight) Furthermore freq depends on value, which is either 0 or 1. freq=freq+(freq*value) or freq=(1+value)*freq Combining those 2: freq=(exp(log(maxfreq)-((log(maxfreq)-log(minfreq)) ...

  10. Filter Explorer @ 1000 Hz of the Cutoff Frequency (Centre Frequency) by pyoungryangko (prko) Code

    ... .string_(outputs) }; view.drawFunc = { snds.do { |which, i| Pen.strokeColor = Color.black; Pen.moveTo(0@0); Pen.lineTo(0@h); Pen.translate(oW, 0); Pen.stroke; fltTxts[i].stringColor_( if(flt ...

prev 1 2 3 4 5 6 7 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow