-
... o the stream A common usage is with the Post class, to write output to the post window. Post << "Here is a random number: " << 20.rand << ".\n" ; Here is a random number: 13. stream <<* collection add each item of the collection to the stre ...
-
... ples in this file, use the "stop" keyboard shortcut (cmd-. on Mac OSX, alt-. on Windows, check documentation for other editors). Or: p.stop; A variation, Pslide , plays overlapping segments of the input list. Pslide(list, repeats, len, step ...
-
... l this information at our fingertips before loading the file. // watch the post window b = Buffer .read(s, "sounds/a11wlk01.wav" ); b.bufnum; b.numFrames; b.numChannels; b.sampleRate; b.free; Now (like with the example using an action funct ...
-
... se. You can test for this using '==='. Execute the following and watch the post window. "a String" === "a String" ; // this will post false \aSymbol === 'aSymbol' ; // this will post true In general in methods which communicate with the ser ...
-
... Synth .after(y, "bubbles" ,[ "out" ,0]); y.free; r.free; // look at the Server window // still see 4 Ugens and 1 synth? // you can't hear me, but don't forget to free me t.free;
-
... gned to the interpreter variable s. // execute the following and watch the post window s === Server .default; s === Server .local; Server .default = Server .internal; s === Server .default; Server .default = Server .local; // return it to t ...
-
... eger returns an integer between -1 (white) and 255 (black). hash Examples ( w = Window .new.front; w.view.background_( Color .white); w.drawHook = { // set the Color Pen .translate(200, 200); 30.do{ Pen .width = 3.0.rand; Color .blue(rrand( ...
-
... se. New values will be looked up in the event. // Visualize Brownian motion w = Window ( "Brownian motion" , Rect (10, 100, 500, 50)); x = Slider (w, Rect (10, 15, 480, 20)); w.front; p = Pbind ( \type , \setProperties , \receiver , x, // t ...
-
... n arguments: numChannels, trigger, dur, freq, pan, envbufnum ( // using default window { var trigrate, winsize, trig; trigrate = MouseX .kr(2, 120); winsize = trigrate.reciprocal; trig = Impulse .ar(trigrate); GrainSin .ar(2, trig, winsize, ...
-
... posting int - mode Turn on or off error messages sent to the SuperCollider post window. Useful when sending a message, such as /n_free, whose failure does not necessarily indicate anything wrong. The values for mode are as follows: 0 = turn ...