-
... this.convertRules(rules)) } *convertRules { arg rules; var states, nextStates, sizes, data; // if exit state not given, add one. if(rules.size.odd) { rules = rules ++ 0.0 }; // reformat in a more uniform way. // exitstate is treated as ini ...
-
... bs, loopReturns = true; if(returnProbs.isNil, { returnProbs = Array.fill(phrase.size, 1); }); ^this.newCopyArgs( phrase.copy, phrase, returnProbs, Array.newClear(phrase.size), loopReturns, 0, phrase.size, 0, Date.seed, 0 ).calcReturns } // ...
-
... tring; decimal = this.asInteger; hours = (decimal.div(3600)).asString; if(hours.size < 2, { hours = "0" ++ hours }); minutes = (decimal.div(60) % 60).asString; if(minutes.size < 2, { minutes = "0" ++ minutes }); seconds = (decimal % 60).asS ...
-
+ Integer { asPaddedString { arg size = 2, padChar = "0", padSide = \left; var string, stringSize; string = this.asString; stringSize = string.size; if(padSide == \right, { (size - stringSize).do({ string = string ++ padChar; }); },{ (size ...
-
... arker // license: GPL2+ // year: 2013 JPverb { *ar { | in, t60(1.0), damp(0.0), size(1.0), earlyDiff(0.707), modDepth(0.1), modFreq(2.0), low(1.0), mid(1.0), high(1.0), lowcut(500.0), highcut(2000.0)| in = in.asArray; ^JPverbRaw.ar(in.first ...
-
... UI .window.new( "SOM nodes" , Rect (200, 800, 600, 600)); // SCWindow (0,3..arr.size-1).do{ |index| GUI .staticText.new(w, Rect ( (arr[index] +1 * 300 ), (arr[index+1] +1 * 300 ), 20, 20)).string_( "x" ).background_(~cols[arr[index+2].linli ...
-
... license: GPL2+ // year: 2013 Greyhole { *ar { | in, delayTime(2.0), damp(0.0), size(1.0), diff(0.707), feedback(0.9), modDepth(0.1), modFreq(2.0)| in = in.asArray; ^GreyholeRaw.ar(in.first, in.last, damp, delayTime, diff, feedback, modDept ...
-
... file = File.new(path, "w"); if( file.isOpen == false, { ^nil }); lastRow = this.size - 1; this.size.do({ arg row; line = this[row][0].asString; if(this[row].size > 1, { for(1, this[row].size-1, { arg col; line = line ++ columnSeparator ++ t ...
-
... rules)).axiom_(axiom).rules_(rules) } *convertRules { arg axiom, rules; ^[axiom.size, rules.size] ++ axiom ++ rules.collect(_.size) ++ rules.flatten(1) } allSymbols { ^Dseq([ Dseq(axiom), Dswitch(rules.collect { |x| Dseq(x) }, this) ]) } } ...
-
... me hi-fi style. s = Server .local.boot; b = Buffer .alloc(s,2048,1); ( var win, size=8; c = Bus .control(s, size); // Values will be written to control busses win = SCWindow ( "EQ meter" , Rect (100, 200, 360, 110)); ~slider = SCMultiSlider ...