diff --git a/sclang-play/tutorial.sc b/sclang-play/tutorial.sc index 787b4d2..d95c9fa 100644 --- a/sclang-play/tutorial.sc +++ b/sclang-play/tutorial.sc @@ -2,15 +2,32 @@ { var pitchOsc; var ampOsc; - pitchOsc = { 300 + SinOsc.kr(20, 1.5pi, 300, 300); }; - ampOsc = SinOsc.kr(0.1, 1.5pi, 0.5, 0.5); - [ - SinOsc.ar(pitchOsc, 0, ampOsc), - SinOsc.ar(pitchOsc, 0, ampOsc) - ]; + pitchOsc = { 300 + SinOsc.kr(0.1, 1.5pi, 20, 20); }; + ampOsc = SinOsc.kr(0.5, 1.5pi, 1.0, 1.0); + SinOsc.ar([pitchOsc, pitchOsc], 0, ampOsc); }.play; ) ( { [SinOsc.ar(440, 0, 0.2), SinOsc.ar(442, 0, 0.2)] }.play; ) + +( + { + var freq; + freq = [[600, 880], [400, 660], 1320, 880].choose; + SinOsc.ar(freq, 0, 0.2); + }.play; +) + +( + { + Pan2.ar(PinkNoise.ar(0.2), SinOsc.kr(0.5)); + }.play; +) + +( + { + Pan2.ar(PinkNoise.ar(0.2), -0.3); + }.play; +)