cleaned up noisevember 1 (2020-11-03)
parent
c206e71fe9
commit
1f59b8ecd2
|
@ -1,17 +1,13 @@
|
||||||
(
|
(
|
||||||
|
var scale = Scale.zhi;
|
||||||
var scale="something";
|
|
||||||
scale = Scale.zhi;
|
|
||||||
postln("chosen scale:" + scale.name);
|
|
||||||
|
|
||||||
10.do{ arg i;
|
10.do{ arg i;
|
||||||
//postln("creating iteration: " + i);
|
|
||||||
{
|
{
|
||||||
var snd, trig, freq, decaytime, envspec, env, noise;
|
var snd, trig, freq, decaytime, envspec, env, noise;
|
||||||
|
|
||||||
|
trig = Impulse.ar(
|
||||||
//trig = Impulse.ar(freq: (1..10).choose * 0.083);
|
freq: i * 0.083 * rrand(0.8, 1.2),
|
||||||
trig = Impulse.ar(freq: i * 0.083 * rrand(0.8, 1.2), phase: 100.rand*0.01);
|
phase: 100.rand*0.01);
|
||||||
envspec = Env.perc(
|
envspec = Env.perc(
|
||||||
attackTime: 0.001,
|
attackTime: 0.001,
|
||||||
releaseTime: rrand(0.001, 0.1),
|
releaseTime: rrand(0.001, 0.1),
|
||||||
|
@ -19,15 +15,18 @@ postln("chosen scale:" + scale.name);
|
||||||
env = EnvGen.ar(
|
env = EnvGen.ar(
|
||||||
envelope: envspec,
|
envelope: envspec,
|
||||||
gate: trig);
|
gate: trig);
|
||||||
|
|
||||||
noise = BrownNoise.ar * env;
|
noise = BrownNoise.ar * env;
|
||||||
|
|
||||||
//freq = (Scale.minor.degrees+60).choose.midicps;
|
|
||||||
freq = (scale.degrees+60).choose.midicps * [0.5,1,2].choose;
|
freq = (scale.degrees+60).choose.midicps * [0.5,1,2].choose;
|
||||||
decaytime = rrand(0.01,2);
|
decaytime = rrand(0.01,2);
|
||||||
snd = Ringz.ar(noise, freq, decaytime, mul:0.015);
|
snd = Ringz.ar(
|
||||||
snd = snd.dup;
|
in:noise,
|
||||||
//Limiter.ar(snd); // lastline = what functions returns = output for .play
|
freq: freq,
|
||||||
|
decaytime: decaytime,
|
||||||
|
mul:0.015);
|
||||||
|
snd = snd.dup; // mono on both speakers.
|
||||||
|
snd; // lastline = what functions returns = output for .play
|
||||||
}.play;
|
}.play;
|
||||||
|
|
||||||
}
|
}
|
||||||
)
|
)
|
Loading…
Reference in New Issue