-
... go in main dict // some data maybe should go in parent: provide a collection of keys + IdentityDictionary { moveFunctionsToParent { |keysToMove| var movedKeys; // because you shouldn't delete things from a collection under iteration movedKe ...
-
+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 ...
-
// strange dynamic treatments Instr([\dyna,\transDriven],{ arg audio=0.0,sensitivity=0.01,attack=0.01,release=0.1; // detect the slope (sensitive to transients) and use that to spike the amplitude // with variable attack and release. // you ...
-
... loat values are strings keyValues = keyValuesJSON.asString.parseYAML; keyValues.keysValuesDo({ arg key, value; var inlet = unit.inlets.at(key); if(inlet.canSet, { inlet.set(inlet.spec.map(value.asFloat)); }, { Error("Cannot set value on inl ...
-
DeferredView { var <view, <>action, <objects, <value; *new { |view| ^super.newCopyArgs( view ).init; } undefer { ^view.action_( action ); } defer { ^this } init { action = view.action; view.action = { |view ...args| this.updateObjects; acti ...
-
... p.put(key, { |val| proxy.set(key, key.asSpec.map(val)) }); getFunc = { proxy.getKeysValues([key])[0] }; } makeButton { |parent, bounds| Button(parent, bounds) .states_([[""], ["", Color.white, Color.red]]) .action_({ |btn| if (btn.value == ...
-
... ents, then see hierarchy of messages: MIDIMonitor.postTree; MIDIMonitor.msgTree.keys; To Do: 1. abstract out consecutive note numbers and controller numbers in order to generate more compact code 2. generate concise and correct desc files 3 ...
-
EnvM : Env { // a mapped Env. level values are entered raw, but stored internally unmapped // note: when entering a literal array (i.e. #[0,1,0]) it will not be unmapped var <spec; var <>mapped = true; *new { arg levels = #[0,1,0], times = ...
-
EnvM : Env { // a mapped Env. level values are entered raw, but stored internally unmapped // note: when entering a literal array (i.e. #[0,1,0]) it will not be unmapped var <spec; var <>mapped = true; *new { arg levels = #[0,1,0], times = ...
-
JSONlib { var <>postWarnings; var <>useEvent; var <>customEncoder; var <>customDecoder; *new { |postWarnings = true, useEvent=true, customEncoder=nil, customDecoder=nil| ^super.newCopyArgs(postWarnings, useEvent, customEncoder, customDecode ...