Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- // Añadir primero el SynthDef y luego ejecutar todo el código.
- (
- SynthDef.new(\rebote, {
- arg pan=0, out=0;
- var sig, env;
- env = EnvGen.ar(Env.new([1, 0], 6, -2), doneAction: 2);
- sig = Impulse.ar(XLine.ar(1, 20, 6)) * env;
- sig = DynKlank.ar(`[{rrand(200, 8000)}!8, {rrand(0.04, 0.20)}!8, {rrand(0.0625, 0.5)}!8], sig);
- sig = Pan2.ar(sig, pan);
- Out.ar(out, sig);
- }).add;
- Synth.new(\rebote);
- )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement