diff --git a/sclang-play/tutorial.sc b/sclang-play/tutorial.sc new file mode 100644 index 0000000..9ecd6e7 --- /dev/null +++ b/sclang-play/tutorial.sc @@ -0,0 +1,32 @@ +{ + [ + SinOsc.ar(440, 0, 0.2), + SinOsc.ar(442, 0, 0.2) + ] +}.play; + +f = { + "Function evaluated".postln; + 2 + 3; +}; + +f.value; +f.value; +f.value; + +f = 3; +f.value; +f.value; + +f = { 3.0.rand; }; +f.value; + +f = { |a| a.value + 3 }; +f.value(4); + +g = { 3.0.rand; }; + +f.value(g); +f.value(g); + +f.value; \ No newline at end of file