Goofing around with SuperCollider

This commit is contained in:
Dan Buch 2015-10-21 12:22:19 -04:00
parent bf0c2523d5
commit 5363647c27

32
sclang-play/tutorial.sc Normal file
View File

@ -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;