-
KeyBus { var <keys, <values, <bus; var indexDict; // for KeyBus with (freq: [200, 300, 400], amp: [3,2,1]); var <isPoly, <isMono; *new { |keys, values, server| ^super.newCopyArgs(keys).init(values ? [], server); } argNames { ^keys } // temp ...
-
MagicPreset { classvar prefix = "/*___MAGIC_PRESET(", suffix = "*/", separatorChar = $); *at { arg key, doc = Document.current; var docstr, strs, bounds; key = key.asString; MagicPreset.prCheckKey(key); docstr = doc.string; bounds = MagicPr ...
-
... ParsedString( "a:1, b:2" ).dict // --> ( 'a': 1, 'b': 2 ) var <string, <dict, <keys; // keys stay in ordered form var <>newKey = ",;"; var <>newValue = ":="; *new { | string = ""| var dict = (), keys = []; ^super.newCopyArgs( string, dict, ...
-
... c ** commaK))); }; out }; // chromatic notes, not scale degrees ~bestScale = { |keys| var keyPairs = Array(keys.size * (keys.size - 1)); (keys.size - 1).do { |i| (i + 1 .. keys.size - 1).do { |j| keyPairs.add([keys[i], keys[j]]); }; }; if(~ ...
-
... ners: [Function])); var <>frpStoreControls; //remove <> afterwards var <internalKeysArray; *new { | key, object | // key may be simply a symbol, or an association of a symbol and a server name var res, server, dict; if(key.isKindOf(Associat ...
-
/* // test this desc: thisProcess.nowExecutingPath.basename.split($.).first.postcs; d = MKtlDesc.loadDescs("*wing").first; m.free; m = MKtl(\gw, "*wing").trace; m.gui; m.elementsDict.size; m.postElements; */ // ( ( deviceName: "Livid Guitar ...
-
... ; } *formatPath { |path| var stPath, array = [], key, i = 0; var relative; dict.keysValuesDo({ |key, value| if( key != '_relative' ) { array = array.add( [ value.standardizePath.withTrailingSlash, key ] ); }; }); array = array.sort({ |a,b| ...
-
... ; } *formatPath { |path| var stPath, array = [], key, i = 0; var relative; dict.keysValuesDo({ |key, value| if( key != '_relative' ) { array = array.add( [ value.standardizePath.withTrailingSlash, key ] ); }; }); array = array.sort({ |a,b| ...
-
// use Ndef.defaultServer in new and printOn methods. + Ndef { *new { | key, object | // key may be simply a symbol, or an association of a symbol and a server name var res, server, dict; if(key.isKindOf(Association)) { server = Server.name ...
-
/* Notes: * rumble does nothing on wireless, works on wired. -- elementsDesc copied over from plain run_n_drive -- only differences: deviceName: "Run'N' Drive Wireless_Thrustmaster", idInfo: "Run'N' Drive Wireless_Thrustmaster", -- could be ...