{
   "author" : "38nonprivate",
   "name" : "Nested ifs in a SynthDef",
   "ancestor_list" : [],
   "description" : "A short, silly example of using if in a SynthDef. Using Select is generally a better thing to do.",
   "labels" : [
      "simple",
      "if"
   ],
   "code" : "(\r\n{\r\nvar noise, out;\r\nnoise = LFNoise0.kr(8);\r\n\r\nout = if( noise > 0.0,\r\n\tif(noise > 0.5, \r\n\t\tif(noise > 0.9, WhiteNoise.ar(0.2), Pulse.ar(60, 0.5, 0.4)),\r\n\tSinOsc.ar(500, 0, 0.25)\r\n\t),\r\n\tSaw.ar(160, 0.5)\r\n);\r\n\r\nout ! 2\r\n\r\n}.play;\r\n)",
   "is_private" : null,
   "id" : "1-v"
}
