1
0
Fork 0

updates i don't know

main
Luka Prinčič 2020-11-10 22:59:08 +01:00
parent 17a84de2b3
commit 628b736716
2 changed files with 10 additions and 3 deletions

View File

@ -28,3 +28,6 @@ e = Pbind(
).play(quant:1); // returns an EventStream
TempoClock.default.tempo = 1200/60;
)
e.stop;

View File

@ -1,14 +1,17 @@
(
x = {
arg gate=1;
var sum, snd0, snd1, snd2, env, gen, faderosc;
var sum, snd0, snd1, snd2, env, gen, faderosc, numosc;
numosc = 10;
env = Env.adsr(20, 0, 1, 30, 1, \sin);
gen = EnvGen.kr(env, gate, doneAction:2);
faderosc = SinOsc.ar(1/60).range(-1,2).min(1).max(0);
snd0 = Array.fill(10, {
snd0 = Array.fill(numosc, {
var freq, local;
freq = [100,150,300,400] * 0.5;
local = Saw.ar(rrand(freq, freq * 1.03 ) * LFNoise1.kr(0.3).range(1, 1.03), -10.dbamp);
@ -19,7 +22,7 @@ x = {
snd0 = LPF.ar(snd0, LFNoise1.ar(0.06).exprange(300,10000));
snd0 = CombL.ar(snd0, 1, LFNoise1.ar(0.05).range([0.5,0.65],[0.53,0.68]), 15, -1.dbamp) + snd0;
snd1 = Array.fill(10, {
snd1 = Array.fill(numosc, {
var freq, local;
freq = [100,150,300,400] * 0.8;
local = Saw.ar(rrand(freq, freq * 1.03 ) * LFNoise1.kr(0.3).range(1, 1.03), -10.dbamp);
@ -40,3 +43,4 @@ x = {
)
x.set(\gate,0); // fadeout