-
... scaleEnv = {arg thisEnv, minVal, maxVal; thisEnv.levels = thisEnv.levels.linlin(0, 1, minVal, maxVal); thisEnv.duration_(timeScale); thisEnv.duration_(timeScale); // "scaling done!".postln; }; // Ugly adjustEnv = {ar ...
-
... 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 ...
-
... 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 ...
-
... curve, Pseg(Pseq([0, 1, 0], 1), 15), \degree, Pwhite(-7, 0, inf) + Pkey(\curve).linlin(0, 1, 0, 14).asInteger, \dur, 0.5, \tempo, Pkey(\curve).linlin(0, 1, 1, 10) ).play; ⧉ ✔ Node control \addAction How to add a synth or group node relative ...
-
... , 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 ...
-
... 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 ...
-
... gs| args.postln; // be sure to return a cartesian arg cartesian.y = cartesian.y.linlin(-1,1, -0.2, 1); }, 1, 2, 3, 4) ) // Note the above transform invalidates the spherical design as such! // Reset to the original state. t.reset; /* Direct ...
-
... 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| ...
-
... 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 ...
-
... = []; 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 ...