{
   "author" : "rumush",
   "name" : "Semi-Random Glitch SynthDef",
   "ancestor_list" : [],
   "description" : "It is a simple SynthDef I made after having a look at Hasher UGen with a pattern to play it. It creates nice and varied glitch sounds.",
   "labels" : [
      "pattern",
      "glitch",
      "experimental",
      "random"
   ],
   "code" : "// For more SynthDefs and examples please head to: https://mycelialcordsblog.wordpress.com/ \r\n\r\n(\r\nSynthDef(\\hasherTest,\r\n{\r\narg rate = 1, freq = 60, index = 1000, tRate = 100,\r\nout = 0, fRate = 0.1;\r\n\r\nvar t_trig = LFPulse.kr(0.5/fRate, 0.5);\r\nvar random = LFNoise0.ar(rate, add:1);\r\nvar noise = Hasher.ar(random);\r\nvar sound = Saw.ar((freq+(noise*index)), Decay.kr(Impulse.kr(tRate), noise*0.001)).tanh;\r\nsound = Pan2.ar(sound, noise-0.3*2);\r\nFreeSelf.kr(t_trig);\r\nOut.ar(out, sound);\r\n}).store;\r\n)\r\n\r\n(\r\nPbind(\r\n\\instrument, \\hasherTest,\r\n\\dur, 5,\r\n\\rate, Pfuncn({100.rand}, inf),\r\n\\freq, Pfuncn({10000.rand}, inf),\r\n\\index, Pfuncn({20000.rand}, inf),\r\n\\tRate, Pfuncn({1000.rand}, inf),\r\n\\fRate, 5,\r\n).play;\r\n)",
   "id" : "1-50i",
   "is_private" : null
}
