-
... is collection of associations + SequenceableCollection { detectRecognised { arg list, index=0; ^this.detect { |item| item.recognise(list, index) } } selectRecognised { arg list, index=0; ^this.select { |item| item.recognise(list, index) } } ...
-
// a a = (); b = WatchList.envir(a); a.put(\x, 1); b.list; a.put(\y, 1); b.list; a.put(\x, nil); // keep old items in list b.list; a.put(\a, 123); b.list; Ndef(\a); c = WatchList.proxy(Ndef(\a)); c.list; Ndef(\a).set(\freq, 234); c.list; Nd ...
-
... layerPool : PlayerSocket { // implements selectable interface var <>selected, <>list, <>autostart=false; *new { arg list,selected=0,env,round=0.0,rate=\audio,numChannels=2; list = loadDocument(list); ^super.prNew(rate, //with patches they s ...
-
... ules) .transparent_(transparent).maxContextSize_(maxContextSize) } rules_ { arg list; rules = list; maxKeySize = rules.findMaximalKeySize; } embedInStream { arg inval; var list, stream, outval, match; var rule, dropSize; var offset = 0; var ...
-
~stop.value; // von auszen neue "verben" einführen geht so: ~verben['?'] = { |liste| liste.do({ |x| x.put(\rate, rrand(2.0, 2.2)) }) }; ~sage.value("the missile knows greater at all times ?"); // mit weniger mickey mousing: ~verben['?'] = { ...
-
StoredList { classvar <>verbose = false; var <id, <list, <>suffix, <>fileExt = ".scd"; var <>dirname = "settings", <>dirpath; var <>addToDisk = false; *new { |id, list, suffix = ".pxpreset"| ^super.newCopyArgs(id, list ?? { List[] }, suffix ...
-
KeyChain { classvar <all, <>verbose = false; var <key, <>list, <>index = 0, <nextIndex = 0, <nextKey, <>repeats = 1; *initClass { all = () } *new { |key, list, index| var res = all[key]; if (res.isNil) { res = super.newCopyArgs(key, list ?? ...
-
OFX_StoredList { classvar <>verbose = false; var <id, <list, <>suffix, <>fileExt = ".scd"; var <>dirname = "settings", <>dirpath; var <>addToDisk = false; *new { |id, list, suffix = ".pxpreset"| ^super.newCopyArgs(id, list ?? { List[] }, su ...
-
... {\exoplanet} {this.loadExoplanet} /// ... add more! /// ; } loadExoplanet { var list; // load file.do { |row,i| if (i>0) { //skip name declarations var e = Exoplanet.new; var size = row.size; e.name = row[0].asSymbol; e.mass = row[1].asFloa ...
-
/* if obj is a list, actually a list of associations, check each key, if it is recognised, repeat procedure with its value, until something is not nil. actually a list of objects, try to recognise it. if it can be recognised, return it, oth ...