Advertisement
Guest User

Emmaus

a guest
Jul 24th, 2019
177
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. s.record;
  2. s.stopRecording;
  3.  
  4. ~synth = ~firstChord.play;
  5.  
  6. (
  7. t = TempoClock(40/60);
  8. {
  9. ~synth.play(t);
  10. }.fork(t);
  11. )
  12.  
  13. (
  14. SynthDef("emmaus", {arg freq = 60, amp = 0.9, gate = 1, wowrelease = 5;
  15. var chorus, source, filtermod, env, snd;
  16. chorus = Lag.kr(freq, 2) * LFNoise2.kr([0.4, 0.5, 0.7, 1, 2, 5]).range
  17. (1, 1.02);
  18. source = LFSaw.ar(chorus) * 0.9;
  19. filtermod = SinOsc.kr(1/32).range(1, 5);
  20. env = Env.asr(1, amp, wowrelease).kr(2, gate);
  21. snd = LPF.ar(in: source, freq: freq * filtermod, mul: env);
  22. Out.ar(0, Splay.ar(snd))
  23. }).add;
  24. )
  25.  
  26. (
  27. var myDurs = Pseq([Pn(1/16, 7), 3, Pn(1/4, 3), 3, Pn(1, 6), 4, 4, 3, 4, 3], inf) * 0.4;
  28. ~firstChord = Pbind(
  29. \instrument, "emmaus",
  30. \scale, Pstutter(8, Pseq([Scale.lydian], inf)),
  31. \degree, Prand((0..9), inf),
  32. \dur, myDurs,
  33. \amp, Prand((0.3..0.7), inf),
  34. \wowrelease, 3,
  35. \legato, 0.01
  36. );
  37. )
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement