Guest User

Untitled

a guest
Mar 9th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TempoClock.default.tempo = 1;
  2.  
  3. SynthDef(\fmbass, { |out, amp=0.1, freq=440, index=1, modratio=2, attack=0.0001, sustain=0.01|
  4.     var snd, mod;
  5.     mod = freq + SinOsc.ar(freq/(modratio*Rand(0.99, 1.01)), 0, Line.ar(index, 0, sustain));
  6.     snd = SinOsc.ar(mod);
  7.     snd = snd * PinkNoise.ar(0.02,1);
  8.     snd = snd * EnvGen.ar(Env.perc(attack,sustain), doneAction:2);
  9.     OffsetOut.ar(out, snd*amp!2);
  10. }).add;
  11.  
  12. Pdef(\bass, Pbind(
  13.     \octave, 4,
  14.     \index, Pseq(100.partition(8) * 25, inf),
  15.     \modratio, Pstutter(8*4, Pxrand([1,1.5,2,3,4], inf)),
  16.     \instrument, \fmbass,
  17.     \sustain, 0.25,
  18.     \amp, 0.25,
  19.     \dur, Pseq([1]/8, inf)
  20. )).play;
Add Comment
Please, Sign In to add comment