{
   "id" : "1-57h",
   "is_private" : null,
   "code" : "(\r\nSynthDef(\\cowbell, {\r\n    | out=0, amp=0.3, gate=1, fund_freq=540, pan=0.0 |\r\n    var sig, env, hash;\r\n\r\n    // hash = DC.ar(0);\r\n    hash = BPF.ar(\r\n        Hasher.ar(Sweep.ar(rate: TRand.kr(1.0, 10.0))), \r\n        fund_freq * 1.4, \r\n        0.5,\r\n        2\r\n    ).tanh * Env.perc(0.001, 0.02).ar(0);\r\n    sig = Pulse.ar( fund_freq * [ 1, 1.5085 ], [ 0.565, 0.445 ], [ 0.4, 0.6 ] ).atan;\r\n    env = EnvGen.ar(\r\n            Env(\r\n                [ 0, 0.05, 1, 0.1, 0 ], [ 0.003, 0.002, 0.05, 0.5 ], [2, -4, -4, -4]\r\n            ),\r\n        gate: gate,\r\n        timeScale: [ 1.0, 1.5 ],\r\n        doneAction: 2\r\n        );\r\n    sig = Mix( (hash + sig) * env );\r\n    sig = BPF.ar( sig, fund_freq * 2, 1.808 );\r\n\r\n    Out.ar( out, Pan2.ar( sig, pan, amp ) );\r\n}).add;\r\n)\r\n\r\nSynth(\\cowbell);",
   "labels" : [
      "percussion",
      "code fork",
      "cowbell",
      "808"
   ],
   "ancestor_list" : [
      "1-525"
   ],
   "description" : "Now with a little more stick.",
   "author" : "p.dupuis",
   "name" : "Re: 808-ish Cowbell"
}
