rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/supercollider
2019-10-21 10:18:17 +02:00

12 lines
337 B
Plaintext

// modulate a sine frequency and a noise amplitude with another sine
// whose frequency depends on the horizontal mouse pointer position
~myFunction = {
var x = SinOsc.ar(MouseX.kr(1, 100));
SinOsc.ar(300 * x + 800, 0, 0.1)
+
PinkNoise.ar(0.1 * x + 0.1)
};
~myFunction.play;
"that's all, folks!".postln;