-
... ractions-Part-A-only.pdf //it doesn't work perfectly due to floating point errors, I can't find an arbitrary precision float for SC ~fraction2basimal.(1/3, 10); //without rounding in the equals comparision, this returns a bunch of thr ...
-
... oat; ratio.ratiomidi } { true } { line.asFloat } }; if (pitches.size != size) { Error("scl: size mismatch (% != %)".format(pitches.size, size)).throw }; octaveRatio = pitches.last.midiratio; if (octaveRatio == 2.ratiomidi.midiratio) { octav ...
-
... dl); if (sendGate) { ~schedBundleArray.value(lag, sustain + offset, server, [['/error', -1]] ++ [\n_set, ids, \gate, 0].flop ++[['/error', -2]] ) } } { if (strum < 0) { bndl = bndl.reverse }; strumTime = 0; bndl.do { | msg, i | ~schedStrumm ...
-
... ns mimic 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 th ...
-
... g that; if(that.isKindOf(AbsApp).not, { (this.asString + "cannot >> to" + that).error }); } } MxApp : AbsApp { var cache, convertor, transactionCount = 0; mx { ^model } at { arg point; var u; u = model.at(point.x, point.y) ?? { ^nil }; ^thi ...
-
... ? if(unitsdone>=(totalunits-0.000001), //account for very slight floating point errors { //new cutsize? subdiv= sdiv.value.round(1.0).asInteger; //integers only //new number of beats to cut into subdiv units sdivbeats=barlength.value; //new ...
-
... lues; badSynth !? { // free badSynth - which may be gone already // so suppress error msg for this bundle server.sendBundle(nil, [\error, -1], ["/free", badSynth.nodeID]); }; if (checkingBadValues) { badSynth = Synth(badDefName, target: gro ...
-
... ther then getting rid of them... but I can't, for the life of me, see where the error is. Don't use it. Moore's basic algorithm is pretty good, and the filters seems fairly stable. If you have problems, try increasing the number of poles (d ...
-
... tAddr, <>editorPort, <>oscPort; *new { | remoteIP | if (remoteIP.isNil) { throw(Error("The RemoteIP constructor argument is not provided.")); } // newCopyArgs works sets properties when they are defined in the order from left to right. ^sup ...
-
... l.isNil) {nil.alwaysYield; ^inval }; dur = outval.at(\dur); if(dur.frac != 0) { Error("pekingan for this balungan type not defined.").throw }; if(dur > 1) { // for now split only whole dur dur.do { inval = outval.copy.put(\dur, 1.0).yield; ...