-
... Signal.newClear(fftSize); bw= 2/fftSize*(board.currentSampleRate*0.5); result= FloatArray.newClear(fftSize2+1); } fft {|data| var complex; if(data.size<fftSize, { "%: data size must be >= fftSize. zeropadded % values".format(this.class.nam ...
-
... frameLen, {|i| i.div((sampleRate/oneFreq).div(2))%2}); } initSine { arrayClass= FloatArray; sampleRate= sampleRate?Server.default.sampleRate?44100; frameLen= sampleRate.div(baudRate); mul= 0.5; add= 0; zeroBits= arrayClass.fill(frameLen, {| ...
-
... rapAt(i/50%5)\); //pattern \ g.grainBuf_(\ |buf, o, i| [~b1, ~b2, ~b3].wchoose( FloatArray [0.1, 1.0, 0.0].interpolate([0.0, 0.0, 1.0], o).normalizeSum)\); //interpolate -buffer depend on position \ g.grainBuf_(\ |buf, o, i| [~b1, ~b2, ~b3] ...
-
... egree = freq.cpsmidi.round(1.0); //treat it like a degree freq = DegreeToKey.kr(FloatArray[ 1, 2, 3, 7, 8, 9, 10 ].asBufnum,degree,12,1,root); out = Mix.new( SinOsc.ar(freq + LFNoise1.kr([3,3,3], 0.04)) ) * amp; 6.do({ out = AllpassN.ar(out ...
-
... set a default this.bufferSize_(argBufferSize?1250); } bufferSize_ {|val| dataN= FloatArray.newClear(val); } sampleRate_ {|rate= 250| var rates= this.class.constants[type].keys; if(rates.includes(rate).not, { "samplerate % not supported. onl ...
-
... } { 1024.min(frames).max(512).nextPowerOfTwo }; freqs = Array.fill(numTracks, { FloatArray.newClear(numPoints) }); amps = Array.fill(numTracks, { FloatArray.newClear(numPoints) }); phases = Array.fill(numTracks, { FloatArray.newClear(numPoi ...
-
... x(1), best[1], best[2], 0.0] } }) ) }); bandEnergy = Array.fill(commonFrames, { FloatArray.fill(25, 0.0) }); ("SPEAR partials txt import parsed: partials=" ++ partialsCount ++ " frames=" ++ commonFrames ++ " dur=" ++ dur).postln; result = ( ...
-
... = tracks.size; nFrames = tracks[0][\points].size; conf = Array.fill(nTracks, { FloatArray.newClear(nFrames) }); prevFreqs = FloatArray.fill(nTracks, 0.0); prevAmps = FloatArray.fill(nTracks, 0.0); nFrames.do { |frameIdx| nTracks.do { |trac ...
-
... ile.openRead(path).if { // size = file.numFrames * file.numChannels; // array = FloatArray.newClear(size); // file.readData(array); // }; // file.close; // signal = Signal.newFrom(array); // spectrum = signal.stft(wSize, ovlp, wType); // if ...
-
... Pen.use({ if( GUI.id == \cocoa ) { Pen.width = pixelScale.x / 2; Pen.lineDash_( FloatArray[ 0.5, 0.5 ] ); } { Pen.width = pixelScale.x / 4; }; tempoMap.divisionLines( viewRect.left, viewRect.right, 0.25 ).do({ |i| Pen.line( i @ top, i @ bot ...