-
... -1) * 22.05; },{ kfreq = i * factor * 22.05; }); if(kfreq > 1.0, { freqLabel[i].string_( kfreq.asString.keep(4) ++ "k" ) },{ freqLabel[i].string_( (kfreq*1000).asInteger.asString) }); }); }; setDBLabelVals = { arg db; dbLabel.size.do({ arg ...
-
... .newCopyArgs(path, options).init; } init { if (path.isNil, { this.popUpWarning( string: "Would you like to open or create a project?", action1: { this.initDialog(0) }, action2: { this.initDialog(1) }, text1: "Open", text2: "Create") }, { ca ...
-
... il, useEvent=true, postWarnings=true| if(json.isKindOf(Symbol)) { json = json.asString; }; if(json.isKindOf(String).not) { Error("Can only parse a String to JSON but received %".format(json.class)).throw }; ^this.new( postWarnings, customDe ...
-
... jectName, key; ^objects.at(name) ?? { if(lookup) { #objectName ... key = name.asString.split($_); object = objects.at(objectName.asSymbol); if(object.isNil) { ^nil }; object.at(key.join($_).asSymbol); } } } // name, selector, args ... *oscP ...
-
... cond.wait; }; action.(ndefArr); }.fork; } *remove {arg block=1; var blockIndex, string; blockIndex = block - 1; if((block >= 1).and(block <= blocks.size), { string = (ndefs[blockIndex].cs ++ ".clear;"); string.radcode; ndefs.removeAt(blockI ...
-
... ue.at(0).at(box)); synthsList.at(i).set(\trigRate, myvar, \dur, myvar2); xfield.string_("grainDur"); yfield.string_("trigRate"); if(i == 0, { paraDict1.add(\trigRate -> myvar); paraDict1.add(\dur -> myvar2); }, { paraDict2.add(\trigRate -> ...
-
... gs(cactus).init; } init { templatesDir = CactusTemplateManager.filenameSymbol.asString.dirname; templatesDir = templatesDir ++ "/templates/" } runTemplate { arg templateName, options = (); var path; path = PathName.new(templatesDir ++ templ ...
-
... wBounds.top) { y = windowBounds.top; }; //value = funcParam.value(view.value).asString("%.2f"); this.showTooltip(x, y); } makeText { if (makeTextFunc.notNil) {^makeTextFunc.()} { var value = funcParam.value(view.value).asString("%.2f"); ^(p ...
-
... 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+numDecimals-num, $ ...
-
... (e.g. [nodejs]) and in a web browser. ipaddr.js allows you to verify and parse string representation of an IP address, match it against a CIDR range or range list, determine if it falls into some reserved ranges (examples include loopback ...