-
... ath { |url| url = this.formatURL( url ); ^all[ url ]; } *getURL { |wfsPath| all.keysValuesDo({ |key, value| if( value === wfsPath ) { ^key.asString }; }); ^nil; } *putWFSPath { |url, wfsPath, keepOld = true| var oldPath, oldURL; if( keepOld ...
-
... ectAs({|item, index| item->index }, Array); // Association means we sort by the keys, i.e. the data values origIndices = if(greatestFirst){ origIndices.sort{ |a,b| a.key >= b.key } }{ origIndices.sort{ |a,b| a.key <= b.key } }; // We don't ...
-
/* \p_coin Creates an pattern UMap that chooses randomly between two values. a: first value b: second value prob: probability for second value The 'a' and 'b' arg ranges are mapped to that of the parameter to which the UMap is connected -- ...
-
... ; a.stop( \snd2 , 0); a.voicesLeft( \snd2 ); //check if any free voices a.loadedKeys; //report all keys that have soundfiles loaded a.numFrames; //report size of preload buffer a.overlaps; //how many voices allowed to play simultaneously a. ...
-
... ther compare { |that| var k1, k2, a1, a2, wsr, wsrN, avgdiff; k1 = this.results.keys.asArray; k2 = that.results.keys.asArray; k1.sort; k2.sort; if(k1 != k2){ ^"SynthBenchmark.compare: keys don't match, cannot compare".error }; // get times ...
-
/* this is the default ntmi prefs file - you can modify it as you like! */ ( 'name': 'raspi', // <- user name here 'numChans': 2, 'serverSetup': "serverBasic2.scd", 'hasGui': false, // the 4 sounds to load into the slots 'defaultActives': [ ...
-
Morse { classvar <>verbose = true; classvar <>dot = 0.1, <>dash = 0.3, <>intra = 0.1, <>short = 0.3, <>medium = 0.7; *timesFor { arg char = $x; var code, times; code = MorseDict.at(char); if (code.notNil, { times = code.collect({ arg code, ...
-
SWDataNetworkGui - SWDataNodeGui - SWDataSlotGui These classes implement a Gui for the Data Network. Most of the methods of this class are only used by the class itself to create the gui. - Example - // Define the network x = SWDataNetwork ...
-
dopostln part of wslib a convenience method for posting all items in an array. also see: dopost ** does not return the object itself ** dopostln dopost can be used for every object that responds to do . It simply posts every object in the a ...
-
... er = tempSum.reciprocal; canvasItems.do ({|canItem| curPresets.at(canItem.name).keys.do ({|plugID| curPresets.at(canItem.name).at(plugID).keys.do ({|plugParam| var nextVal = 0; var mySavedVal = curPresets.at(canItem.name).at(plugID).at(plug ...