-
... ; // Ejemplo: /filterBank/4000 knob.action = {|knob| synthiGME.setParameterOSC( string:"/filterBank/" ++ (62.5*(2**(num))).ceil.asInteger, value: knob.value.linlin(0,1,0,10), addrForbidden: \GUI, ) }; left = left + spacing; }); } makeInputA ...
-
+String { // a markov set would maybe be better *rand { arg length = 8, nCapitals = 0, pairProbability = 0.2; var consonants = "bcdfghjklmnpqrstvwxz"; var vowels = "aeiouy"; var cweight = #[ 0.07, 0.03, 0.07, 0.06, 0.07, 0.03, 0.01, 0.07, 0 ...
-
+String { // a markov set would maybe be better *rand { arg length = 8, nCapitals = 0, pairProbability = 0.2; var consonants = "bcdfghjklmnpqrstvwxz"; var vowels = "aeiouy"; var cweight = #[ 0.07, 0.03, 0.07, 0.06, 0.07, 0.03, 0.01, 0.07, 0 ...
-
... need the call stack of parser internals. if(error.class == Error) { error.errorString.postln; "" } { error.throw; // all other errors should halt } }; } { code } }; // avoid wslib dependency { |str, exclude = " "| var firstI = str.detectIn ...
-
... = DelayN.ar(in,1/10-ControlDur.ir,1/delfreq-ControlDur.ir.lag(0.1)); // guitar string frequencies // a few octaves to get a good sound. // open strings //freqs = (84+[0,5,10,15,19,24]).midicps/8; // e minor and other chords freqs = ((64+ [ ...
-
... ake: { arg object; ~source = object; MxUnit(object) }, save: { ~source.asCompileString }, load: { arg string; string.compile.value() }, copy: { ~load.value(~save.value()) }, // methods that the driver can implement, called after make didLoa ...
-
... r \move value = [0.0,0.0]; // background, hilightColor, borderColor, knobColor, stringColor color = [Color.gray(0.5, 0.5), Color.blue.alpha_(0.5), Color.white.alpha_(0.5), Color.black.alpha_(0.7), Color.black ]; } value_ { |val| if( val.siz ...
-
... f(base > top,{ Pen.fillColor = fontColor; this.drawOnGridX { |hpos, val, i| var string = val.asStringPrec(5) ++ domainSpec.units; Pen.font = font; Pen.stringAtPoint(string, hpos @ base ); Pen.stroke; }; Pen.stroke; }) } drawNumbersY { var l ...
-
... ake sure a file is a pathname object *prAsPathName{|file| ^case { file.class == String } { PathName(file) } { file.class == PathName } { file } { file.class != String and: { file.class != PathName } } { "file must be a string or a pathname" ...
-
... has no full unicode support, /// replace all non-ascii chars in place here: *fixString { |string, replaceChar = $_| var badCount = 0; // fix in-place: string.do { |char, i| if (char.ascii < 0) { string[i] = replaceChar; badCount = badCount ...