-
... , 900); index = IndexInBetween .kr(bufnum, f0); f1 = IndexL .kr(bufnum, index); SinOsc .ar([f0, f1]) * 0.1 }.play; ) b.free; // One way to map across from an arbitrary piecewise curve, onto another: // We use IndexInBetween to "unmap" your ...
-
... a mouse var x, y; x = Mix .fill(4, { LFSaw .ar(200 + 2.0.rand2, 0, 0.1) }); y = SinOsc .ar(900) * LFPulse .kr(3,0,0.3,0.2); #x, y = Rotate2 .ar(x, y, MouseX .kr(0,2)); [x,y] }.play; // Rotate B-format about Z axis: wout = win; zout = zin; # ...
-
... xample Server.default = s = Server.internal; s.boot; s.scope(16); { Out .ar(87, SinOsc .ar( MouseX .kr(40, 10000, 1) * [1, 2, 3], 0, 0.2)) }.play; x = Monitor .new; x.play(87, 3, 1, 2); x.out = 0; x.stop(3.0); x.play(87, 1, 0, 1); // in > o ...
-
... ffset, doneAction:2); env = EnvGen .kr( Env .perc(attack, sustain, 0.2)); sig = SinOsc .ar(freq, 0, env); sig = DelayC .ar(sig, sd * 4, offset); OffsetOut .ar(out, sig); }, [ \ir , \ir , \ir , \ir ]).send(s); ) ( Routine { loop { s.sendBund ...
-
... Def ( \Docs_FreqMonitor , { var freq,snd; freq= LFNoise0 .ar(2, 400, 650); snd= SinOsc .ar(freq,0,0.2); Out .ar(0,snd); Out .kr(b.index,freq); // output the frequency to a control bus }).play; r= Routine { { // Set the value of the StaticTe ...
-
... .perc(0.03, sustain), 1, doneAction:2); 5.do { var d; d = exprand(0.01, 1); u = SinOsc .ar(d * 300, u, rrand(0.1,1.2) * d, 1) }; Out .ar(out, Pan2 .ar( SinOsc .ar(u + 1 * freq, 0, amp * env), pan)); }).store; s.boot; ) ( Pdefn ( \deg , Pseq ...
-
... v; env = EnvGen .kr( Env .perc(0.01, sustain, 0.2), doneAction:2); Out .ar(out, SinOsc .ar(freq, 0, env)) }).add; ) ( var a; a = Pbeta (0.0, 1.0, 0.1, 0.1, inf ).asStream; { loop { Synth ( \help_sinegrain , [ \freq , a.next * 600 + 300]); 0 ...
-
... l; s.boot; triggerID = 1; aSynth = { arg freq = 1, triggerID = 1; SendTrig .kr( SinOsc .kr(freq), triggerID, 666); }.play; nodeID = aSynth.nodeID; commandpath = [ '/tr' , nodeID, triggerID]; response = { arg time, responder, message; messag ...
-
... LFSaw .kr([8,7.23], 0, 3, 80)).midicps; // glissando function zout = CombN .ar( SinOsc .ar(f, 0, 0.04), 0.2, 0.2, 4); // echoing sine wave Out .ar(0, zout); }).send(s); // this will record to the disk SynthDef ( "help-Diskout" , { arg bufnu ...
-
... -Help. In general, there are help files for classes (capitalized words, such as SinOsc, Array, Nil, etc.). Select the name of a class and press Cmd-d. A help file, if one exists, will open. ////////////////////////////////////////////////// ...