Submit Browse Random
Anonymous Login RSS

SuperCollider Code

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

    ... // copied methods \nextPowerOf, \previousPowerOf, ]; classvar mappingOps = #[ \linlin, \linexp, \explin, \expexp, \lincurve, \curvelin ]; specialTrigonometricTestRanges { ^( \asin: [-1.0, 1.0], \acos: [-1.0, 1.0], \atan: [-8.0, 8.0], \sinh ...

  2. CVWidget Quark

    ... ollersAndModels } ); // "mapping: %\n".postf(mapping); if(mapping.asSymbol !== \linlin and:{ mapping.asSymbol !== \linexp and:{ mapping.asSymbol !== \explin and:{ mapping.asSymbol !== \expexp } } }, { Error("A valid mapping can either be \\ ...

  3. Spline Quark

    ... s,numd; # mins, maxes = this.minMaxVal(dim); points.do { arg p; p[dim] = p[dim].linlin(mins,maxes,min,max) }; } // plot // skew // rotate // moveBy // resizeBy ++ { arg thou; ^this.class.new(points ++ thou.points,isClosed) } sliceDimensions ...

  4. SatieFactory Quark

    ... ig, bufnum: lebedev50buffer, azimuth: aziDeg, elevation: eleDeg, spread: spread.linlin(0.0, 1.0, 20.0, 100.0) ); HOAEncLebedev50.ar(order, outsig, filters: 0) } } *harmonicEncoder { ^{ |outsig, order, aziDeg, eleDeg, spread, plane_spherical ...

  5. VirtualRoom Quark

    ... , hypot(roomSize[0]-roomSize[3], roomSize[1]-roomSize[4])); out.set(\room, diag.linlin(0, 50, 0, 1)); // set the room size for FreeVerb } room { ^roomSize } /* Method: gui provide a GUI for the room properties */ gui { var w, f, s, v, t; va ...

  6. ScaledUserViewWindow Quark

    ... ew.scaleH - 1) / maxZoom.asPoint.x; scaleSliders[1].value = 1 - userView.scaleV.linlin(minZoom.asPoint.y, maxZoom.asPoint.y, 0, 1, zoomCurve ); //((userView.scaleV - 1) / maxZoom.asPoint.y ); this.setMoveSliderWidths; }; if( moveFlag ) { mo ...

  7. TimeStretch Quark

    ... rrayB.neg}; fftWind = tanWindows[windowSize.asInteger.asSymbol][correlation.abs.linlin(0, 0.99, 0, 99).asInteger]; addArray = ((smallArrays[0]*fftWind[1])+(arrayB.copyRange(0, (windowSize/2).asInteger-1)*fftWind[0])); addArray.do{|item, i| ...

  8. Buffer Granulation Quark

    ... read onto more than one channel // and per-grain application of fxs fails. chan.linlin(0, ~n -1, -1/ ~n , (2* ~n - 3)/ ~n ), 1, interp); dUgen = Dwhite (0.0, 1); sig = sig.collect { |ch, i| // this is the place to define fxs per channel/gra ...

  9. Envelop Quark

    ... = []; timeline.do{|thisTime, index| normalizedTimeLine = normalizedTimeLine ++ linlin(thisTime, 0, this.duration, 0, duration); }; ^[normalizedTimeLine, levels].flop.flat.pairsAsEnv; } //segment an envelope to several envelopes //the outco ...

  10. WFSPath2 Quark

    ... erate( size, dur, this ); } } + Nil { asWFSPath2 { ^WFSPath2( { |i| Polar( 8, i.linlin(0,15,0,2pi) ).asPoint } ! 15, [0.5], \bspline ) } }

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

SuperCollider home doc forum wiki git legacy help book

contact | by vividsnow