-
... 25.coin.binaryValue); //world,loc,vel,acc,mass,size }.dup(n); }.dup(n); lookup= IdentityDictionary(world.objects.size); world.objects.do{|o| lookup.put(o, world.neighbours(o))}; //heavy calculation //--loop w.draw{ var counts= world.objects ...
-
... ubscriptions = Set.new; slotNodesSubs = Set.new; nodeSubs = Set.new; slotSubs = IdentityDictionary.new; setters = IdentityDictionary.new; // this.sendRegistered; } sendRegistered{ addr.sendMsg( '/registered', addr.port.asInteger, key.asStri ...
-
... y_(obj.array.collect(_.miSC_copy(copyItems))) } } +Object { miSC_getCopyCode { ^IdentityDictionary[ (0 -> 0), (1 -> 1), (2 -> 2), (false -> 0), (true -> 1), (\false -> 0), (\true -> 1), (\deep -> 2), ].at(this) ? 0 } miSC_copy { |copyItems ...
-
ControlPrototypes { classvar <registery; *initClass { registery=IdentityDictionary.new; } *define { arg ... assns; registery.addAll(assns); } *at { arg key,spec; // returns a list of possibles ^registery.at(key).value(key,spec) // could/sho ...
-
ControlPrototypes { classvar <registery; *initClass { registery=IdentityDictionary.new; } *define { arg ... assns; registery.addAll(assns); } *at { arg key, spec; // returns a list of possibles ^registery.at(key).value(key, spec) // could/s ...
-
... ternal Accessing Instance and Class Variables sampleplaying sampleplaying is an IdentityDictionary, indexing to all the synths that are playing, allowing the method modifplay to interact with them when the GeoListener send an update message ...
-
... ; case( { pn.extension == "yml" }, { dict = filePath.parseYAMLFile; fileParse = IdentityDictionary(know: true); // replace String keys with Symbol keys, make "knowable" dict.keysValuesDo{ |k, v| fileParse.put(k.asSymbol, if(v == "nil", { ni ...
-
FuzzyDictionary random lookup dictionary superclass: IdentityDictionary put(key, obj) put an object into the dictionary. If there is already an object at that key, the new object is added to the list of choices. at(key) retrieve an object a ...
-
... ressees; var <replyTags; *new{ ^super.new.init; } init{ interessees = MultiLevelIdentityDictionary.new; replyTags = IdentityDictionary.new; } add{ |osctag,id,client,replyTag| osctag = osctag.asSymbol; if ( interessees.at( osctag, id.asSymbo ...
-
... { arg time, resp, msg; msg.postln; }); // and remove your responder. This is an IdentityDictionary in the class, so you can have as // many responders with unique ids that you want a.removeResp( \test ); // this sends a message to everyone ...