diff --git a/sclang-play/tutorial.sc b/sclang-play/tutorial.sc index d95c9fa..083b8b5 100644 --- a/sclang-play/tutorial.sc +++ b/sclang-play/tutorial.sc @@ -31,3 +31,45 @@ Pan2.ar(PinkNoise.ar(0.2), -0.3); }.play; ) + +( + { + PinkNoise.ar(0.2) + SinOsc.ar([440, 442], 0, 0.2) + Saw.ar([660, 662], 0.2); + }.play; +) + +( + { + var a, b; + a = [ + SinOsc.ar(440, 0, 0.2), + Saw.ar(662, 0.2) + ]; + b = [ + SinOsc.ar(442, 0, 0.2), + Saw.ar(660, 0.2) + ]; + + Mix([a, b]).postln; + }.play; +) + +( + var n = 8; + { + Mix.fill(n, { SinOsc.ar([220, 500 + 500.0.rand], 0, 1 / n) }); + }.play; +) + +( + var n = 8; + { + Mix.fill(n, { |index| + var freq; + index.postln; + freq = 440 + index; + freq.postln; + SinOsc.ar(freq, 0, 1 / n) + }); + }.play; +)