{
   "description" : "Cool modulation synth and Pbind that gets a sound similar to that of a carousel at a carnival. Toy with the \\dur and set to 1/2 and it gives a spookier run down sound or speed up 1/16 to get the sound of some one repeating \"yayayaya\". Reminiscent of Roller Coaster Tycoon",
   "ancestor_list" : [],
   "author" : "mjescobar",
   "name" : "Carousel",
   "is_private" : null,
   "id" : "1-515",
   "code" : "(\r\nSynthDef(\"AM\", { arg freq = 440, modfreq = 5, amp = 0.5, attack = 0.01, decay = 0.3, release = 0.1, pos = 0, gate = 1, phaserfreq = 0, phaserdepth = 0.3;\r\n       var phaser, carrier, modulator, env;\r\n       phaser = SinOsc.ar(freq: phaserfreq, mul: phaserdepth*modfreq, add: modfreq);\r\n       modulator = SinOsc.ar(phaser).range(0, 1);\r\n       carrier = SinOsc.ar(freq: freq, mul: modulator);\r\n       env = Env.adsr(\r\n       attackTime: attack,\r\n       decayTime: decay,\r\n       sustainLevel: 0.8,\r\n       releaseTime: release).kr(doneAction: 2, gate: gate);\r\n       carrier = carrier * env * amp;\r\n       Out.ar(0, Pan2.ar(carrier, pos))\r\n}).add;\r\n)\r\n\r\n(\r\n Pbind(\r\n      \\instrument, \"AM\",\r\n      \\dur, 1/4,\r\n      \\degree, Pseq([0,3,5,7,5,3], inf),\r\n      \\ctranspose,Pseq([Pseq([0],24),Pseq([3],24),Pseq([5],24)],inf),\r\n      \\modfreq,  2000, // try higher numbers here\r\n      \\pmindex, Pwhite(2, 3),\r\n      \\amp, 0.3,\r\n      \\attack, 1,\r\n      \\release, Pwhite(0.1, 0.3),\r\n      \\pos,Pseq([Pseq([1],8),Pseq([1],8),Pseq([1],8),Pseq([1],8)],inf),\r\n).play;\r\n)",
   "labels" : [
      "carnival",
      "themepark"
   ]
}
