-
... Color = Color.black; textFieldBg = Color.white; // allEditors ?? { allEditors = IdentityDictionary() }; if(thisEditor.isNil or:{ thisEditor.window.isClosed }, { // any seats left empty? block { |break| xySlots.do({ |p, i| if(p[1] == 0, { br ...
-
... t(key) }; }); }; }); }; }); } prSrcWinTracks { srcWinTracks ?? { srcWinTracks = IdentityDictionary.new }; ^srcWinTracks; } prSourceWin {arg ndefKey; ^(sourceWindows ? []).detect({|item| item.isClosed.not and: { item.name.beginsWith(ndefKey. ...
-
... name }, { 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, (v == "nil").if({ n ...
-
... num: midi, db: db, partial: partial, freq: freq, amp: amp)); }; }; }; byPitch = IdentityDictionary.new; raw.do { |evt| var k, old; k = evt[\keynum]; old = byPitch[k]; if(old.isNil or: { (evt[\db] ? -1000.0) > (old[\db] ? -1000.0) }) { byPit ...
-
... if (ids.isNil, { SCLOrkEmoji.prLoadIds(); }); } *prLoadTrie { trie = MultiLevelIdentityDictionary.new; trie.put('o','il','_match', #[ '🛢️', // '1F6E2FE0F', // oil drum ]); trie.put('o','il','_count', 1); trie.put('o','r','ang','e','_match' ...