-
... y's keycode // the char and keycode of any key you press will be printed in the post window ( w = SCWindow .new( "I catch keystrokes" ); w.view.keyDownAction = { arg view, char, modifiers, unicode, keycode; [char, keycode].postln; }; w.fron ...
-
... ad 1> now I am doing something for 10 seconds. Block the semaphore meanwhile." .postln; 10.wait; c.signal; "thread 1> ok, done. Release the semaphore." .postln; }; fork { 3.0.rand.wait; "thread 2> I would like to go on, if I may." .postln; ...
-
... syntax or grammar errors are found, SuperCollider writes a notification to the post window. Such messages are descriptive but terse. • ERROR: Parse error in file 'selected text' line 1 char 2 : 4,• ----------------------------------- • ERR ...
-
... osed groups, but do not free this group or any of its enclosed groups. dumpTree(postControls) Post a representation of this group's node subtree. (Sends a message of the type g_dumpTree .) If postControls is true, then the current Control ( ...
-
... s follows: o = OSCresponderNode (myServer.addr, '/tr' , { |time, resp, msg| msg.postln }).add; Each line of output is an array with four values: ['/tr', defNode, id (from SendTrig), value (from SendTrig)]. { var freq; freq = LFNoise1 .kr(2, ...
-
... (2) .collect { |a| (a[0].squared + a[1].squared)} .collect { |a| if(a.isNaN){ 0.post }{ a } } .plot(parent: w) }.defer}); }}.play; )
-
... rceCode Get the source code string. { |a = 9, b = 10, c| a + b }.def.sourceCode.postcs; context Get the enclosing FunctionDef or Method. findReferences(aSymbol) return a list of all references to a given symbol. argNames Get the Array of Sy ...
-
... or an array of arrays of channels down to a single array of channels. Watch the post window to see Mix's results. // one channel { Mix .new([ SinOsc .ar(440, 0, 0.2), Saw .ar(660, 0.2)]).postln }.play; // combine two stereo arrays ( { var a ...
-
... or example, random values will result in a single instance: a = Thunk ({ \done .postln; rrand(2.0, 8.0) }); a.value; // posts "done" a.value; // it is an AbstractFunction, so one can use it for math operations: a = Thunk ({ rrand(2.0, 8.0) ...
-
... examples { Duty .kr(0.5, 0, Dpoll ( Dseries (0, 1, inf ) * 2)); 0.0 }.play; // posts only when cursor is in right half of the screen { Duty .kr(0.5, 0, Dpoll ( Dseries (0, 1, inf ) * 2, run: MouseX .kr > 0.5)); 0.0 }.play; // label { LFPul ...