Last active
June 27, 2018 03:23
-
-
Save furenku/95e9c1da498f5b0180a4b72db6b58947 to your computer and use it in GitHub Desktop.
proxyspace
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
( | |
p = ProxySpace.push(s); | |
p[\unProxy] = { WhiteNoise.ar * 0.1 }; | |
Tdef(\secuencia, { | |
inf.do {|i| | |
[i,(i % 2),(i % 16)].postln; | |
switch( (i%2).asInteger , | |
0, { | |
"uno".postln; | |
p[\unProxy] = { LFTri.ar(130) }; | |
}, | |
1, { | |
"dos".postln; | |
p[\unProxy] = 0; | |
} | |
); | |
switch( (i%16).asInteger , | |
0, { | |
"lento uno".postln; | |
p[\otroProxy] = { LFTri.ar(60.midicps) }; | |
}, | |
4, { | |
"lento dos".postln; | |
p[\otroProxy] = { LFTri.ar(63.midicps) }; | |
}, | |
8, { | |
"lento tres".postln; | |
p[\otroProxy] = { LFTri.ar(67.midicps) }; | |
}, | |
12, { | |
"lento cuatro".postln; | |
p[\otroProxy] = { LFTri.ar(70.midicps) }; | |
} | |
); | |
switch( i.asInteger , | |
0, { | |
"inicio".postln; | |
p[\unProxy] = { LFTri.ar(130) }; | |
}, | |
6, { | |
"solo una vez sucede este evento, en el tiempo siete".postln; | |
p[\unProxy] = 0; | |
} | |
); | |
1.wait; | |
} | |
}); | |
Tdef(\secuencia).play(); | |
~out = p[\unProxy] + p[\otroProxy]; | |
~out.play; | |
) | |
~out = p[\otroProxy]; | |
p[\nuevoProxy] = { RLPF.ar( WhiteNoise.ar,330,0.05 ) }; | |
~out = p[\nuevoProxy]; | |
Tdef(\secuencia).stop(); | |
~out.fadeTime = 10; | |
~out=0; | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment