Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (883) Code (145) Doc (91) Help (17) Quark (625) Plugin (5) SCDoc ↗ Forum ↗ Google ↗
  1. Squiggle squiggle by 56228375 (56228375) Code

    ... kr(In.kr(controlInBus, 6)); freqs = [800, 1071, 1153, 1723] * Lag.kr(xy[0].linlin(xy[2],xy[3],0.5,2), 0.1); /* MouseX.kr(0.5, 2, 1); */ ringtimes = [1, 1, 1, 1] * Lag.kr(xy[1].linlin(xy[4], xy[5], 0.1, 10), 0.1); /* MouseY.kr(0.1, 1 ...

  2. ColorPicker ( HSV to Color ), RAW Version by simon (Dindoléon) Code

    ... { | index | Pen.strokeColor_( hsv_to_color.value( [ index.linlin( 0, view.bounds.height, 0, 360 ), 1, 1 ]; ); ); Pen.moveTo( Point( 0, index ) ); ...

  3. Re: An FM Matrix Synth with 1to1 feedback -- nanokontrol NNdef version by miguel-negrao (miguel-negrao) Code

    ... MKtl('nnkn0').elements; var freqs = k[\kn][0][..2].collect{ |e| e.enIn.enKr.linlin(0,1,20,5000) }; var amps = k[\kn][0][3..5].collect{ |e| e.enIn.enKr }; var modIndex = k[\sl][0].collect{ |e| e.enIn.enKr.linlin(0,1,0.0,4.0) }.clump( ...

  4. alarms by redfrik (redFrik) Code

    ... ("alarm"++i).asSymbol).play(fadeTime: ~fadeTime).set(\amp, 7/~num).postln; i.linlin(0, ~num-1, ~fadeTime*2, ~fadeTime/2).wait; }; }).play; ) //--stop alarms ( ~task.stop; ~task= Task({ ~num.do{|i| Ndef(("alarm"++i).asSym ...

  5. Color Picker, pretty version by simon (Dindoléon) Code

    ... { | index | Pen.strokeColor_( hsv_to_color.value( [ index.linlin( 0, ( view.bounds.height - ( margin * 2 ) ), 0, 360 ), hsv[1], hsv[2] ]; ); ); ...

  6. Visual demonstration of aliasing/foldover by jamshark70 (jamshark70) Code

    ... .moveTo(pt); pt = Point(x * (width / sampPts), sin(x * freq / sampPts * 2pi).linlin(-1, 1, height, 0)); Pen.lineTo(pt).stroke .fillRect(Rect.aboutPoint(pt, 3, 3)); }; Pen.color_(sinColor) .moveTo(Point(0, height/2)); ...

  7. Doppler Pitch Shift by 0-f6 (kennethflak) Code

    ... 1 ) * -1) / delaywindow; window = numDelays.collect{|i| phase = i.linlin(0, numDelays+1, 0, 2pi); Osc.kr(buf, phasorfreq, phase) ; }; env = EnvGen.kr(Env.asr(\attack.kr(0.01), 1, \release.kr(0.01)), gate: \g ...

  8. Vocal Clouds (work in progress) by emergent (emergent) Code

    ... , val.linexp(1,127,0.02,0.3), //velocity detection \gate, 1, \bend, ~bend.linlin(0,16383,-2,2), \basedur, ~mod.linlin(0,127,0.07,2), \detune, 0.025, \dens, 12, \out, ~revBus ], ~src ); }); MIDIdef.noteOff(\off, { ...

  9. Re: Recursion-toy-like vines with Pen by vividsnow (vividsnow) Code

    ... Change freq //that.sy.set(\freq, sqrt(that.ox.squared + that.ox.squared).linlin(0,sqrt(350.squared * 2),50,350)); that.sy.set(\freq, that.ox.linlin(0,350,10,550)); that.sy.set(\mod_freq, that.oy.linlin(0,350,10,550)); ...

  10. Scribble Squiggle by 56228375 (56228375) Code

    ... g, { | out=0, freq=440, xval, yval | var sig = 0.05*(VarSaw.ar(freq*yval.linlin(0,350,2,1), width:xval.linlin(0,350,0.2,0.9))); var env = EnvGen.ar(Env.perc(0.1),doneAction:2); sig = env*sig; Out.ar(out, sig!2); }).add; ...

prev 1 2 3 4 5 6 7 8 9 10 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow