| 1 | <h2>Full Example</h2> |
| 2 | <pre><code>// Source: https://supercollider.github.io/ |
| 3 | // modulate a sine frequency and a noise amplitude with another sine |
| 4 | // whose frequency depends on the horizontal mouse pointer position |
| 5 | { |
| 6 | var x = SinOsc.ar(MouseX.kr(1, 100)); |
| 7 | SinOsc.ar(300 * x + 800, 0, 0.1) |
| 8 | + |
| 9 | PinkNoise.ar(0.1 * x + 0.1) |
| 10 | }.play; |
| 11 | </code></pre> |