-
... b3].wrapAt(i/50%5)});//pattern g.grainBuf_({|buf, o, i| [~b1, ~b2, ~b3].wchoose(FloatArray[0.1, 1.0, 0.0].blend([0.0, 0.0, 1.0], o).normalizeSum)});//interpolate -buffer depend on position g.grainBuf_({|buf, o, i| [~b1, ~b2, ~b3].wchoose(Fl ...
-
... 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 ...
-
... rray you supply. You must have already called openRead. The raw array must be a FloatArray. Regardless of the sample format of the file, the array will be populated with floating point values. For integer formats, the floats will all be in ...
-
... 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 ...
-
... e method -channelPeaks for example. Arguments: rawArray The raw array must be a FloatArray . Regardless of the sample format of the file, the array will be populated with floating point values. For integer formats, the floats will all be in ...
-
... } { 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 ...
-
... // OK enough fun, let's write it as a datafile ~toydata = ~toydata.flatten.as( FloatArray ); ~sf = SoundFile .new.headerFormat_( "AIFF" ).sampleFormat_( "float" ).numChannels_(2); ~sf.openWrite( "tmp_SOMTrain_sinedata.aiff" ); ~sf.writeDat ...
-
... 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 ...
-
... cription Plays all of the players, mixing them together in its own synth. ( c = FloatArray[1,2,4,5,6,8,13]; // an array buffer loads an array onto the server d = ArrayBuffer(c); Instr(\helpPlayerMixer, { arg degree=1,amp=1.0,scale; var freq ...