Fun with oscillators and stereo

This commit is contained in:
Dan Buch 2015-10-21 12:45:15 -04:00
parent 5363647c27
commit 04b9173c3e

View File

@ -1,32 +1,16 @@
{ (
[ {
SinOsc.ar(440, 0, 0.2), var pitchOsc;
SinOsc.ar(442, 0, 0.2) var ampOsc;
] pitchOsc = { 300 + SinOsc.kr(20, 1.5pi, 300, 300); };
}.play; ampOsc = SinOsc.kr(0.1, 1.5pi, 0.5, 0.5);
[
SinOsc.ar(pitchOsc, 0, ampOsc),
SinOsc.ar(pitchOsc, 0, ampOsc)
];
}.play;
)
f = { (
"Function evaluated".postln; { [SinOsc.ar(440, 0, 0.2), SinOsc.ar(442, 0, 0.2)] }.play;
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;