-
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 ...
-
ToggleTextField : SCViewHolder { // text field that is programmatically switchable on or off // when on, keyboard input goes into the string and is "trapped" // (no key bubbling) // when off, keyboard input bubbles up without going into the ...
-
ToggleTextField : SCViewHolder { // text field that is programmatically switchable on or off // when on, keyboard input goes into the string and is "trapped" // (no key bubbling) // when off, keyboard input bubbles up without going into the ...
-
... s, 2:0, 3:1, 4:2b, // 80 % of the cases.. 5:2, 6:3, 7:4 ) ); pathetNames = maps.keys.asArray; unmaps = (); maps.keysValuesDo { |name, map| var reversedMap = (); map.keysValuesDo { |key, val| reversedMap.put(val, key) }; unmaps.put(name, rev ...
-
/* \slew_point Creates an UMap for applying a speed limit to point input. point: the point to lag maxSpeed: maximum speed in m/s -- this is an UMapDef definition file part of the WFSCollider Class Library default UMapDefs set */ UMapDef( \s ...
-
/* MPD18 drumpad - TODO: one slider, sends on chan 1, ccnum, 1, [0, 127, \lin, 1, 0] channel aftertouch,sends on chan 0, [0, 127, \lin, 1, 0] 16 pads x 3 banks, pad 1, ... pad 16 /****** TESTING ******/ MKtl.find; m = MKtl('mpd', "*mpd18"); ...
-
Mem { classvar <>minSize = 3; var <>maxMems, <used; *new { |maxMems = 50| ^this.newCopyArgs(maxMems, List[]) } add { |item| // remove if already there, add first, drop oldest used.remove(item); used = used.addFirst(item); while { used.size ...
-
/* \p_post Creates an pattern UMap for posting values in the post window. input: value or UMap to post The 'input' arg ranges is mapped to that of the parameter to which the UMap is connected -- this is an UMapDef definition file part of th ...
-
... ^path.basename.splitext[0]; } listBuffers { arg list; list = List.new; buffers.keysDo{ arg key; if(key != "/"){list = list.add(key)}; }; list.sort.do{ arg key; if(key.findRegexp("/*/").size == 1){"-----------------".postln;}; key.postln; } ...
-
LaTeX produces LaTeX code for tables and charts numericalDict: d = (a: 100.2, b: 650.2, "pi" :pi, der:0.001, "\\theta" : "theta" ); LaTeX .numericalDict(d, "key" , "value" ); LaTeX .numericalDict(d); // dict can be also an array with key va ...