-
... c .ar(freq * Array.rand(12, 0.95, 1.05))) }); Ndef ( \test ).play(vol: 0.1); // example of softSet, softSet which knows lastVal, // softVol_ and softVol_ which knows lastVol: ( w = Window ( "softVol" , Rect (500, 200, 400, 240)).front; w.vi ...
-
... .iam.unibe.ch/~ducasse/FreeBooks/Art/artMissing186187Fix1.pdf) and Smalltalk by Example (http://www.iam.unibe.ch/~ducasse/FreeBooks/ByExample/). The SuperCollider documentation and numerous sites across the internet, such as the swiki at ht ...
-
... ted. So in this case we didn't really need the postln bit. But in the following example we would. Select both lines of text by clicking and dragging over them, and then press enter. "Hello World!" .postln; "Hello SC!" .postln; The first lin ...
-
... dur , 0.5)); x = a.asStream; 9.do({ x.next( Event .default).postln; }); ) sound example ( SynthDef ( \sinegrain , { arg out=0, freq=440, sustain=0.02; var env; env = EnvGen .kr( Env .perc(0.001, sustain), 1, doneAction:2); Out .ar(out, SinO ...
-
Char ascii characters Chars may be written as literals using the $ sign. For example $a, $b, $c. See section [01 Literals] Chars may be created from Integers using the Integer methods asAscii and asDigit. Conversion ascii answers the intege ...
-
... thing in the former will be added to the search path for help files. Here is an example folder layout: MyExtension/ classes/ myClass.sc myUGens.sc plugins/ myUGenPlugins.scx help/ myClass.html myUGen1.html myUGen2.html
-
... e stream, and the type of pattern determines how the data will be streamed. For example, we used this routine to output MIDI note numbers to play a couple of phrases from 'Over the Rainbow.' r = Routine ({ [60, 72, 71, 67, 69, 71, 72, 60, 6 ...
-
... ( \dur , 0.5)); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) sound example ( SynthDef ( \sinegrain , { arg out=0, freq=440, sustain=0.02; var env; env = EnvGen .kr( Env .perc(0.001, sustain), 1, doneAction:2); Out .ar(out, SinO ...
-
... ping on impact friction proximity from which on attraction to surface starts // examples // mouse x controls switch of level ( { var f, sf; sf = K2A .ar( MouseX .kr > 0.5) > 0; f = Ball .ar(sf, MouseY .kr(0.01, 20, 1), 0.01); f = f * 10 + 5 ...
-
... ( \dur , 0.5)); x = a.asStream; 9.do({ x.next( Event .new).postln; }); ) sound example ( SynthDef ( \sinegrain , { arg out=0, freq=440, sustain=0.02; var env; env = EnvGen .kr( Env .perc(0.001, sustain), 1, doneAction:2); Out .ar(out, SinO ...