-
... 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. bugf ...
-
... ergy buildBandEnergy = { |residual, numFrames| var be = Array.fill(numFrames, { FloatArray.fill(25, 0.0) }); if(residual.notNil and: { residual.bandEnergy.notNil }) { numFrames.do { |fr| if(fr < residual.bandEnergy.size) { 25.do { |b| if(b ...
-
... of redUniverse toolkit /redFrik //--vector of any dimension RedVector[float] : FloatArray { species {^this.class} mag {^this.sum{|x| x*x}.sqrt} distance {|redVec| ^(this-redVec).mag} manhattan {|redVec| ^(this-redVec).abs.sum} dot {|redVec ...
-
... , netsize, w, numchans, heatmaps; sf = SoundFile.new; sf.openRead(path); farr = FloatArray.newClear(sf.numFrames * sf.numChannels); sf.readData(farr); sf.close; numchans = sf.numChannels; numrows = (numchans / rowlen).ceil.asInteger; netsiz ...
-
... 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 ...
-
... // wavetable buffer plotter + Buffer { plotWavetable { |name, bounds| this.getToFloatArray(wait: 0.05, action: { |v| defer { var result = FloatArray.new(v.size div: 2); v.pairsDo({ |a, b| result.add(a+b) }); result.plot; } }); } } + Object ...
-
... // wavetable buffer plotter + Buffer { plotWavetable { |name, bounds| this.getToFloatArray(wait: 0.05, action: { |v| defer { var result = FloatArray.new(v.size div: 2); v.pairsDo({ |a, b| result.add(a+b) }); result.plot(name, bounds); } }); ...
-
... = SoundFile.openRead( pth ); if( sf.notNil ) { if( sf.numChannels == 9 ) { fa = FloatArray.newClear( sf.numFrames * sf.numChannels ); sf.readData( fa ); wfspath = WFSPath2.fromBufferArray( fa ); wfspath.name = pth.basename.removeExtension; ...
-
... settop = offset+normfeatures-1; //find maxItem, minItem, mean, stddev //array = FloatArray.newClear(SCMIR.soundfile.numFrames*normfeatures); maxval = array[offset]; minval = array[offset]; //mean = 0.0; //find stats for(0,numframes-1,{|i| t ...
-
... \select: { |bt, rect| // \select //var scaleAmt; Pen.width = 1; Pen.lineDash_( FloatArray[ 1,1 ] ); Pen.addRect( rect.insetBy( rect.width * 0.25, rect.height * 0.25 ) ); Pen.stroke; }, \move: { |bt, rect| // \move Pen.width = 0.8; 4.do({ | ...