-
... erwrite, ask, mode ) File .checkDo( "~/Desktop/testFile.txt" , { |file| file.putString( "test" ); } ); If you run this line for the second time the following SCAlert dialog will appear: cancel : the file wil not be written and the function ...
-
... h a copy of the SynthDef code and the pattern demo. Arguments: synth (symbol or string) the name of a SynthDef in the collection. . gui Opens the Graphical User Interface to browse and audition the collection. If SynthDefs and Patterns have ...
-
... env*amp); Out.ar(outbus, Pan2.ar(sine, pan)); }).play(Server.default)}.asCompileString; oscResponder = OSCresponderNode(s.addr,'/tr',{ arg thistime, responder, msg; if(msg[2] == 840, { if(freqAnalysisFlag, { // analysing sound fftOnsets.add ...
-
JSON { classvar <tab, <nl; *initClass { tab = [$\\, $\\, $t].as(String); nl = [$\\, $\\, $n].as(String); } *stringify { arg obj; var out; if(obj.isString, { ^obj.asCompileString.reject(_.isControl).replace("\n", JSON.nl).replace("\t", JSON. ...
-
... Accessing Instance and Class Variables items items_ (array) array - An Array of String s or Symbol s, which make up the items in the pop up menu. The underlying OS X graphics system gives special meanings to some characters. e.g. : - is a d ...
-
... ().orientation_(\horizontal).canFocus_(false) ), HLayout( atkText= StaticText().string_("atk:"), atkNumber= NumberBox().clipLo_(0).fixedWidth_(55), relText= StaticText().string_("rel:"), relNumber= NumberBox().clipLo_(0).fixedWidth_(55), ra ...
-
... Labels { *read { |labelPath| ^this.new.read(labelPath) } read { |labelPath| var string = File.use(labelPath, "r", { |file| file.readAllString }); this.parseAndAddLabels(string, labelPath); } parseAndAddLabels { |string, labelPath| var zeile ...
-
+ Function { // generates a truth table string for n-ary boolean function // e. g. { |a, b, c| a and: b xor: c }.truthTable truthTable { var numArgs = this.def.argNames.size; var res = "", fstr = "%\t".dup(numArgs + 1).join ++ "\n"; [true, ...
-
... lume_label = StaticText( volume_slider, Rect( 25, 165, 28, 28 )); volume_label.string_("a"); volume_label.font_(font); volume_label.stringColor_(Color(1,1,1,0.75)); // Lifetime Slider lifetime_slider = UserView( win, Rect( 55, 5, 45, ...
-
... ation: NOT INSTALLED! See also: miSCellaneous , Psym , PLx and live coding with Strings Description This adapts an idea of James Harkins' PnNilSafe (ddwPatterns quark) for Psym. If all patterns in the Dictinonary return nil, then Psym's emb ...