1
0
Fork 0

cleaned up noisevember 1 (2020-11-03)

main
Luka Prinčič 2020-11-03 11:43:14 +01:00
parent c206e71fe9
commit 1f59b8ecd2
1 changed files with 12 additions and 13 deletions

View File

@ -1,17 +1,13 @@
(
var scale="something";
scale = Scale.zhi;
postln("chosen scale:" + scale.name);
var scale = Scale.zhi;
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);
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),
@ -19,15 +15,18 @@ postln("chosen scale:" + scale.name);
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
snd = Ringz.ar(
in:noise,
freq: freq,
decaytime: decaytime,
mul:0.015);
snd = snd.dup; // mono on both speakers.
snd; // lastline = what functions returns = output for .play
}.play;
}
)