-
... 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 ...
-
... ndices = (start..end) * numfeatures; var numvectors = end-start+1; ^ if(mean) { FloatArray.fill(numfeatures,{|i| featuredata.at(indices+i).mean }); } { FloatArray.fill(numfeatures,{|i| featuredata.at(indices+i).maxItem }); }; } *resolveFeat ...
-
... ew).permanent = true; }; } initAudioMulchClock { queue= PriorityQueue.new; avg= FloatArray.newClear(10); start= OSCresponderNode(nil, \t_start, {|t, r, m| var items = []; if(m[1]!=tick, { (this.class.name++": start "++m[1]).postln; if(Prior ...
-
... sampleRate).ceil.asInteger; }; size = (numFrames / width).ceil.asInteger; arr = FloatArray.newClear( size * f.numChannels ); peaks = (numFrames / size).ceil.asInteger.collect({ |i| var chunk; i = i * size; if( i < (f.numFrames * f.numChanne ...
-
... temClock.sched(sflength+1.0, { //Post << "transfer" << nl; analysisbuffer.loadToFloatArray(action: { arg array; var num; //Post << array << nl; num= array[0]; this.prepareData(num, array); }); }); }); } prepareData {arg num, array; lengths= ...
-
... get the numDataPoints: one frame at the start dataFile.readData(numDataPoints = FloatArray.newClear(1)); numDataPoints = numDataPoints[0]; if(numDataPoints.isNil) { "no numDataPoints information, assuming numDataPoints = 1".warn; numDataPoi ...
-
... this.data = data; } data { ^globalData[ this.id ] } dataForBuf { ^this.data.as( FloatArray ) } data_ { |newData| globalData[ this.id ] = newData; this.class.changed( \globalData, this.id, newData ); } at { |index| ^this.data[ index ] } put ...
-
... e for RedJWindow to fake primitive 100602 - removed bugfixes for Collection and FloatArray and moved the species {^this.class} fix into the RedVector class itself 090629 - helpfiles and examples now uses view redirect instead of GUI bugfix ...
-
... n ) { 0-f } { f }; }) ) * (-27.dbamp); if( outPath.isNil ) { ^ir } { ir = ir.as(FloatArray); sf = SoundFile.new; outPath = outPath.getGPath; if(sf.openWrite(outPath), { sf.writeData(ir); sf.close; ^outPath; }, { "%:generateDanStowelIR : Fai ...
-
... (collection.isKindOf(RawArray).not, {data = collection.collectAs({|item| item}, FloatArray)}, {data = collection;} ); sndfile = SoundFile.new; sndfile.sampleRate = server.sampleRate; sndfile.numChannels = 1; if(sndfile.openWrite(path), { sn ...