-
... ^this.findInTracker.notNil } trackFree { // find the synth in the SynthTracker dictionary and free it if it's there. // If it's not there free it anyway var index; index = this.findInTracker; if(index.notNil) { ^SynthTracker.freeAt(this.de ...
-
... ); if(obj.class === Symbol, { ^JSON.stringify(obj.asString) }); if(obj.isKindOf(Dictionary), { out = List.new; obj.keysValuesDo({ arg key, value; out.add( key.asString.asCompileString ++ ":" + JSON.stringify(value) ); }); ^("{" ++ (out.join ...
-
... an2.ar(z*e, pan)); }).add; s.sync; synths= (); //keep track of synths with this dictionary //--world w= RedWindow("particlesystem test2", Rect(128, 64, width, height)).front; world= RedWorld3(RedVector2D[width, height], 0, 20, 1.25); //dim, ...
-
... age-error"); mainLayout.add(labelError, stretch: 1.0); } getState { var state = Dictionary(); state[\type] = this.class.asString; state[\rawSpecAsString] = model[\rawSpecAsString]; ^state; } loadState { | state | model[\rawSpecAsString] = s ...
-
... ath = PathName.tmp ++ "fs_" ++ UniqueID.next ++ ".txt"; params = params?IdentityDictionary.new; paramsString = params.keys(Array).collect({|k| k.asString ++ "=" ++ params[k].asString.urlEncode}).join("&"); if (url.contains(separator)){separ ...
-
... sToShow = NTMI.interfacesToShow ? NTMI.optionalNames; NTMI.filesForFoundInfos = Dictionary[ // midi "nanoKONTROL2" -> "nanoKtl", "Faderfox UC4" -> "uc4", "Music Thing 8mu" -> "mu8", "intech-grid" -> "en16", "X-TOUCH MINI" -> "xtm", // hid " ...
-
... haracters in melody ( k = Pseq ( "ab" ); c = [ "a" -> "ba" , "b" -> "ca" ]; d = Dictionary [ $a -> 0, $b -> 5, $c -> 3 ]; z = Pdict (d, // apply homomorphism (final translation) k.asStream.rewriteString(c, 5) ); Pbind ( \instrument , \sineg ...
-
... var <envs; classvar <preAllocatedBuffers; *initEnvs { | server | envs = IdentityDictionary(2); preAllocatedBuffers = IdentityDictionary(numPreAllocatedBuffers); numPreAllocatedBuffers.do({ | i | //+1 just like Env //+1 for the extra 9876543 ...
-
GuidoObj { classvar keyConvert; *initClass { keyConvert = Dictionary[ \c -> -3, \C -> 0, \cs -> 4, \Cs -> 7, \df -> -8, \Df -> -5, \d -> -1, \D -> 2, \ds -> 8, \e -> 1, \E -> 4, \f -> -4, \F -> -1, \fs -> 3, \Fs -> 6, \Gf -> -6, \g -> -2, \ ...
-
... j| [h0, weights[j]] }}; fw.do{|x| x.do{|y| esto.pitches[y.first] = 0}}; // init dictionary values fw.do{|x0| // sum of weights for each freq x0.do{|x1| esto.pitches[x1.first] = esto.pitches[x1.first] + x1.last }; }; ^esto.separate; } separa ...