-
... ndlers; classHandlers = this.handlersForClass(class); if(classHandlers.isNil, { Error("No MxUnit driver found for " + class).throw; }); // this is actually a variable space dict, not just handlers ^Environment(32, classHandlers, nil, true); ...
-
... he .scl file (tuning.size > pitchesPerOctave).if({ // 12.midiratio has rounding error, should be 2, is 1.999etc num = tuning.pop; (num == 12).if ({ // octave octaveRatio = 2; }, { octaveRatio = ratios.pop; }); }, { octaveRatio=2 }); } scale ...
-
... e| ^super.new.value_(value) } value_ { |v| v.isNumber.if({ value = v }, { MethodError("Value of a Rational must be a number", this).throw }) } // implements all basic math operations composeUnaryOp { arg aSelector; var out; ^(out = value.pe ...
-
... ode in SC. If we didn't have a semi-colon between the two lines we would get an error. In general when you are meant to execute several lines of code at the same time they will be surrounded by parentheses, as in the example below. This is ...
-
... er: Filter: Description Class methods current convert makeCurrent use unconvert error Inherited class methods Instance methods Inherited instance methods Examples Classes (extension) | Extensions > Virtual Gamelan'>Virtual Gamelan StringCon ...
-
... lView(); class = class.asString(); // Type settings if (class.contains("message-error"), { newInstance.stringColor_(Color.red); }); ^newInstance; } }
-
... pletionFunc fails the queue gets stuck try { completionFunc.value(buffer); } { |error| error.reportError; "Error occurred during buffer load completionFunc. Continuing with next file." .warn; }; queue.removeAt(0); // drop first item from qu ...
-
... ring).flush.close }{ ^"SynthBenchmark.write unable to open path %".format(path).error } } // Output statistics comparing two benchmarks against each other compare { |that| var k1, k2, a1, a2, wsr, wsrN, avgdiff; k1 = this.results.keys.asArr ...
-
... 204e-16,formatMatrix; (func.isNil or: { jacobian.isNil } or: { x0.isNil }).if { Error("please supply a valid func, jacobian and x0 arguments").throw }; // check input func.respondsTo('at').not.if { func = [func] }; jacobian.respondsTo('at') ...
-
... e| ^super.new.value_(value) } value_ { |v| v.isNumber.if({ value = v }, { MethodError("Value of a Rational must be a number", this).throw }) } // implements all basic math operations composeUnaryOp { arg aSelector; var out; ^(out = value.pe ...