-
... ou could also only search by locID if ( [vendorID, productID, locID, versionID].every( _.isNil ) ){ ^nil; }; ^this.deviceList.detect { |pair| var dev, info; #dev, info = pair; vendorID.isNil or: { info.vendor == vendorID } and: { productID. ...
-
... error = absdif(automaticDerivative, symbolicDerivative); var fine = error.flat.every(_ < 0.000001); this.assert(fine, "parametric curve 1: automatic and symbolic differentiation should match" ); } test_parametricSurface_1 { var r1 = 0.4; v ...
-
... r; modSynthCtrNums = synthCtrNum; forBy(0, varCtr.size - 2, 2, {|i| varCtr[i+1].every(_.isSequenceableCollection).if { varCtr[i+1].do({|item,j| if ((k <= (varCtrNum - minPartitionSize)) && ((k == 0) || (allowVarsBreak && (((j == 0) && (k >= ...
-
... classes Why patterns? Patterns describe calculations without explicitly stating every step. They are a higher-level representation of a computational task. While patterns are not ideally suited for every type of calculation, when they are a ...
-
... me result. { Mix .arFill(3, { arg i; Saw .ar(500 + (i * 100), 0.05) }) }.scope; Every time the function is evaluated, the argument i is incremented. So i equals 0 the first time the function is evaluated, i equals 1 the second time, i equal ...
-
... am ends. The cross adverb allows you to pair each item in the first stream with every item in the second stream. p = ( Pseq ([10, 20]) +.x Pseq ([1, 2, 3])).asStream; Array.fill(7, { p.next }); the result is: [ 11, 12, 13, 21, 22, 23, nil ] ...
-
... rnNil = false; (args.size == 0).if { ^(this == 0).if { 0 }{ this.abs } }; (args.every { |i| i.isKindOf(Integer) }).not.if { "lcmByGcd requires Integers".error }; args.any(_ == 0).if { ^0 }; lcm = args.inject(this, { |x, y, i| // z must be f ...
-
... also be anything that responds to .value. In the latter case, .value is called every block, with the current block as an argument. Class Methods . new Arguments: cfreqfunc Cutoff frequency. rqfunc Reciprocal of Q value. drqfunc Common rati ...
-
... Units.asCollection; defs = inUnits.collect(_.def); firstDef = defs[0]; if( defs.every({ |item| item == firstDef }) ) { def = firstDef; if( def.isKindOf( MultiUdef ).not or: { dkey = def.defNameKey; dval = units[0].get( dkey ); units.every({ ...
-
... also be anything that responds to .value. In the latter case, .value is called every block, with the current block as an argument. Class Methods . new Arguments: amount Reverb amplitude. send Reverb pre-gain. Inherited class methods Instan ...