{
   "description" : "An improvisation on Formant, also using JPverb (from DEINDUGens) and Decimator (from DistortionUGens). 'Balungan' is the name given to the central, skeletal melody that underlies a Javanese gamelan piece: actually, this is not very gamelan-like at all, although the stately pace and occasional gong-like notes put me in that frame of mind.",
   "ancestor_list" : [],
   "name" : "balungan",
   "author" : "tedthetrumpet",
   "code" : "t = TempoClock(140/60/32)\r\n\r\n(\r\nSynthDef(\\bform, { |out = 0, freq = (60.midicps), formfreq = 70, bwfreq = 200, gate = 1, amp = 0.1|\r\n\tvar env = EnvGen.kr(Env.adsr(releaseTime:0.5, decayTime:0.1), gate, doneAction:2);\r\n\tvar sig = Formant.ar(freq * ((-1..1)/500 + 1), formfreq * env.range(0.01,2), bwfreq);\r\n\tsig = sig * env;\r\n\tOut.ar(out, Splay.ar(sig) * amp)\r\n}).add\r\n)\r\n~mbus2 = Bus.audio(s, 2)\r\n\r\nNdef(\\l, {LFNoise1.kr(t.tempo)})\r\nNdef(\\m2).put(0, { InFeedback.ar(~mbus2, 2)}).play\r\nNdef(\\m2).put(1, \\filter -> { |i| Decimator.ar(i, Ndef(\\l).kr.range(1000,4000), bits:17)})\r\nNdef(\\m2).put(2, \\filter -> { |i| JPverb.ar(i, t60:5)}).set(\\wet1, 0.3)\r\n\r\nPdef(\\f, Pmono(\\bform, \\freq, 110/2, \\formfreq, Pfunc({80.rrand(440)}), \\dur, 1/4, \\bwfreq, 60, \\out, ~mbus2))\r\n\r\nPdef(\\f).play(t)\r\n\r\nPdef(\\f).stop",
   "is_private" : null,
   "id" : "1-51O",
   "labels" : [
      "slow"
   ]
}
