-
... Bark below 220 hz barkToHz { ^1960 / (26.81 / (this + 0.53) - 1) } // gives the size (in Hz) of the critical bandwidth given in barks criticalBW { ^52548 / (this.squared - (52.56 * this) + 690.39)} // freqs to ERB (Equivalent Rectangular Ba ...
-
... play / focus a point pointSelector = NumberEditor(-1, [-1, model.spline.points.size-1, 'lin', 1]); pointSelector.action = { if(pointSelector.value >= 0, { model.focusedPoint = pointSelector.value; this.update; }, { model.focusedPoint = nil ...
-
/* // added tabSize param to fit larger trees when needed s.boot; s.plotTree (tabSize: 20); g = Group.new.isPlaying_(true); 10.do { |i| Ndef(i.asSymbol).parentGroup_(g).put(0, { Silent.ar }).play }; fork { 100.do { ().play; 0.3.rand.wait } ...
-
... is.foldAt( index ) } ); } allSplineIntControls { |amt, clipMode = 'wrap'| ^this.size.collect({ |i| this.modeAt( (-1..2) + i, clipMode ).splineIntControls( amt ); }).flop; } splineIntFunction { |i, x1, x2| ^this.splineIntPart1( x1, x2 ).spli ...
-
... = this.storeArgs; newArgs = deltaWFSPoint.asWFSPoint.storeArgs.extend( oldArgs.size, 0 ); ^this.class.new( *( oldArgs + newArgs ) ) } - { arg deltaWFSPoint; var oldArgs, newArgs; oldArgs = this.storeArgs; newArgs = deltaWFSPoint.asWFSPoint ...
-
... printedLine.split(Char.nl); logOutput = log.unprintedLine[0..(log.unprintedLine.size - 2)].collect({ |line| "[%] ".format(log.name.asString().toUpper()).padRight(12) ++ line; }).join("\n"); log.unprintedLine = log.unprintedLine.last; logOut ...
-
... arView; var font = Font( Font.defaultSansFace, 11 ); var topBarHeigth = 40; var size = 16; var margin = 4; var gap = 2; bounds = bounds ? Rect(100,100,700,400); this.newWindow(bounds, "USession - "++session.name, { if(USessionGUI.current == ...
-
( //--settings var size= 700; //--images var images= [ \sCluster -> Image(SInstruments.rootDir+/+"images/sCluster-screenshot.png"), \sDrone -> Image(SInstruments.rootDir+/+"images/sDrone-screenshot.png"), \sFormant -> Image(SInstruments.roo ...
-
... .width.asInteger; Pen.moveTo( 0 @ history[pos].linlin(0,1,height,0) ); (history.size).do({ |item, i| Pen.lineTo( (i+1) @ history.wrapAt(pos+i).linlin(0,1,height,0) ); }); Pen.lineTo( history.size @ height ); Pen.lineTo( 0 @ height ); if( hi ...
-
... (\pb_monoStretch2_Overlap2, { |out = 0, bufnum, stretch = 100, startPos = 0, fftSize = 8192, fftMax = 65536, hiPass = 0, lowPass=0, amp = 1, gate = 1| var trigPeriod, sig, chain, trig, trig1, trig2, pos, jump, trigEnv, fftDelay, bigEnv, win ...