-
... " loaded..."; } *classify {|centsList, tolerance = 6| // in cents var result = Array.newClear(centsList.size), key; key = tableType.switch(\JST, \harmon, \huygens, \names); centsList.do{|cent, i| table.cents.do{|x,j| if ( (cent - x).abs <= ...
-
... assert( a == a, "an Env should equal itself"); } test_equivalences { this.assertArrayFloatEquals( Env.cutoff(1, 1, 'exp').asSignal(20).as(Array), Env.cutoff(1, 1, 'lin').asSignal(20).asArray.linexp(0,1,-100.dbamp,1), "Exponential Env.cutoff ...
-
... interrupts a playing stream to allow midi input var saveSubType = AbstractChuckArray.defaultSubType; AbstractChuckArray.defaultSubType = \midiInputWrapper; PR(\abstractProcess).v.clone({ // if true, using this as a wrapper will stop the ch ...
-
... true; // If any matches we first add them. if (match.notNil, { var matchList = Array.new(match.size); var targetMenu = this; // Reverse map for sorted description strings to callbacks. var descMap = Dictionary.new; match.do({ |item, index| ...
-
... tFreq, lastPhase, lastAmp, gapCount, smoothAmp; pts = (tr[\points] ? []); out = Array.newClear(pts.size); lastFreq = nil; lastPhase = 0.0; lastAmp = 0.0; gapCount = 999; smoothAmp = 0.0; pts.do { |pt, frameIdx| if(pt.isNil) { out[frameIdx] ...
-
... o use stereo samples ~rate = 2; //Rate of playback ~source = [ // Create an array of your samples. ~media.samples points at my base sample directory and is defined in my startup file. ~media.samples ++ "808/kicks/808 kick 6.wav", ...
-
wordBins ( var str = "" ; Array .fill(27, { |i| ((i+97).asAscii!i ++ " " )!i}).flatten(2).do{ |it| str = str ++ it }; d = str.wordBins(3) ) // use SwingOSC for proper umlauts in visualization ( var win, extX, extY, winRect, view, fontName, ...
-
... {|argPosition| position= argPosition??{RedVector3D[0, 0, 0]}; rotationMatrices= Array.fill(3, { #[ [1, 0, 0], [0, 1, 0], [0, 0, 1] ] }); this.rotation_(RedVector3D[0, 0, 0]); this.update; } rotation_ {|redVec| rotation= redVec; this.rotatio ...
-
... izes, maxSize; pulse.isKindOf(Number).if { pulse = Pn(pulse) }; evPat = evPat.asArray; div = div.asArray; divBase = divBase.asArray; divType = divType.asArray; // div, divBase and divTape: size must be equal and equal 1 or evPat.size sizes ...
-
... > 3) { groupName = args[3].asSymbol; synthArgs = args[4..]; // returns an empty array if no values exist at these indexes this.createSourceNode(sourceName, synthName, groupName, synthArgs); } { this.createSourceNode(sourceName, synthName, g ...