{
   "code" : "// Rumush\r\n// YouTube: https://www.youtube.com/channel/UCs_Cn1R4iFrYOyc8liFucSQ\r\n// Facebook: https://www.facebook.com/rumushproduction\r\n// SoundCloud: https://soundcloud.com/rumushproduction\r\n// Blog: https://mycelialcordsblog.wordpress.com/\r\n\r\n(\r\nSynthDef(\\chaosGlitch2, {\r\n\targ len = 10, fundFreq = 40, henA = 2, henB = 0.4, t = 1, gate = 1;\r\n\tvar mainEnv = EnvGen.kr(Env.triangle(len,1), gate, doneAction:2);\r\n\tvar speed = Array.geom(4, t, [1.75, 1.25].choose);\r\n\tvar freq = Array.geom(8, fundFreq*2, 1.5);\r\n\tvar pulse = {|rat1,rat2|LFPulse.ar(rat1, [0,0.5,1].choose)*LFPulse.ar(rat2)};\r\n\tvar a = Lag.ar(HenonN.ar(\r\n\t\tspeed.choose*(mainEnv*10000.rand),\r\n\t\thenA, henB,\r\n\t), 0.01);\r\n\tvar bass = SinOsc.ar(fundFreq!2*(a*1.0.rand), 0, Lag.ar(pulse.(t, speed.choose), 0.001));\r\n\tvar tone1 = SinOsc.ar([(fundFreq+Rand(0,5))*a,(fundFreq+Rand(0,5))*a], 0, 0.01*pulse.(speed.choose, speed.choose));\r\n\tvar tone2 = Pan2.ar(SinOsc.ar(freq.choose*a, 0, 0.1*pulse.(speed.choose, t)), a);\r\n\tvar tone3 = SinOsc.ar([freq.choose,freq.choose*a], 0, 0.05*pulse.(speed.choose, t))*mainEnv.round(0.25);\r\n\tvar noise = Pan2.ar(PinkNoise.ar(a*0.1*pulse.(t,t)), a);\r\n\tvar impulse = RLPF.ar(Impulse.ar(pulse.(t, speed.choose), a), freq.choose+(a*10), 0.01, 0.1).tanh;\r\n\r\n\tOut.ar(0, (bass+tone1+tone2+tone3+noise+impulse).tanh);\r\n\t}\r\n).store;\r\n)\r\n\r\n(\r\nPbind(\r\n\t\\instrument, \\chaosGlitch2,\r\n\t\\dur, 10,\r\n\t\\len, Pseq([1, 1.5, 1.75, 2]+10,inf),\r\n\t\\henA, Pseq([2, 1.3, 1.29, 1.25], inf),\r\n\t\\henB, Pseq([0.2, 0.3], inf),\r\n\t\\t, Pseq([2, 4, 2, 6], inf),\r\n\t\\fundFreq, Pseq([40, 600, 8000, 200, 600, 6000], inf),\r\n).play\r\n)",
   "id" : "1-50l",
   "is_private" : null,
   "labels" : [
      "noise",
      "fm",
      "glitch",
      "experimental",
      "chaos"
   ],
   "description" : "Another glitch SynthDef with a simple pattern to play it. You can achieve variety of textures with it. From simple tones to noise and wicked basses. Have fun :)",
   "ancestor_list" : [],
   "author" : "rumush",
   "name" : "Chaos Glitch SynthDef"
}
