-
... t it //so that I would be sure of the instantiation of the AlgaNode sender. /* +Symbol { ar { | val, lag, spec | if((val.isAlgaNode).or(val.isAlgaArg), { if(AlgaProxySpace.isTriggerDef.not, { ^NamedControl.ar(this, 0, lag, spec); }, { AlgaP ...
-
... C {|json, customDecoder=nil, 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.ne ...
-
... { loaded = false; } } } + Ndef { *new { | key, object | // key may be simply a symbol, or an association of a symbol and a server name var res, server, dict; if(key.isKindOf(Association)) { server = Server.named.at(key.value); if(server.is ...
-
... mpleNumber { asNote { ^if(this < 128) {Note(midi:this)} {Note(freq:this)} } } + Symbol { asNote { |cents| ^Note(this.asString, cents:cents) } } + Array { asNote { |cents| ^this.collect({ |item| item.asNote(cents) }); } }
-
+ Symbol { uEnvirPut { |value, spec| var default; value = value.value; if( value.isArray && { spec.notNil } ) { spec = spec.massEditSpec( value ).default_( { spec.default }!(value.size) ); }; currentEnvironment.put( this, value ); if( spec. ...
-
... tem| item.isNumber; })[0] } getUnits { |default| // return text after number as symbol ( " 100px " -> 'px' ) var out; out = this.trim.splitNumbers[1]; if( out.notNil ) { ^out.trim.asSymbol } { ^default }; } asSVGTransform { ^SVGTransform( t ...
-
+ Object { encodeForOSC { ^this.asCompileString.asSymbol } decodeFromOSC { ^this } } + SimpleNumber { encodeForOSC { ^this } } + RawArray { encodeForOSC { ^this // this is a trick. the dispatcher sends the array flat. // currently, sc canno ...
-
... ass method: *init intialise the buffers for convolution Parameter setup: a key (symbol) to the decoding scheme server: the server doneAction: the Action to be evaluated when the buffers are loaded and ready */ *init { arg setup = '1_4_7_4', ...
-
... = "trigger", { ^4; }); reportError("rateNumber: unknown rate: " ++ this); } } + Symbol { rateNumber { ^this.asString.rateNumber; } }
-
... by the list this.pr_makeAction; // the action performed by the list when not as symbol->function association globalAction={}; argItems.do{|item| this.prAddItem(item); }; } makeButton{|parent, bounds, name,showArrow| var btnClass="Button", r ...