-
... select in one loop collectIfNotNil { |func| var result = this.species.new(this.size); this.do { |item, i| var mapped = func.value(item, i); if(mapped.notNil) { result.add(mapped); }; }; ^result } // find indices for every item found in ano ...
-
... emp2 = List[], out; temp = seed; loop { out = temp[((i/3).floor)%temp.size] + seed[i%seed.size]; if(i%9 == 0, {out.post}); //comment next line and uncomment this line to demonstrate that for seed [0,1,0], r(n) = r(3*n) for all ...
-
+ Integer { asPaddedString { arg size = 2, padChar = "0", padSide = \left; var string, stringSize; string = this.asString; stringSize = string.size; if(padSide == \right, { (size - stringSize).do({ string = string ++ padChar; }); },{ (size ...
-
... 22 - gplv3 ConstantGainDistortion { *ar { |in, preamp = 1, distFunc(_.tanh), rmsSize = 512| var distorted = distFunc.value(in * preamp); var ampBefore = (RunningSum.ar(in.squared.asArray.sum, rmsSize) / rmsSize).sqrt; var ampAfter = (Runnin ...
-
ArrayTransformerDef( \tilt, { |f, obj| var tiltAmt, size; tiltAmt = ((f.get( \tilt ) * 0.5pi).tan / 2); size = obj.size; obj.collect({ |item, i| item + i.linlin(0,size-1,tiltAmt.neg, tiltAmt) }); }, [ \tilt, 0] ) .setSpec( \tilt, [-1,1,\lin ...
-
... obj = obj.asCollection; if( def.useSelection.value( this, obj ) && { selection.size > 0 } ) { ^this.prValueSelection( obj, def ) } { ^this.applyFunc( obj, def ); }; } getSpec { |key| if( spec.notNil && { (this.def.mappedArgs ? #[]).include ...
-
... msg, Date.localtime ] ] ++ (history ? [])[current..]; current = 0; if( history.size > max ) { history = history[..max+1] }; this.changed( \add ); if( this.verbose ) { "% :: added state\n\tnew size: %)\n\tmessage: %\n".postf( thisMethod.asS ...
-
... msg, Date.localtime ] ] ++ (history ? [])[current..]; current = 0; if( history.size > max ) { history = history[..max+1] }; this.changed( \add ); if( this.verbose ) { "% :: added state\n\tnew size: %)\n\tmessage: %\n".postf( thisMethod.asS ...
-
... UGens classvar arugens, krugens, arouts, krouts; *new { |bendFunc, ugenFunc, maxSize = 16| // todo multichannel expand bendFunc var res; maxSize = maxSize ? 16; this.readOutputs(maxSize); res = this.use(ugenFunc); this.initUGens; this.bendA ...
-
... adeTime: 1); n.numChannels; //number of channels n.xset(\pan, Array.panDis(~arr.size, ~arr.size).scramble.postln); //evaluate several times a = SpecFile.read(\space, \pan); ~node1 = ModMap.map(n.ndefs[0], \pan, \sin, a, [\freq, 1]); ~node2 ...