-
... s: ( var h, k; h = File("~/test.dat".standardizePath, "wb"); h.inspect; h.write(FloatArray[1.1, 2.2, 3.3, pi, 3.sqrt]); h.close; k = File("~/test.dat".standardizePath, "rb"); (k.length div: 4).do({ k.getFloat.postln }); k.close; ) ( var f, ...
-
... scDegrees ? degrees).reverse.drop(1) } adRatios { ^this.asADArray.midiratio } asFloatArray { var array, fa; array = this.asArray; ^FloatArray.new(array.size).addAll(array); } size { ^degrees.size } semitones { |desc = false| desc.if({ ^desc ...
-
... penRead(resultpath); // get the size: one frame at the start sf.readData(size = FloatArray.newClear(1)); size = size[0]; // now the rest of the data sf.readData(data = FloatArray.newClear(size)); sf.close; File.delete(oscpath); File.delete( ...
-
... nt. In SuperCollider, floating-point numbers are always 64-bit, except within a FloatArray . Examples of floats: 0.39 98.6 1.0 -0.5 ⧉ ✔ Exponential notation is also supported: 1.2e4 1E-4 ⧉ ✔ The keyword pi can also be used by itself, or app ...
-
... ( this.class, sf.sampleFormat, path, this ) .warn; }; // read it anyway array = FloatArray.newClear( sf.numFrames * 9 ); sf.readData( array ); sf.close; this.fromBufferArray( array, path.basename.removeExtension ); this.filePath = path; sav ...
-
... setMsg setn setnMsg loadCollection sendCollection get getMsg getn getnMsg loadToFloatArray getToFloatArray normalize normalizeMsg fill fillMsg copyData copyMsg close closeMsg plot play query updateInfo Buffer Fill Commands gen genMsg sine1 ...
-
... gNPoles; frameSize = argFrameSize; hop = argHop; channel = argChannel; tmpBuf = FloatArray.newClear(frameSize * sf.numChannels); hopSamps = frameSize * hop; minFreq = argMinFreq; maxFreq = argMaxFreq; fftSize = frameSize.nextPowerOfTwo; rea ...
-
... w.refresh; ) *lineDash_(pattern) set the line dash pattern. pattern should be a FloatArray of values that specify the lengths of the painted segments and not painted segments. ( var w; w = Window .new( "Radial Gradient + line dash + cubic b ...
-
... tion Handling try protect Scheduling awake Audio play scope plot asBuffer loadToFloatArray getToFloatArray Conversion asSynthDef asDefName asRoutine r p Bela belaScope Inherited instance methods Undocumented instance methods archiveAsCompil ...
-
... 0, size, 50)); b.readOnly_(true); a.view.decorator.nextLine; d = Array.new; c = FloatArray.newClear(65493); r = Slider(a, Rect(0, 0, size, 12)); r.action = { |ex| b.gap = (ex.value * 4) + 1 }; file = SoundFile.new; file.openRead(ExampleFile ...