From c206e71fe9830b3157c87ab047ce089df252e71a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Luka=20Prin=C4=8Di=C4=8D?= Date: Tue, 3 Nov 2020 11:04:40 +0100 Subject: [PATCH] adding new snippet 2020-11-03 --- ...evember_simple_10iteration_scale_ringz.scd | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 2020-11-03_noisevember_simple_10iteration_scale_ringz.scd diff --git a/2020-11-03_noisevember_simple_10iteration_scale_ringz.scd b/2020-11-03_noisevember_simple_10iteration_scale_ringz.scd new file mode 100644 index 0000000..e45d4c5 --- /dev/null +++ b/2020-11-03_noisevember_simple_10iteration_scale_ringz.scd @@ -0,0 +1,33 @@ +( + +var scale="something"; +scale = Scale.zhi; +postln("chosen scale:" + scale.name); + +10.do{ arg i; + //postln("creating iteration: " + i); + { + var snd, trig, freq, decaytime, envspec, env, noise; + + + //trig = Impulse.ar(freq: (1..10).choose * 0.083); + trig = Impulse.ar(freq: i * 0.083 * rrand(0.8, 1.2), phase: 100.rand*0.01); + envspec = Env.perc( + attackTime: 0.001, + releaseTime: rrand(0.001, 0.1), + level: LFNoise0.ar(100).range(0,1)); + env = EnvGen.ar( + envelope: envspec, + gate: trig); + noise = BrownNoise.ar * env; + + //freq = (Scale.minor.degrees+60).choose.midicps; + freq = (scale.degrees+60).choose.midicps * [0.5,1,2].choose; + decaytime = rrand(0.01,2); + snd = Ringz.ar(noise, freq, decaytime, mul:0.015); + snd = snd.dup; + //Limiter.ar(snd); // lastline = what functions returns = output for .play + }.play; + +} +) \ No newline at end of file