{
   "labels" : [
      "cover",
      "bassline",
      "reverse engineering",
      "tune"
   ],
   "code" : "/* An approach to try to reproduce the 'famous' bassline of \"Der Mussolini\" by D.A.F. */\r\n\r\n// very bad simulated analogue distorted bass synth\r\n// too distorted compared to the original...\r\n\r\nSynthDef(\\daf_bass,{ |out, freq=440, sustain=1, gate=1, amp=0.1|\r\n\tvar snd, env, fenv, harm;\r\n\tharm = [1,1.01,2,2.02,3.5,4.01,5.501];\r\n\tharm = harm ++ (harm*2);\r\n\tsnd = SinOsc.ar(freq*harm).sum.distort * 2;\r\n\tsnd = snd + SinOsc.ar(freq / [1, 2]).sum!2;\r\n\tenv = EnvGen.kr(Env.adsr(0.001,0.2,0.9,0.25), gate, amp, doneAction:2);\r\n\tsnd = snd * env;\r\n\tOffsetOut.ar(out, (snd!2));\r\n}).add;\r\n\r\n// approx 63 bpm\r\nTempoClock.default.tempo = 63/60;\r\n\r\n// approx bass pattern + modulation of Mussolini bassline\r\nPdef(\\daf_bass,\r\n\tPbind(\r\n\t\t\\instrument, \\daf_bass,\r\n\t\t\\scale, Scale.minor,\r\n\t\t\\octave, [3], // try out [2,3] or [3,4] for octave bass leetness\r\n\t\t\\ctranspose,Pseq([\r\n\t\t\tPn(-1,16*4),\r\n\t\t\tPn(1,16*2)\r\n\t\t], inf),\r\n\t\t// -1 for thinking in musical degrees...\r\n\t\t\\degree, Pseq([1, 4, 1, 10, 1, 8, 1, 1, 8, 1, 8, 1, 8, 7, 1, 8]-1,inf),\r\n\t\t\\legato, Pwhite(0.75, 0.8),\r\n\t\t\\dur, 0.2\r\n\t)\r\n).play;\r\n\r\n// link: http://www.youtube.com/watch?v=15ScQivK5DY",
   "id" : "1-J",
   "is_private" : null,
   "name" : "Der Mussolini (bassline cover)",
   "author" : "rukano",
   "ancestor_list" : [],
   "description" : "An approach to try to reproduce the 'famous' bassline of \"Der Mussolini\" by D.A.F."
}
