-
... y = this.fromRecDistanceToNormalisationAmp(dy); }; ); //attenutaion formula for point sources //point sources has a lowpassband filter to simulate the perception of distance if(d > (m*perceptionArea*2), { cutFrequency = exp(10 - ( 7 *((d - ...
-
... nval = (value - lastValue).yield; lastValue = value; }; ^inval } } // Sync time-points to the barline // Provide time-points as \timept // pattern must be an event pattern! PTimePoints : FilterPattern { var <>tolerance; *new { |pattern, tol ...
-
... hould equal 9"); this.assertFloatEquals( 4.0 , 1.0 * 4.0 / 4.0 * 4.0, "floating point math should be close to equal"); */ var name, format; var ids = [ ['2Dobj' ,"ixyaXYAmr"], ['3Dobj' ,"ixyzabcXYZABCmr"], ['25Dobj' ,"ixyzabcXYZABCmr"], ['2 ...
-
... var freq; if(i%3==0, { freq= (s.sampleRate/bufferSize*i).asInteger; Pen.stringAtPoint(freq.asString, Point(i/numBins*width-8, 10)); }); }; fftArray.drop(1).do{|y, x| Pen.addRect(Rect(x/numBins*width, 1-(y/~maxuV)*height, 1, height)); }; Pen ...
-
... te its own Window , and place it conveniently on the screen if the bounds are a Point . If the bounds are a Rect , then the Rect determines the window bounds. bounds An instance of Rect or Point . Default value is 160@20 . label The label. ...
-
... Synth. ar ( atsbuffer , numPartials: 0 , partialStart: 0 , partialSkip: 1 , filePointer: 0 , sinePct: 1.0 , noisePct: 1.0 , freqMul: 1.0 , freqAdd: 0.0 , numBands: 25 , bandStart: 0 , bandSkip: 1 , mul: 1.0 , add: 0.0 ) Arguments: atsbuffer ...
-
... = w.asView.bounds.moveTo(0,0); }; bounds=bounds.asRect; // allows you to use a Point for the bounds. ( \TabbedViewView.asClass.notNil && (GUI.id == \qt) ).if{ view = TabbedViewView(w,bounds).resize_(resize); }{ view = context.compositeView ...
-
... i = SCImage .new(400,200); // Create a 400x200 pixels SCimage. i.dump; i.free; Point to create an empty image of size multiple.x as width and multiple.y as height i = SCImage .new(400@200); // Create a 400x200 pixels SCimage. i.dump; i.fre ...
-
... ////////////////////////////////////////////////////// // Dorota.sc // // Entry point for the Dorota quark. Replaces Scripts/Dorota_launcher.scd: // resolves the quark's own directory, applies the server options the engine // needs, loads t ...
-
... ee; }; thisSVGPath = aPath; thisSVG = Image.openSVG(thisSVGPath); thisSVGSize = Point(thisSVG.width, thisSVG.height); this.resizeSVG; } free { if(thisSVGPath != "") { thisSVG.free; thisSVGPath = ""; this.refresh; }; } resizeSVG { var hRatio ...