{
   "name" : "tired pads",
   "author" : "xffff",
   "ancestor_list" : [],
   "description" : "knackered",
   "labels" : [
      "ambient",
      "pads",
      "dynklank",
      "subtractive",
      "synthesis",
      "pinknoise"
   ],
   "is_private" : null,
   "id" : "1-4Qz",
   "code" : "// this is what I write when I didn't sleep last night.. zzzzzz\r\n// easy subsynth with dynklank and simple scale\r\n\r\n(\r\n\r\nfork{ \r\n\tloop{\r\n\t\tvar time;\r\n\t\ttime = 5.rand;\r\n\t\t{\r\n\t\t\tvar sound, freqs, envs, rings, numvoices, env;\r\n\t\t\tnumvoices = 40;\r\n\t\t\tfreqs = {(Scale.major(\\just).degrees+26+\r\n\t\t\t\t(0,12..110).choose).choose}.dup(numvoices).midicps;\r\n\t\t\trings = {1.0.rand}.dup(numvoices);\r\n\t\t\tenvs = { EnvGen.kr(Env.linen( time/3.0.rand, \r\n\t\t\t\ttime/3.0.rand, time/3.0.rand, 1.0.rand ) ) }.dup(numvoices);\r\n\t\t\t\r\n\t\t\tsound = PinkNoise.ar(numvoices.reciprocal!2);\r\n\t\t\tsound = DynKlank.ar(`[freqs,envs,rings], sound );\r\n\t\t\tsound = sound * EnvGen.kr(Env.linen(time.rand,time/3,time.rand),doneAction:2);\r\n\t\t\t\r\n\t\t\tsound = HPF.ar(sound, 120);\r\n\t\t\t\r\n\t\t\t4.do{sound = DelayC.ar(sound, 0.4, [0.4.rand,0.4.rand], 1/8, sound) };\r\n\t\t\t\t\t\r\n\t\t\t//good call - lets turn this down\t\r\n\t\t\tsound*0.2;\r\n\t\t}.play;\r\n\ttime.rand.wait;\r\n\t}\r\n}\r\n)"
}
