-
... imic language-style control methods: conditionals ( Pif ), loops ( Pwhile ) and error cleanup ( Pprotect ). Pif(condition, iftrue, iffalse, default) Evaluates a pattern condition that returns true or false. Then, one value is taken from the ...
-
... alue, domain | domain[2].detect( { | item | item == value.asArray } ); }; }, { ^Error("bounding mode not recognized").throw }; ); } *ossiaDefaultValue { ^[0, 0] } *ossiaNaNFilter { | newVal, oldval | ^newVal } *ossiaJson { ^"\"l\"" } }
-
... // the tests that asserted nil were updated with it. *prRefuseZeroDenominator { Error("Rational: a denominator of zero has no value. Nothing in the " "rationals divides by zero, so this is refused where it was " "written rather than answere ...
-
... e will fail to send if the bundle size is too large // but it will not throw an error. this needs to be fixed sendBundle { arg time ... args; if( debug ) { ([ time ] ++ args).postln }; ^super.sendBundle( time, *args ); } sendPosBundle { arg ...
-
... name.asString; instr = Instr.at(name) ?? {Instr.load(name)}; if(instr.isNil, { Error("Instr not found" + name).throw; }); reply.value(( name: name, path: instr.path, code: instr.funcDef.sourceCode, specs: instr.specs, outSpec: instr.outSpe ...
-
... e will fail to send if the bundle size is too large // but it will not throw an error. this needs to be fixed sendBundle { arg time ... args; if( debug ) { ([ time ] ++ args).postln }; ^super.sendBundle( time, *args ); } sendPosBundle { arg ...
-
... { | value | if(value.isNumber.not, { "AlgaStartup: algaMaxIO must be a number".error; ^this }); algaMaxIO = value; this.initClass; } *maxIO { ^algaMaxIO } *maxIO_ { | value | this.algaMaxIO_(value) } *maxEnvPoints_ { | value | if(value.isN ...
-
... changes.pop.neg)}, //... return to the previous key {"already in original key!".error} ); }, { newRoot = chromatic; newRoot.isNil.if({ newRoot = scale.degrees.wrapAt(degree); "root %\n".postf(newRoot); }); changes = changes ++ newRoot; this ...
-
... > this.maxOrder, { "%:ar: order % is not implemented".format(this.class, order).error; ^nil; }); if(headphoneCorrection != nil, { if(headphoneCorrection > headPhones.size, { "no suitable headphone corection selected, execute HOABinaural.lis ...
-
... ycode, envir = keyspec; (action = states.matchAt(unicode)).notNil.if({ // if an error occurs, it might crash the routine // and kill the interface try { envir.use({ newkeyspec = action.value(this, *keyspec); }); } { |error| error.reportErro ...