Submit Browse Random
Anonymous Login RSS

SuperCollider Code

All (72) Code (2) Doc (12) Help (4) Quark (54) SCDoc ↗ Forum ↗ Google ↗
  1. SWBusNode Quark

    ... chmidtGateNode As above, but multiplies the output by the current input signal. InRangeNode Outputs 1 if the input is within the given range (between the parameters low and hi ), otherwise 0. Based on the UGen InRange . InRangeGateNode Outp ...

  2. FractureSynth Quark

    ... cnotes.size-1] - fracnotes[0]) * 2 - 1}, {basepan = 0} ) }; playpan = Select.kr(InRange.kr(pan, -1, 1), [basepan, pan]); if (normalize > 0) {preamp = ((1/peakAmp - 1)*normalize + (gain.dbamp ?? 1))} {preamp = (gain.dbamp ?? 1)}; monosig = B ...

  3. EuroCollider Quark

    ... (default) // and from below while({(baseFreq.cpsmidi - (curFreq ? 10).cpsmidi).inRange(0.0, minMatch).not}, { // todo make this properly "%: Adjust tuning: % Hz".format(this, (curFreq?0) - baseFreq).postln; 0.1.wait; }); "%: Absolute pitch ...

  4. SensorSonify Quark

    ... (lagt,lagdt) * AmpCompA.kr( freq ) ); }).add( \SensorSonification ); SynthDef( \inrangeSonify, { |inbus=0, outbus=0, amp=0.5, freq=200, dur=0.3, lo=0.7,hi=1| var trig,time; trig = InRange.kr( In.kr(inbus, 1 ), lo, hi ); Out.ar( outbus, EnvG ...

  5. ZPlane Quark

    ... ds = Rect(50, 320, 300, 300); var zplane, drawzplane, dragcorner, point, index, inRange = false; drawzplane = { arg me; var dimH = me.bounds.height, dimW = me.bounds.width, it = 6; Pen.use { //Draw the grid GUI.pen.width = 0.5; it.do({ arg ...

  6. shared_in Quark

    ... ess = 0| var sig; sig = (USharedValueIn.kr(id) * 2) - 1; sig = Select.kr( curve.inRange(-0.001,0.001), [ sig.lincurve(-1,1,-1,1, curve, \none ), sig ]); sig = sig * ((invert * -2) + 1); sig = Select.kr( clipMode, [ sig.softclip2(1, clipSoft ...

  7. shared_in Quark

    ... ess = 0| var sig; sig = (USharedValueIn.kr(id) * 2) - 1; sig = Select.kr( curve.inRange(-0.001,0.001), [ sig.lincurve(-1,1,-1,1, curve, \none ), sig ]); sig = sig * ((invert * -2) + 1); sig = Select.kr( clipMode, [ sig.softclip2(1, clipSoft ...

  8. msc-synthdefs Quark

    ... or if recording) end: gesture_rec_dur * kr ); gesture_mirror_ff = ToggleFF.kr( InRange.kr(gesture_phasor, 0, gesture_rec_dur * kr * 0.01) // flipflop every cycle + Trig.kr((1-LocalIn.kr) * gesture_pingpong_mode, 0.01) // reset: toggle when ...

  9. ActionFunc Quark

    ... ( val < node.extra ) && { node.lastVal >= node.extra } ) { val; } { nil; }; }, \inRange: { |node, val = 0| // extra: [min, max ? 1] var range; range = (node.extra.asCollection ++ #[1])[..1]; if( val.inclusivelyBetween( *range ) ) { val; } { ...

  10. SWBusNode Quark

    ... / assumes input is going from 0 to a value, like a trigger (use with a previous InRange) Out.kr( out, EnvGen.kr( Env.asr( attack,maxval,release,curve ), input // gate ) * mul); }).send(s); } } InRangeNode : SWBusNode{ initSynthDefAndBus{ |s ...

prev 1 2 3 4 5 6 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow