-
... / example: MaxItem( [ SinOsc.ar( 220 ), SinOsc.ar( 225 ) ] ); MaxItem { *new { |array, force = false| var out; if( array.any({ |item| item.isKindOf( UGen ) }) ) { out = array[0]; array[1..].do({ |item,i| out = if( item > out, item, out ); } ...
-
// Rotation of input arrays (RotateL, RotateN, XFadeRotate) // wslib 2005 / 2012 RotateN { // rotate an array of channels *new1 { |rate, n = 0, array| var selector = UGen.methodSelectorForRate(rate); var size = array.size; ^Array.fill(size, ...
-
... t is a BBCutBuffer object to the CutBuf2 and CutBuf3 classes BufSelector { var <array, <indexfunc, <>index; //needed by CutBuf3 var <eventstarts, <eventlengths, <eventpats, <groovepos, <timedeviations; *new {arg array, indexfunc; ^super.new ...
-
ResponderArray { var <>array; *new { arg array; ^super.new.array_(array) } add { arg thing; array = array.add(thing) } respond { arg ... vals; ^array.any({ |r| r.performList(\respond,vals) }) } // match ? value { arg ... vals; array.do({ ar ...
-
... fading (instead of the more widely used cosine) LagSelectX { *new { |which = 0, array, lag = 0.1| if( (which.rate === \scalar) or: { lag == 0 } ) { // no lag (can also be in language) ^( array * this.getAmps( which, array.size ).sqrt ).sum; ...
-
... d use // i should delete it but oh well... PbindFuncStream : FuncStream { var <>array; *new { arg nextFunc, resetFunc, array; ^super.new(nextFunc, resetFunc).array_(array) } next { arg inval; ^nextFunc.value(inval, array) } reset { ^resetFu ...
-
... d use // i should delete it but oh well... PbindFuncStream : FuncStream { var <>array; *new { arg nextFunc, resetFunc, array; ^super.new(nextFunc, resetFunc).array_(array) } next { arg inval; ^nextFunc.value(inval, array) } reset { ^resetFu ...
-
+ SS_SCMIRAudioFile { //requires MathLib extension quark featureQuantiles {|array which=0 num=1 numquantiles=10| var target; target = Array.fill(num,{|i| array[which+i,numfeatures+which+i..]}).flatten; //(numquantiles-1) ^target.percentile( ...
-
... ^this.getNames( type ).collect({ |item| valueSpecs[ item ]; }); } constrain { |array| // outputs an array [ type, channel, val1 (, val2) ] var type, specs; if( array.size == 0 ) { if( array.class == Symbol ) { type = array; array = [ type ...
-
... ^this.getNames( type ).collect({ |item| valueSpecs[ item ]; }); } constrain { |array| // outputs an array [ type, channel, val1 (, val2) ] var type, specs; if( array.size == 0 ) { if( array.class == Symbol ) { type = array; array = [ type ...