rf-web/vendor/bundle/gems/rouge-3.12.0/lib/rouge/demos/supercollider

12 lines
337 B
Plaintext
Raw Normal View History

2019-10-21 08:18:17 +00:00
// 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;