Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... ; trigger = \trigger.tr; reset = \reset.tr; step = \step.kr(1) * \reverse.kr(0).linlin(0,1,1,-1); range =\range.kr([0,n-1]); lag = \lag.kr(0.0); index = Stepper.kr( trigger, reset, range[0], range[1], step ); values = \vals.kr( { |i| i/(n-1 ...

  2. point_distance Quark

    ... ness = 0.0| var dist; dist = point1.asPoint.dist( point2.asPoint ); dist = dist.linlin( *fromRange ++ [-1,1, \none ] ); dist = dist * invert.linlin(0,1,1,-1,\none); dist = Select.kr( clipMode, [ dist.softclip2(1, clipSoftness ), dist.softfo ...

  3. fx-clear-current Quark

    ... me=0, mute=0, solo=1; (Ndef.ar('inTrack1', 1) * volume.dbamp.lag(lagTime) *mute.linlin(0,1,1,0).lag(0.1)*solo.lag(0.1) )}); Ndef('track1').set('volume', 0, 'lagTime', 0, 'mute', 0, 'solo', 1); Ndef('spaceTrack1', {arg pan = 0 ; Pan2.ar(Ndef ...

  4. sine Quark

    ... lar = (end - start).asPolar; path.positions = n.collect({ |i| var sin; sin = (i.linlin(0,n-1,0,2pi * periods) + phase).sin * amp; ( i.linlin(0,n-1,0,polar.rho) @ sin ).rotate( polar.theta ) + start; }); path; }, [ \periods, 1, \phase, 0, \s ...

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

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

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

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

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

  10. 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] ), ...

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow