-
... ist.do{|thatBoid, j| var dist; // don't check for boids that are the exact same object if ((thisBoid === thatBoid).not) { // get the distances to the other boids dist = thisBoid.dist(thatBoid); // get their distance neighbors[nIdx] = Dictio ...
-
... that are numerical can be rescaled and shifted /* Questions: push currState to object when changing rescaling? */ *****/ KtlLoop : EventLoop { classvar <allKtls; var <>paramsToRecord, <currState; var <>object, <>ktlMap; var <>scaler=1, <>s ...
-
/* An Extendable is a plain object whose methods can be added at runtime using `addMethod` */ // Extendable a = Extendable.new; // responds to nothing // correctly throws "not understood" errors: a.play a.free a.asArray // add a new method, ...
-
... an array. to get individual components from the array you could use a splitter object or a higher level object that represents the messages that the device sends and has its own driver */ MxUnit.register('OSCFunc', ( make: { arg oscFunc; v ...
-
DataBus Put data from a function onto a bus Inherits from: : Object DataBus evaluates a function at a regular time interval and puts the resulting data on a control bus on the server. Creation / Class Methods *new(function,nchan,server) Cre ...
-
... freq. By default, 12ET calibrates to a=440. As such, a default EqualTemperament object behaves just like midicps. However, you can retune the EqualTemperament object to any pitch. t = EqualTemperament (); t.cps(69); 440 t.cps(60); 261.62556 ...
-
... freq. By default, 12ET calibrates to a=440. As such, a default EqualTemperament object behaves just like midicps. However, you can retune the EqualTemperament object to any pitch. t = EqualTemperament (); t.cps(69); 440 t.cps(60); 261.62556 ...
-
... Params ? []); } prime { |obj, useSpawn = false| // // proxy.prime kills playing objects // proxy.prime(obj); // this lets held notes continue when switching synthdef proxy.put(0, obj, 0, nil, false); synCtl = proxy.objects.first; usesSpawn ...
-
# Polyfill for `Object.setPrototypeOf` [](https://npmjs.org/package/setprototypeof) [](https://npmjs.org/packag ...
-
... monster //with mouse controlling mid point //with simple sounds mapped to each object. ( s.waitForBoot{ var width= 640, height= 480, wgrav, w, world, n= 18, objs, sprs, syns, cent= RedVector2D[width/2, height/2]; //--synthesis SynthDef(\im ...