-
... , with an optional exclusion history. value0..value7: values to choose from histSize: size of history buffer; the amount of steps before a value can repeat itself. seed: random seed The 'value0'..'value7' arg ranges are mapped to that of th ...
-
... ]; RedAgent(world, loc).state_(0.25.coin.binaryValue); //world,loc,vel,acc,mass,size }.dup(n); }.dup(n); lookup= IdentityDictionary(world.objects.size); world.objects.do{|o| lookup.put(o, world.neighbours(o))}; //heavy calculation //--loop ...
-
... ( spec.respondsTo(\asControlSpec) ) { res = class.newFrom( spec.asControlSpec ).size_( size ); res.minval = res.minval.max( (2**24).neg ); res.maxval = res.maxval.min( 2**24 ); res.default_( res.map( this.default ) ); }; res.originalSpec = ...
-
... ]; RedAgent(world, loc).state_(0.25.coin.binaryValue); //world,loc,vel,acc,mass,size }.dup(n); }.dup(n); lookup= IdentityDictionary(world.objects.size); world.objects.do{|o| lookup.put(o, world.neighbours(o))}; //heavy calculation //--loop ...
-
... ary browser var <>onSelect,menu,kdr; *new { arg ... args; var onSelect; if(args.size > 1,{ onSelect = args.pop; }); ^super.new .onSelect_(onSelect ? { arg item; item.gui }) .browse(Library.atList(args) ?? {Library.global.dictionary}) } brow ...
-
... = a - b * sqrt(|x(n)|) sclang code translation: ( var a = 1.0, b = 1.9, xi = 0, size = 64; plot(size.collect { xi = a - (b * sqrt(abs(xi))) }); ) ⧉ ✔ Class Methods CuspL. ar ( freq: 22050 , a: 1 , b: 1.9 , xi: 0 , mul: 1 , add: 0 ) From sup ...
-
... ~msgFunc = desc.msgFunc; }, { ~msgFunc = { args = Array.new(currentEnvironment.size*2); currentEnvironment.keysValuesDo({ |key, value| value.isValidSynthArg.if({ args.add(key).add(value) }); }); args }; }); // not .flopping because this is ...
-
... hisSectionStartIndex * SCMIR.framehop; durSample = (activeRMSData[sectionIndex].size - 1) * SCMIR.framehop; activeBuffer = activeBuffer.add(Buffer.read(server, filename, startSample, durSample, {cond.test = true; cond.signal;})); cond.wait; ...
-
... 1, 1633] ) } *new {|char| ^dict[char] ? [0, 0] } *string {|str| ^Array.fill(str.size, {|i| this.new(str[i])}) } *ar {|char, mul= 1| ^Mix(FSinOsc.ar(this.new(char), 0, mul*0.5)) } *kr {|char, mul= 1| ^Mix(FSinOsc.kr(this.new(char), 0, mul*0. ...
-
... ive valid results, it is necessary that both coefficient arrays are of the same size. This means that in some cases it will be necessary to pad a coefficient array with zeros until it matches the other coefficient array in size. See the / o ...