-
... 0.0, <timer, clock; var <>recordPath, <>headerFormat = "wav", <>sampleFormat = "float", hdr; var <audioIn, <routebus, <outbus, <numChannels; var <>releaseFunc, <>onReleaseFunc, <responder, <>initFunc, <>internalReleaseFunc; var <slots, <inp ...
-
... tString ++ ","})}; ^note.asString++lacc++octString; } // can be a PitchClass or float that represents a keynum (quartertones are okay this way) invert {arg center; var change; center = center.isKindOf(PitchClass).if({ center.keynum }, { cen ...
-
... 20 celsius // factorial { // the highest factorial that can be represented as a Float is 171 // ^(2..this.asFloat).product // } /* Return a sequence of largest prime powers for a given harmonicity minimum. Pitch range is in octaves, ex, 0.0 ...
-
... tPalette= themes[theme] ?? {themes.default}; } *fixDec {|val, numDecimals= 2| //float to string with fixed number of decimals var str= val.round(0.1**numDecimals).asString; var num= str.size-str.indexOf($.)-1; ^str.extend(str.size+numDecima ...
-
... r congruential generator // as the server doesn't know integers, it's done with floats, // all is blurred by floating point inaccuracy // however interesting results can be obtained // different start values can produce different orbits // ...
-
... [A-Za-z0-9_]*", int: "(-[0-9]+|[0-9]+)", // http://www.regular-expressions.info/floatingpoint.html float: "[\\-+]?[0-9]*\\.?[0-9]+([eE][\\-+]?[0-9]+)?", spc: " " // space, tab, return ); ~statements = [ \clMake -> "^ *make\\*?\\(.*\\)", \cl ...
-
... des(guiObjects[objID][0][\kind]), { // value = guiObjects[objID][2].map(value.asFloat); //convert to float and map controlspec here and value = value.asFloat; }); // workaround for updating checkbox value... and possibly others? guiObjects[ ...
-
... ) // if calculation exceeds the int32 limit a warning is given, the result is a float lcmByFactors(135630546, 429496729) lcmByGcd(135630546, 429496729) // also more args can be passed (all are integers < 2 * 31), // as lcmByGcd uses gcd int ...
-
... ont_(staticTextFont) .action_({ |mb| tmp = mb.string; // string must be a valid float or integer if("^[0-9]*\.?[0-9]*$".matchRegexp(tmp), { widget.size.do({ |sl| widget.setSoftWithin(tmp.asFloat, sl); }) }) }) ; if(GUI.id !== \cocoa, { soft ...
-
... es that returns a valid arg. Defaults to the default TempoClock. quant - Quant, Float, nil or collection thereof used as quant data for playing streams. Also takes a Function of indices that returns a valid arg. Defaults to Quant.default (n ...