{
   "name" : "randochestra",
   "author" : "vividsnow",
   "ancestor_list" : [],
   "description" : "exploring of morphing cycled envelopes (i.e. kind of grains) as a sound source; give it some tries - there are possibly interesting ones",
   "labels" : [
      "noise",
      "experimental",
      "background",
      "endless"
   ],
   "code" : "(\r\nNdef(\\ro_v19, {\r\n\tvar freq = 40.rrand(90).debug('base freq');\r\n\tvar seed = thisThread.randSeed = 1000000000.rand.debug('seed');\r\n\tvar gen = [LFNoise2,LFNoise0,SinOsc,LFPulse,LFSaw];\r\n\tvar sig = Splay.ar({\r\n\t\tvar i = 4.exprand(40).asInteger;\r\n\t\tMedian.ar(\r\n\t\t\t3.exprand(18),\r\n\t\t\tEnvGen.ar(\r\n\t\t\t\tEnv( // wave form\r\n\t\t\t\t\t[0] ++ Array.fill(i-1, { \r\n\t\t\t\t\t\tgen.choose.kr(\r\n\t\t\t\t\t\t\t0.25.coin.if({ gen.choose.kr(0.01.exprand(0.1)).exprange(0.1,1) }, { 0.1.exprand(1) }), \r\n\t\t\t\t\t\t\tmul: 0.25.coin.if({ gen.choose.kr(0.05.exprand(10)).range(0.1,1) }, { 0.1.rrand(1) })\r\n\t\t\t\t\t\t)\r\n\t\t\t\t\t}) ++ [0],\r\n\t\t\t\t\tArray.rand(i-1, 0.1,1.0).normalizeSum,\r\n\t\t\t\t\t[[-5.0.rrand(5),\\sin].choose] ++ Array.fill(i-2, {\r\n\t\t\t\t\t\t[\\sin ! 1.rrand(6), -5.0.rrand(5) ! 1.rrand(4)].flat.choose\r\n\t\t\t\t\t}) ++ [[-5.0.rrand(5),\\sin].choose]\r\n\t\t\t\t).circle,\r\n\t\t\t\ttimeScale: Duty.kr( // freq\r\n\t\t\t\t\tDrand([4,8,16,24], inf), 0,\r\n\t\t\t\t\tDwrand([1,2,4,8,16,32,64]*freq, ((14..7) ** 1.rrand(3)).normalizeSum, inf) // octave\r\n\t\t\t\t\t* 0.75.coin.if({ Duty.kr( // note\r\n\t\t\t\t\t\t[Dxrand, Drand].choose.new([0.125,0.25,0.5,1,2,4,6,8,12], inf), 0,\r\n\t\t\t\t\t\tDshuf({ (0..11).choose.midiratio } ! 1.exprand(8), inf)\r\n\t\t\t\t\t) }, { (0..11).choose.midiratio })\r\n\t\t\t\t).reciprocal\r\n\t\t\t)\r\n\t\t) * EnvGen.kr( // rhythm\r\n\t\t\tEnv.perc(\r\n\t\t\t\t0.01.exprand(0.4) * 0.25.coin.if({ Duty.kr( // atk\r\n\t\t\t\t\tDrand([0.5,1,2,4,8,12,16], inf), 0,\r\n\t\t\t\t\tDshuf({ [1,2,3,4].choose } ! 1.exprand(8), inf)\r\n\t\t\t\t) }, { 1 }),\r\n\t\t\t\t0.1.exprand(4) * 0.75.coin.if({ Duty.kr( // release\r\n\t\t\t\t\tDrand([0.5,1,2,4,8,12,16], inf), 0,\r\n\t\t\t\t\tDshuf({ [1,2,4,8,16].choose.reciprocal } ! 1.exprand(8), inf)\r\n\t\t\t\t) }, { 1 }),\r\n\t\t\t\tLFNoise2.kr(0.1.exprand(10)).range(0.05,1), // appearance\r\n\t\t\t\tLFNoise2.kr(0.1.exprand(10)).range(-4,4),\r\n\t\t\t).circle\r\n\t\t);\r\n\t} ! 3.rrand(9).debug('source'));\r\n\tBHiShelf.ar(\r\n\t\tGVerb.ar(\r\n\t\t\tRotate2.ar(sig[0], sig[1], Duty.kr(Drand([2,4,8],inf), 0, Drand([-1,1,0],inf)) * LFSaw.kr(0.1.exprand(1))),\r\n\t\t\t40.rrand(150).debug('room')\r\n\t\t),\r\n\t\tLFNoise2.kr(0.1.exprand(0.5)).range(4000,6500),\r\n\t\tLFNoise2.kr(0.1.exprand(1)).range(1,3),\r\n\t\tLFNoise2.kr(0.1.exprand(1)).range(-24,-16)\r\n\t);\r\n}).play\r\n)",
   "id" : "1-4Q8",
   "is_private" : null
}
