-
... holding raw data values Source: ArrayedCollection.sc Subclasses: DoubleArray , FloatArray , Int16Array , Int32Array , Int8Array , String , SymbolArray … see all Description RawArray is the abstract superclass of a group of array classes th ...
-
... ger; chans = sf.numChannels.asInteger.max(1); sr = sf.sampleRate.asFloat; raw = FloatArray.newClear(frames * chans); sf.readData(raw); sf.close; mono = FloatArray.newClear(frames); frames.do { |i| mono[i] = raw[(i * chans).clip(0, raw.size ...
-
... do( _.openWrite ); this.seek(startFrame, 0); { (numFrames > 0) and: { rawData = FloatArray.newClear(min(numFrames, chunkSize)); this.readData(rawData); //"next chunk (size=%) read\n".postf( rawData.size ); rawData.size > 0 } }.while({ rawDa ...
-
... tring encodeStringAsBuffer encodeStringAsSoundFile language side decoding decodeFloatArray decodeBuffer decodeSoundFile server side encoding play playSine send stop server side decoding listen stopListening Inherited instance methods Exampl ...
-
... udio.aiff"; var sndFile = SoundFile.openWrite(path.standardizePath); var data = FloatArray.fill(512, { 1.0.rand2 }); sndFile.writeData(data); sndFile.close; // loadSample uses standardizePath internally satie.loadSample(name, path); server. ...
-
... res ".postln; [1, temp].postln; }; temp = numonsets; //*numfeatures; onsetdata= FloatArray.newClear(temp); //faster implementation? file.readLE(onsetdata); if((onsetdata.size) != temp) { file.close; onsetdata=nil; SS_SCMIR.clearResources; f ...
-
scaleStream scaleStreams aka chord changes each scale is a FloatArray a stream of scales is a sequential series of these arrays ( // random pentatonics p = Instr("scaleStream.randpentas"); // returns a pattern when valued x = p.value(4,16,0 ...
-
... cket size. To overcome this Buffer has two methods, 'loadCollection' and 'loadToFloatArray' which allow you to set or get large amounts of data by writing it to disk and then loading to client or server as appropriate. ( // make some white ...
-
... ; gridLineSmoothing = ~gridLineSmoothing; gridLinePattern = ~gridLinePattern.as(FloatArray); labelX = ~labelX; // huh ? in the skin ? labelY = ~labelY; }; } draw { Pen.addRect(bounds); Pen.fillColor = Color.white; Pen.fill; if(gridOnX) { th ...
-
... odal space // mouse x controls discrete pitch in dorian mode var scale; scale = FloatArray [0, 2, 3.2, 5, 7, 9, 10]; // dorian scale play({ var mix; mix = // lead tone SinOsc .ar( ( DegreeToKey .kr( LocalBuf .newFrom(scale), MouseX .kr(0,15 ...