Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... function, create the data at 1/2 buffer size + 1 t = Signal .fill(513, { |i| i.linlin(0.0, 512.0, -1.0, 1.0) }); // linear function t.plot // t.asWavetable will convert it to the official Wavetable format at twice the size b.sendCollection ...

  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. ModalityTutorial Doc

    ... e)) }); //slider 1 k.elAt(\sl, 1).action_({ |elem| z !? _.set(\freq, elem.value.linlin(0.0, 1.0, 50, 2000) ) }); //knob 1 -> number of harmonics k.elAt(\kn, 1).action_({ |elem| z !? _.set(\numHarmonics, elem.value.linexp(0.0, 1.0, 1, 50) ) ...

  5. 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. ...

  6. 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( ...

  7. 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 ...

  8. 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 ...

  9. QuickStart Doc

    ... 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( ...

  10. 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. ...

prev 71 72 73 74 75 76 77 78 79 80 next

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow