Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ns.monitorInChannels.do{ arg chan; inLevelArray[chan].value = msg[curMsg].ampdb.linlin(-75, 0, 0, 1); inLevelArray[chan].peakLevel = msg[curMsg+1].ampdb.linlin(-75, 0, 0, 1); curMsg = curMsg + 2; } }.defer; }, ( '/in_levels' ++ options.moni ...

  2. heatMap Quark

    ... 05, 0.01 .. 1).collect{|hot| Color(hot, 0, 0)}; maptotextcolour = {|val| if(val.linlin(min, max, -1, 1) < -0.85){Color.grey(0.15)}{Color.black} }; }, \brw, { // Black as low, red as medium, white as high cols = (1, 0.99 .. 0).collect{|cold| ...

  3. cheappiano Quark

    ... i. delay = (1 / (freq * [2.pow(-0.04/12), 1, 2.pow(0.03/12)])); tonefreq = tone.linlin(0, 1, 1000, 5000); hammer = Decay2.ar( in: Impulse.ar(0.001), attackTime: 0.008, decayTime: 0.04, mul: LFNoise2.ar(freq: amp.linlin(0, 1, tonefreq, 2 * t ...

  4. p_step Quark

    ... ion = 1; if( loop.next == \backwards ) { current = 1; direction = -1 }; current.linlin( 0, 1, lo.next, hi.next ).yield; inf.do { |i| current = (current + ((direction/steps.next).clip2( 1.0e12 ))); switch( loop.next, \loop, { current = curre ...

  5. p_step Quark

    ... ion = 1; if( loop.next == \backwards ) { current = 1; direction = -1 }; current.linlin( 0, 1, lo.next, hi.next ).yield; inf.do { |i| current = (current + ((direction/steps.next).clip2( 1.0e12 ))); switch( loop.next, \loop, { current = curre ...

  6. klank Quark

    ... ); freqs = (exponential * freqs.linexp(0,1,*range)) + ((1-exponential) * freqs.linlin(0,1,*range)); amp = \amp.asSpec.map( Rand(0.dup(n),1).linlin(0,1,*amp) ); ringTime = Rand(0.dup(n),1).linexp(0,1,*ringTime); in = UIn.ar( 0 ); sig = DynK ...

  7. klank Quark

    ... ); freqs = (exponential * freqs.linexp(0,1,*range)) + ((1-exponential) * freqs.linlin(0,1,*range)); amp = \amp.asSpec.map( Rand(0.dup(n),1).linlin(0,1,*amp) ); ringTime = Rand(0.dup(n),1).linexp(0,1,*ringTime); in = UIn.ar( 0 ); sig = DynK ...

  8. DimpleGUI Quark

    ... t)); Slider2D(positionLayout, Rect(0,0,sliderHeight,sliderHeight)) .x_(initialX.linlin(min,max,0,1)) .y_(initialY.linlin(min,max,0,1)) .action_{ |slider| xNumberBox.valueAction_(slider.x.linlin(0,1,min,max)); yNumberBox.valueAction_(slider. ...

  9. EnvView Quark

    ... .collect({ |level, i| Point( (env.times[..i-1].sum / dur) * bounds.width, level.linlin( min, max, bounds.height, 0 ) ) }); } setPoints { |pts, bounds| var dur, levels, times; dur = env.times.sum; pts = pts.sort({ |a,b| a.x <= b.x }); #times ...

  10. typed-recording-buffer Quark

    ... =0 , mul=1 ; PlayBuf.ar(~buffer0.numChannels, ~buffer0, rate, trigger, startPos.linlin(0,1,0, ~buffer0.numFrames), 1)*mul;}); == radpostcont == (none)

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow