-
... ereoOutput).gui ⧉ ✔ Arg values Arg values are persistent, they are stored in an array of key, value pairs. 'get' does not query the server. Observers can register with a Unit to receive updates when a arg is set. All guis in the Unit Lib us ...
-
... elements: [ [\bt,0], [\bt,1], [\bt,2], [\bt,3], [\bt,4] ], // the order in this array determines the order how the message is parsed ioType: \in ) ), elementsDesc: ( elements: [ ( key: 'bt', shared: ( elementType: 'button', ioType: \collect ...
-
... ^out; } } roundHex { ^Color.newHex( this.hex ) } findWebColor { arg table; var array = []; table = table ?? { Color.web }; table.keysValuesDo({ |key, value| if( value == this ) { array = array.add(key) }; }); ^array.sort; } *webNameIndex { ...
-
... { // OSC sends Strings as Symbols, which is a minor pain, so convert Strings to Arrays of ASCII here if(challenge.isKindOf(String), { challenge = challenge.ascii }); challInds = Pn(Plazy({Pshuf((0..(challenge.size - 1)), 1)}), inf).asStream ...
-
... relFraction); scale = Select.kr( which: InRange.kr( in: scale, lo: 1, hi: inf), array: [ DC.kr([attFraction, relFraction]), DC.kr([attFraction/scale, relFraction/scale]) ]); scale = scale * (att + rel); mAtt = scale[0]; mRel = scale[1]; // ...
-
... p.isNil or: { not(temp === action or: { temp.isKindOf(FunctionList) and: { temp.array.includes(action) } }) }) { Document.globalKeyDownAction = temp.addFunc(action); if(verbose) { "DDWSnippets successfully enabled".postln }; } { if(verbose) ...
-
... % decoder".format(~decoder.kind).postln; // calculate klank args frequencies = Array.rand(numModes, freqs[0], freqs[1]).sort; amplitudes = Array.rand(numModes, gains[0], gains[1]).sort.reverse.dbamp; ringTimes = Array.rand(numModes, rtimes ...
-
... lient.sources[index].uid ) or the index of the source in the MIDIClient.sources array. nil matches all. chan An Integer between 0 and 15 that selects which MIDI channel to match. nil matches all. May also be a Function which will be evaluat ...
-
... ber of buffers var bufnamePrefix = "fooloop"; // soundname prefix var soundIn = Array.with(0); ~recBufs.do(_.free); // free them if they are left over (this is why we keep it in the environment variable) ~recBufs = recBufs = { Buffer.alloc( ...
-
... 0.5, wguideWidth2 = 0.7 | // To be able to send arrays as arguments you have to declare them as variables and // use NamedControl.kr. Take also a look at the MIDI example at the bottom how to address ...