{
   "author" : "g_montel",
   "name" : "In the style of Autechre Mirrage",
   "ancestor_list" : [],
   "description" : "Quick experiment in the style of Autechre Mirrage ambient track",
   "labels" : [],
   "code" : "// in the style of Autechre - Mirrage\r\n// https://www.youtube.com/watch?v=rXQ9sNRcHYE\r\n\r\n(\r\n{\r\n\tvar note, snd, delaytime, damp, size, diff, feedback, localout;\r\n\tnote = Demand.kr(Impulse.kr(0) + Dust.kr(0.1), 0, Diwhite(60, 80, inf));\r\n\tdelaytime = Demand.kr(Impulse.kr(0) + Dust.kr(0.3), 0, Dwhite(0.1, 0.3, inf));\r\n\tdamp = Demand.kr(Impulse.kr(0) + Dust.kr(0.4), 0, Dwhite(0.2, 0.6, inf));\r\n\tsize = Demand.kr(Impulse.kr(0) + Dust.kr(0.3), 0, Dwhite(2, 10, inf));\r\n\tdiff = Demand.kr(Impulse.kr(0) + Dust.kr(0.2), 0, Dwhite(0.5, 1.0, inf));\r\n\tfeedback = Demand.kr(Impulse.kr(0) + Dust.kr(0.4), 0, Dwhite(0.8, 1.0, inf));\r\n\tsnd = SinOsc.ar(freq: [note, note+LFNoise1.kr(freq: 0.1).range(-0.25, 0.25)].midicps);\r\n\tlocalout = Mix.ar(5.collect({ |i|\r\n\t\tPan2.ar(\r\n\t\t\tin: Greyhole.ar(in: PitchShift.ar(in: snd, pitchRatio: i), delayTime: delaytime, damp: damp, size: size, diff: diff, feedback: feedback, modDepth: 0.1, modFreq: 5),\r\n\t\t\tpos: LFNoise1.ar(freq: TRand.ar(10.reciprocal, 1, Impulse.kr(8.reciprocal))).range(-1,1),\r\n\t\t\tlevel: (i+1).reciprocal\r\n\t\t) * -20.dbamp;\r\n\t}));\r\n\tlocalout = Compander.ar(in: localout, control: localout, thresh: -6.dbamp, slopeAbove: 3.reciprocal);\r\n\tLocalOut.ar(localout);\r\n\tsnd = LocalIn.ar(2);\r\n\tsnd.tanh;\r\n}.play;\r\n)",
   "id" : "1-5bM",
   "is_private" : null
}
