-
... Symbol is passed, length can be assigned to an envir variable later on. envir - Dictionary or one of the Symbols \top, \t (topEnvironment), \current, \c (currentEnvironment). Dictionary to be taken for variable reference. Defaults to \curre ...
-
... Symbol is passed, length can be assigned to an envir variable later on. envir - Dictionary or one of the Symbols \top, \t (topEnvironment), \current, \c (currentEnvironment). Dictionary to be taken for variable reference. Defaults to \curre ...
-
// 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 } }
-
... (channels, server).init; } init{ ("Initializing ZZZDevice...").postln; clocks = Dictionary(); gates = Dictionary(); gateBusses = Dictionary(); outs = Dictionary(); tempos = Dictionary(); tempoBusses = Dictionary(); clocksTempoMap = Dictiona ...
-
... variables later on. Can be dynamically replaced by Patterns or Streams. envir - Dictionary or one of the Symbols \top, \t (topEnvironment), \current, \c (currentEnvironment). Dictionary to be taken for variable reference. Defaults to \curre ...
-
+ Dictionary { sortedKeysValuesCollect { arg function, sortFunc; var keys = this.keys(Array); var res = this.class.new(this.size); keys.sort(sortFunc); keys.do { arg key, i; res.put( key, function.value(this[key], key, i) ); }; ^res; } }
-
+Dictionary { atCreate { |key, defaultFunc| var val, newVal; val = this.at(key); if (val.notNil) { ^val } { newVal = defaultFunc.value(); this.put(key, newVal); ^newVal; } } } +Association { connect { |...otherAssocs| ^([this] ++ otherAssoc ...
-
... "aif", "AIF", "aiff", "AIFF", "aifc", "AIFC", "flac", "FLAC" ]; dict = IdentityDictionary.new(n: 3000, know: true); dict.put(\r, \rest); } *clear { Buffer.freeAll; SCLOrkSamples.initClass; } // *loadFile // Loads a single file. File name b ...
-
... nvertToJSON {|object, customEncoder=nil, postWarnings=true| if((object.isKindOf(Dictionary) or: (object.isKindOf(SequenceableCollection))).not) { Error("Can only convert a Dictonary/Event/Array to JSON but received %".format(object.class)). ...
-
... Symbol is passed, length can be assigned to an envir variable later on. envir - Dictionary or one of the Symbols \top, \t (topEnvironment), \current, \c (currentEnvironment). Dictionary to be taken for variable reference. Defaults to \curre ...