{
   "labels" : [
      "live coding",
      "bird",
      "simple example",
      "entrypoint"
   ],
   "id" : "1-578",
   "is_private" : null,
   "code" : "(\r\nNdef(\\bird).addSpec(\\dur, [0.01, 1]);\r\nNdef(\\bird).addSpec(\\trig, [0, 1, \\lin, 1]);\r\nNdef(\\bird, {|dur = 1|\r\n\r\n\tvar freqEnv, env, wEnv, src;\r\n\tvar startFreq = \\startFreq.kr(1000);\r\n\tvar endFreq   = \\endFreq.kr(4000);\r\n\tvar trig = \\trig.tr(1);\r\n\r\n\tenv = EnvGen.ar(Env(\r\n\t\t[0, 1, 1, 0],\r\n\t\t[0.1, 1, 0.5].normalizeSum\r\n\t), trig, timeScale: dur);\r\n\r\n\r\n\twEnv = EnvGen.ar(Env(\r\n\t\t[0, 1, 0],\r\n\t\t[1, 0],\r\n\t\t2\r\n\t), trig, timeScale: dur);\r\n\r\n\tfreqEnv = wEnv * (endFreq - startFreq).abs + startFreq;\r\n\twEnv = 1- (wEnv * 0.5);\r\n\t\r\n\tsrc = Pulse.ar(freqEnv * SinOsc.ar(0.1).range(0.99, 1.01), wEnv) * env!2;\r\n\tsrc\r\n})\r\n)\r\n\r\nNdef(\\bird).play\r\n\r\n\r\nNdef(\\bird).set(\\trig, 1, \\dur, 0.1)\r\n\r\n\r\nNdef(\\bird).set(\\trig, 1, \\dur, rrand(0.1, 0.2), \\endFreq, exprand(500, 1000), \\startFreq, 4000)",
   "name" : "bird",
   "author" : "LFSaw",
   "description" : "Example sound explored in the temporary event Creating soundscapes with live coding techniques \r\nhttps://temporary.fi/experiments/creating-soundscapes-with-live-coding-techniques",
   "ancestor_list" : []
}
