-
... ociation Motivation There are three very similar ways to represent maps between keys and values, each of which have a specific purpose: key value pairs common representation of arguments [\freq, 452, \amp, 0.2] collections of associations o ...
-
... } freeBufferForKey {arg key, buffer; buffers[key].free; } freeBuffers { buffers.keysValuesDo({arg key, value; value.free; }); buffers.removeAll; } dataForKey {arg key; var foundData; foundData = data[key]; foundData.isNil.if({ ("Data for \\ ...
-
// new dynamic version VGActionsGui { var <actions, <>displayFunc, <orderedKeys, <>buttonState; var <tagBox, <skip, <buttonRefresh; *new { |parent, bounds, actions, displayFunc, orderedKeys, buttonState| ^super.newCopyArgs(actions, displayF ...
-
... nction,description); } // you can concatenate responders ++ { arg that; var new,keys; if(that.isNil,{ ^this }); if(that.class !== this.class,{ ^KeyDownResponderGroup(this,that) }); // that overides this new = this.class.new; new.dict = dict ...
-
... tion, description); } // you can concatenate responders ++ { arg that; var new, keys; if(that.isNil, { ^this }); if(that.class !== this.class, { ^KeyDownResponderGroup(this, that) }); // that overides this new = this.class.new; new.dict = d ...
-
... plicit specs up into halo for faster access addImplicitSpecsToHalo { this.specs.keysValuesDo { |key, value| this.addSpec(key, value) } } getSpec { |key| var foundSpec, synthSpecs, haloSpecs; // if no key given, return a dict with all specs; ...
-
... _.ascii ++ 127; states = Dictionary[ // matchItem is done on unicode value from keystroke // arrow keys, pass to default action of the view who has focus now (65361..65364) -> { |instance, view, char, modifiers, unicode, keycode, key| view. ...
-
... ds Instance methods Instance Variables numItems envir zone paramViews specs editKeys keysRotation docBut knowBut parentBut protoBut Some Methods object envir name getSpec putSpec addReplaceKey removeReplaceKey showKeyFor highlight unhighlig ...
-
... nthTracker.initialize; SynthDescLib.global.read; SynthDescLib.global.synthDescs.keysValuesDo({ |key, value| value.track; if(value.willFreeSynth.not) { whichLoaded = whichLoaded.add(value.name); }; }); ^whichLoaded; } *fullReset { SynthTrack ...
-
// wslib 2005 // find all keys for a value + Dictionary { findKeysForValue { arg argValue; var result = []; this.keysValuesArrayDo(array, { arg key, val, i; if (argValue == val, { result = result ++ [key]}) }); ^result } }