Last active
October 23, 2016 18:37
-
-
Save furenku/3fc0dd01c67be5a7089a2e72ee359997 to your computer and use it in GitHub Desktop.
synthdef factory agogo
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
| SynthDef(\test_1, {|freq=1,gate=1| | |
| var sig, env; | |
| sig = MoogFF.ar( WhiteNoise.ar(), 100+(freq*1000),3.75); | |
| env = Decay2.kr(Impulse.kr(freq*8), 1/100,1) * EnvGen.kr( Env.perc(2,2),gate,doneAction:2 ); | |
| Out.ar( 0, Pan2.ar( sig * env ) / 4 ); | |
| }).store; | |
| fork{ | |
| inf.do{ | |
| x = Synth(\test_1,[\freq,1.0.rand]); | |
| 3.wait; | |
| } | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
//////////
(
SynthDef(\test_sin, {|freq=1,gate=1|
}).store;
)
~test_sin = Synth(\test_sin)
/////////////////////
(
SynthDef(\test_blip, {|freq=1,gate=1|
}).store;
)
~test_blip = Synth(\test_blip)
/////////////////
(
SynthDef(\test_pulse, {|freq=1,gate=1|
}).store;
)
~test_pulse = Synth(\test_pulse)