Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... lk compensation - adc Mar 2019 - seems an improvement // // value[1] = value[1].linlin(value[0] * 0.5, 1, 0, 1); (15..1).do { |i| values[i] = values[i].linlin(values[i - 1] * xtalkFactor, 1, 0, 1); }; q.osc.rawPads = values[8..]; // q.zero. ...

  2. smooth Quark

    ... \window ) * path.positions.size).max(3); amt = f.get( \smooth ); win = ({ |i| i.linlin(0,(n-1).max(2),-0.5pi,1.5pi).sin.linlin(-1,1,0,1) }!n.max(2)).normalizeSum; newPos = path.positions.collect({ |item, i| var out, sum; out = path.position ...

  3. RoundPan Quark

    ... mics, sourcePos, panAz, virtMic; mics = ({ |i| Polar( speakerRadius, (i - 0.5).linlin( 0, numChans, 0, 2pi, \none ) ).asPoint } ! numChans ); sourcePos = Polar( distance * speakerRadius, pos * pi ).asPoint; panAz = PanAz.kr( numChans, 1, p ...

  4. uGen-linlin Quark

    ... ( outMin ); } {clip == \max } { ^this.min( outMax ); } { true } { ^this }; } /* linlin { |inMin, inMax, outMin, outMax, clip=\minmax| ^( (this-inMin)/(inMax-inMin) * (outMax-outMin) + outMin ) .clipMinMax( outMin, outMax, clip ); } linexp { ...

  5. circle Quark

    ... radius, periods; var close, nn = n; clockwise = f.get( \clockwise ).binaryValue.linlin( 0,1,-1,1); startAngle = (f.get( \startAngle ) / 360) * 2pi; center = f.get( \center ); radius = f.get( \radius ); periods = f.get( \periods ); close = f ...

  6. line_trajectory Quark

    ... ration, \loop, \delay, \trigger ); line = [0,1].splineIntFunction( line, easeIn.linlin(-1,1,2/3,0), easeOut.linlin(-1,1,1/3,1) ); line = 2.collect({ |i| Select.kr( curve[i].inRange(-0.001,0.001), [ line.lincurve(0,1, a[i], b[i], curve[i] ), ...

  7. LagStream Quark

    ... = thisThread; this.end = endVal ? value; current = value; } next { ^this.phase.linlin(0.0, 1.0, current, end); } end_ { arg val; lastTime = this.beats; if(this.phase == 1.0) { current = end }; end = val; } phase { var currentTime = this.be ...

  8. extRect Quark

    ... ht, depth, s= 1, f= 0.5| var x, y, z, ox, oy, w; z= (depth-redVec[2]/(depth*s)).linlin(0, 1, f, 1); x= redVec[0]*z; y= redVec[1]*z; ox= 1-z*(width*0.5)+x; oy= 1-z*(height*0.5)+y; w= size*z.linlin(0, 1, 0.01, 1); ^Rect(ox-w, oy-w, w*2, w*2) ...

  9. smooth Quark

    ... t( \smooth ); mode = (f.get( \mode ).asString ++ "At").asSymbol; win = ({ |i| i.linlin(0,(n-1).max(2),-0.5pi,1.5pi).sin.linlin(-1,1,0,1) }!n.max(2)).normalizeSum; obj.blend( obj.collect({ |item, i| var out, sum; out = obj.perform( mode, (i ...

  10. main-fx-cvt1 Quark

    ... ck1', 1); (Convolution.ar(input,signal, frameSize,adjVol*0.15)*mix) +(input*mix.linlin(0,1,1,0))}); Ndef('track1', {arg volume=0, lagTime=0, mute=0, solo=1; (Ndef.ar('filterTrack_1_1', 1) * volume.dbamp.lag(lagTime) *mute.linlin(0,1,1,0).la ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow