-
... numChannels = ~dirt.numChannels; // write variants for different sample buffer sizes (1..SuperDirt.maxSampleNumChannels).do { |sampleNumChannels| var name = format("dirt_sample_%_%", sampleNumChannels, numChannels); SynthDef(name, { |out, ...
-
... ter chan 36 so as not to see the mic input o.numAudioBusChannels = 2048; o.blockSize = 512; o.numWireBufs = 1024 * 16; o.memSize = 2.pow(18); o.sampleRate = 48000; s.makeWindow; s.boot; ) ⧉ ✔ Start the oscilloscope showing all the channels ...
-
... l begin again at the first entry. in can be an array - it should be of the same size as the number of channels in the buffer. NB: Logger zeroes the buffer upon first instantiation, to ensure that out-of-date data is not confused with new da ...
-
... |id,vals| this.sendMsg( $w, id, vals ); } lightNew{ |id,vals| var length = vals.size + 2; port.putAll( ([ 10, length.asInteger, id.asInteger, $l.ascii ] ++ (vals.collect{ |it| it.asInteger }) ).postln; ) } motor{ |val| port.putAll( [ $m.asc ...
-
... Path = item.pathOnly; libFolderPath = libFolderPath.copyFromStart(libFolderPath.size-2); this.whichFile(file, class, libFolderPath;); }; }, { libsFolder.do{|item| if(exclude.indexOfEqual(item.folderName).notNil.not, { libFolderPath = item.p ...
-
... .dump; ~list.at(0); // at index begins with 0 ~list.last; ~list.scramble; ~list.size; ~list.do { |element| element.postln }; ~list.collect { |element| element.squared }; ~list + 100; // becomes a collect automagically ~list2 = ~list.collect ...
-
... ); var levels = (0..rrand(3,8)).collect({1.0.rand;}); var durs = (0..levels.size-1).collect({1.0.rand}).normalizeSum; var env = Env(levels,durs,shape); EnvGen.kr(env, gate:trig, timeScale:dur).range(min, max); }; ~ctrls = {arg f ...
-
... ernal); { Stethoscope(Server.internal, channels * bus, out, zoom:1/4).toggleSize }.defer; }, Pspawn( Pbind(*[ // or maybe ppar for independent partition method: \par, tag: Pwrand([\break,\steady,\transit], [1,3,1].n ...
-
... centroids; k.assignments; // When you hve AT LEAST k points stored (k.centroids.size == k.k), you can run the learning step: k.update; // After update, the centroids should have moved to reflect the data better: k.centroids; // Here's how w ...
-
... st a = SCImage .new( "/Library/Desktop Pictures/Plants/Peony.jpg" ).scalesWhenResized_( true ).setSize(500, 400); a.plot; // look at me first - i am beautiful // but i want you to be posterize ( h = SCImageFilter .new( \CIColorPosterize ); ...