-
... ec.maxval] ); } ) .mappedArgs_([ \input, \add ]) .prepareArgsFunc_({ |args| var index; index = args.indexOf( \value ); if( index.notNil && { index.even }) { args[index] = \input; }; args; }) .setSpec( \factor, [-1,1,\lin,0,0].asSpec ) .setS ...
-
... this.handlersForClass(class.superclass) }); match }) }; ^match } getInlet { arg index; if(index.isNil, { ^inlets.first }); if(index.isInteger, { ^inlets[index] }, { inlets.do { arg in; if(in.name == index, { ^in }) } }); Error("Inlet not fo ...
-
... Creates an UMap that can select a value from an Array of values in a UPattern. index: the index (0-n-1) vals: the Array of values n: the total number of values The 'vals' arg ranges are mapped to that of the parameter to which the UMap is ...
-
... ons to play the four sound slots MKtl('testa').elAt(\bt, \R, (0..3)).do { |but, index| but.action = { NTMI.slots.playAt(index) }; }; // first four S buttons to stop the sounds MKtl('testa').elAt(\bt, \S, (0..3)).do { |but, index| but.action ...
-
... do { |func| scores.do( func ); } last { ^scores.last } first { ^scores.first } indexOf { |obj| var index; index = scores.indexOf( obj ); if( index.isNil ) { scores.do({ |item, i| index = [ i, item.indexOf( obj ) ]; if( index[1].notNil ) { ...
-
... do { |func| scores.do( func ); } last { ^scores.last } first { ^scores.first } indexOf { |obj| var index; index = scores.indexOf( obj ); if( index.isNil ) { scores.do({ |item, i| index = [ i, item.indexOf( obj ) ]; if( index[1].notNil ) { ...
-
... floor(warp.map(value.clip(0.0, 1.0)) * items.size) ); } unmap { arg value; var index = items.indexOf(value); if (index.isNil) { ^nil } { ^(index * (1.0 / items.size)); } } copy { ^this.class.newFrom(this) } }*/ ItemSpec { var <items, <warp ...
-
... h2; }; } { obj = drg.asWFSPath2.deepCopy; }; this.object = obj; }); } getNearestIndex { |point, scaler| // returns nil if outside radius var radius; radius = scaler.asArray.mean * 5; ^object.positions.detectIndex({ |pt, i| pt.asPoint.dist( ...
-
... ort({ |a, b| a.natLess(b) }); */ + String { natLess { |str2, equal = false| var index = 0, char1, char2, lastCommonChar; var isDig1, isDig2, numStr1 = "", numStr2 = ""; // speedups by early exit: /// for equal strings if (this == str2) { ^e ...
-
... e_( FunctionList() .addFunc({ this.prArrangeViews; }); ); } insertView { |view, index = nil| if(index.isNil) { thisViews.add(view); } { thisViews.insert(view, index); }; view.setParent(this); this.prArrangeViews; } removeView { |view| thisV ...