Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... -1, 1 ); scaleValue = { |val, fr, mode = \none| if ( abs(curve) < 0.001 ) { val.linlin( *fr ++ [ -1, 1, mode ] ); } { val.lincurve( *fr ++ [ -1, 1, curve, mode ] ); }; }; switch( clipMode, \clip, { value = scaleValue.value( value, fromRange ...

  2. SplineOsc Quark

    ... c = [0,b.numFrames-1].asSpec; index = ispec.map(inSpec.unmap(x)); },{ index = x.linlin(inSpec.minval,inSpec.maxval,0,b.numFrames-1) }); ^BufRd.perform(rate,1,b,index,0,4) } ar { arg x,divisions=128; // Shaper better ? ^this.kr(x,divisions,\ ...

  3. TimeStretch2 Quark

    ... trigPeriod/2-(BlockSize.ir/SampleRate.ir)); rVal1 = (Latch.ar(rVal, trig1)>=0).linlin(0,1,-1,1)* Latch.ar(XFade2.ar(K2A.ar(1), localIn, EnvGen.kr(Env([-1,-1, 1], [trigPeriod, 0]), 1)), trig1); rVal2 = (Latch.ar(rVal, trig2)>=0).linlin(0,1, ...

  4. robTron Quark

    ... inScale, maxScale); # a, b = LinExp.kr([c_1a, c_2b], 0, 1, 20, 13000); # c, d = LinLin.kr([c_3c, c_4d], 0, 1, 0, 12*8); #f, h = ([c_6f, c_8h ]).lag(robLag).cubed; // just curve .. i = LinExp.kr(c_8i, 0, 1, minScale, maxScale).lag(robLag)-0. ...

  5. README Quark

    ... modulate the rate of the trigger and the startPosition trig = Impulse.ar(speed.linlin(0.0, 10.0, 15.0, 60.0 )); in = PlayBuf.ar(1, bufnum, BufRateScale.kr(bufnum), trig, speed.linlin(0, 10.0, 5000, BufFrames.kr(bufnum)), 0)*0.7; Decay2.ar( ...

  6. plusSpec-makeView Quark

    ... ; values; }, \invert, { |values| values = this.unmap( values ); values = values.linlin( values.minItem, values.maxItem, values.maxItem, values.minItem ); this.map( values ); }, \reverse, { |values| values.reverse; }, \sort, { |values| value ...

  7. TestBuffer Quark

    ... action: { arg array; fromBuffer = array }); calcVal = [bufSize >> 1, bufSize-1].linlin(0, bufSize, -1, 1); this.assert( fromBuffer.first.equalWithPrecision(-1) && this.getSignalMidValue(fromBuffer).equalWithPrecision(calcVal.first) && fromB ...

  8. DualNumber Quark

    ... ip { |other| ^this * max(other, 0) } scaleneg { |other| ^this * (this.real.sign.linlin(-1, 1, other, 1)) } clip2 { |other| ^max(min(this, other.neg), other) } clip { |lo, hi| ^max(min(this, hi), lo) } mod { |other| ^this.class.new(mod(this. ...

  9. Radicles Quark

    ... sFunc; var specOptions, thisResult; if(thisFunc.notNil, { specOptions= (0..127).linlin(0,127,0,1.0).collect({|item| thisFunc.(thisSpec.map(item.round(0.01))) }); thisResult = specOptions.indexIn(unmapVal).linlin(0,127,0,1); }, { thisResult ...

  10. WFSSpeakerConfView Quark

    ... Conf.n / unitSize).floor.asInteger).collect({ |i| points[0].blend( points[1], i.linlin( -0.5, (arrayConf.n / unitSize) - 0.5, 0, 1 ) ); }); Pen.color = Color.black.alpha_(0.25); Pen.font = Font( Font.defaultSansFace, 9, true ); unitPoints.d ...

prev 51 52 53 54 55 56 57 58 59 60 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow