From 71ce3212558c97d2e47646870ded9aa2b651fe16 Mon Sep 17 00:00:00 2001 From: Pete Shadbolt Date: Mon, 3 May 2021 13:55:22 -0700 Subject: [PATCH] Mucking about with sound --- audio.scd | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/audio.scd b/audio.scd index 57c4791..e63ac3b 100644 --- a/audio.scd +++ b/audio.scd @@ -9,8 +9,13 @@ s.waitForBoot { OSCFunc.trace(true); // Create the synth definition and load it - module = SynthDef.new("module", { arg hue, saturation, value; - Out.ar(0, SinOsc.ar(MouseX.kr(220, 1000))); + module = SynthDef.new("module", { + arg hue, saturation, value; + var oscillator, noise, filter; + oscillator = SinOsc.ar(MouseX.kr(220, 1000)); + noise = WhiteNoise.ar(0.5); + filter = BPF.ar(noise, MouseX.kr(220, 1000), 0.3); + Out.ar(0, filter); }); module.load(s);