-
... xample (see end of page for more): c = CallOnce { |flag| if(flag) { "woking...".postln; "done:" + flag } }; c.value(true); // -> done: true (and posts "woking...") c.value(false); // -> done: true (nothing posted) ⧉ ✔ Class Methods CallOnce ...
-
... at ascii Comparing strings compare < '>> <= ='>>= == != Fuzzy string comparison Posting strings post postln postc postcln postf postcs error warn inform Interpreting strings as code compile interpret interpretPrint Converting strings asComp ...
-
... ray[index].findevents(startpos, len); } trimevents {arg start, dur, input, pre, post, tempo; ^array[index].trimevents(start, dur, input, pre, post, tempo); } updateblock { arg block; index= (indexfunc.value(block, index).round(1.0).asIntege ...
-
... sition', { arg time, resp, msg; ("x"+this.la+"y"+this.lb+"orient"+this.lorient).postln; }).add ; } gostraight { var x = cos(lorient); var y = sin(lorient); var xnosign = abs(x); var ynosign = abs(y); var signx = x/xnosign; var signy = y/yno ...
-
/*+ Object { postll { arg level = 0; this.postln; } } + Collection { postll { arg level = 0; this.do { |item| String.fill(level, Char.tab).post; item.postll(level + 1) } } }*/
-
... t to. // 2. find out which midi interfaces are there: MKtl.find(\midi); // this posts the 2 ports of the Fireface: // Available MIDIMKtls: // MKtl('myNickName', 'lookupName'); // [ midi device, portname, uid] ... MKtl('midi_2_fireface_400__ ...
-
... ncoming messages k.elementsDict.size; // how many elements are there in total k.postElements; // see all elements k.elAt.action = { |el| [el.name, el.value.round(0.001), el.deviceValue].postcs }; // display all elements k.elAt.action = nil; ...
-
... a, b], 2) }); // a, b default to 0,1 x = Pn (a, inf ).asStream; 10.do { x.next.postln }; Post .nl; e = (a:100); 10.do { x.next(e).postln }; Post .nl; e = (a:100, b:200); 10.do { x.next(e).postln }; ) PlazyEnvir used to produce a Pbind: ( S ...
-
... ntents in long format l = p.getLine; // get the first line while({l.notNil}, {l.postln; l = p.getLine; }); // post until l = nil p.close; // close the pipe to avoid that nasty buildup ) A more time-intensive request: ( var p, l; p = Pipe .n ...
-
... he seconds since the log started and its source: // typed, menu, button, hidcmd posted on radpost (main document) // gui, hid, osc posted on radpostcont (post window) // code called directly from SuperCollider code // ide run by hand in the ...