Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (928) Code (86) Doc (150) Help (40) Quark (649) Plugin (3) SCDoc ↗ Forum ↗ Google ↗
  1. Specs Quark

    ... t ); } constrain { |value| if( value.isNumber.not ) { value = default }; ^value.clip( minval, maxval ); } map { |value| ^value } unmap { |value| ^value } asControlSpec { ^ControlSpec( minval, maxval, \lin, 0, default ) } storeArgs { ^[minva ...

  2. FM-drift_gamepad Quark

    ... mAmp, src; freq = Integrator.kr(\freqDrift.kr(0) * 0.001).linlin(-1, 1, 30, 68, clip: \none).midicps; freq = [0.719724, 0, 0.235] + freq; mFreq = freq * ( Integrator.kr(\mIdxDrift.kr(0) * 0.001).linlin(-1, 1, 0, 20, clip: \none)); mAmp = In ...

  3. PrePostView Quark

    ... fill; if (preAmp > 1.0) { Pen.color_(preSatCol); satPreLeft = (1 - (preAmp - 1).clip(0, 1)) * maxwid; nextRect = Rect( satPreLeft, 2, maxwid, height); if (isVertical) { nextRect = swapXYFunc.(bounds, nextRect) }; Pen.addRect(nextRect); Pen. ...

  4. lag Quark

    ... l, { |value = 0.5, time = 0.1, order = 1| 4.do({ |i| var amt; amt = (order - i).clip(0,1) * (order ** -0.5 ); value = value.lag( time * amt ); }); UMapOut.kr(value); }, addToAll: false, extraPrefix: "lag_" ) .setSpec( \time, [0,10, 1.calcCu ...

  5. lag Quark

    ... l, { |value = 0.5, time = 0.1, order = 1| 4.do({ |i| var amt; amt = (order - i).clip(0,1) * (order ** -0.5 ); value = value.lag( time * amt ); }); UMapOut.kr(value); }, addToAll: false, extraPrefix: "lag_" ) .setSpec( \time, [0,10, 1.calcCu ...

  6. Bouncy_Balls Quark

    ... locity.set(p.velocity.x, -0.9*p.velocity.y, 0); }); p.position.set(p.position.x.clip(0, width), p.position.y.clip(0, height), 0); }; win.front; CmdPeriod.doOnce({win.close}); Routine({ var nextTime; while({win.isClosed.not}, { nextTime= Mai ...

  7. BarMap Quark

    ... s.lastForWhich({ |item| item[2] <= bar }) ? events[0]; } barAtBeat { |beat = 0, clip = false| var raw, mul; var num, denom, bar, sigStartBeat; if( clip ) { beat = beat.max( 0 ) }; #num, denom, bar, sigStartBeat = this.eventAtBeat(beat); mul ...

  8. BarMap Quark

    ... s.lastForWhich({ |item| item[2] <= bar }) ? events[0]; } barAtBeat { |beat = 0, clip = false| var raw, mul; var num, denom, bar, sigStartBeat; if( clip ) { beat = beat.max( 0 ) }; #num, denom, bar, sigStartBeat = this.eventAtBeat(beat); mul ...

  9. decimator Quark

    ... it if you want. Lastly, the preamp control pushes the input signal above a hard clipping threshold to simulate a signal that's too loud going into an adc. If you don't want this effect, set the preamp control to 1. By Josh Mitchell June 202 ...

  10. crossoverDistortion Quark

    ... plit the signal into two sections to prep it for the distortion section snda = (Clip.ar(osc, 0, 1) * 2) - 1; sndb = (Clip.ar((-1 * osc), 0, 1) * 2) - 1; // Set the amplitude of the signal going into the transfer function snda = snda * pream ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow