{
   "labels" : [
      "pulse",
      "wobble",
      "tremelo",
      "wub",
      "triangle"
   ],
   "code" : "(\r\nSynthDef(\"Triangular AM\", { arg freq = 440, modfreq = 5, amp = 0.5, attack = 0.01, release = 0.1, pos = 0, gate = 1;\r\n\tvar carrier, modulator, env;\r\n\tmodulator = SinOsc.kr(modfreq).range(0, 1); // provides amplitude modulation for wobble\r\n\tcarrier = LFTri.ar(freq: freq, mul: modulator); // provides triangle wave for an interesting harmonic\r\n\tenv = Env.asr(\r\n\t\tattackTime: attack,\r\n\t\tsustainLevel: amp,\r\n\t\treleaseTime: release).kr(doneAction: 2, gate: gate);\r\n\tcarrier = carrier * env;\r\n\tOut.ar(0, Pan2.ar(carrier, pos))\r\n}).add;\r\n)\r\n\r\n(\r\n// Using these settings you can produce a pulsating wobble sound\r\n~wobble = Pbind(\r\n\t\\instrument, \"Triangular AM\",\r\n\t\\scale, Scale.aeolian,\r\n\t\\ctranspose, -12,\r\n\t\\degree, Pseq([\r\n\t\t[-7,-3, 0, 2, 4, 7],\r\n\t\t[-8, -4, -1, 1, 3, 6],\r\n\t\t[-9, -5, -2, 0, 2, 5],\r\n\t\t[-5, -1, 2, 4, 6, 9],\r\n\t\t[-4, 0, 3, 5, 7, 10],\r\n\t\t], inf),\r\n\t\\dur, Pseq([Pn(4, 3), 2, 2], inf),\r\n\t\\amp, 0.4,\r\n\t\\modfreq, Pseq([Pn(6.5, 3), 2, 6.5], inf),\r\n\t\\attack, 2,\r\n\t\\release, 1.2,\r\n\t\\pos, [-1, -0.7, -0.2, 0.2, 0.7, 1],\r\n\t\\gate, 0,\r\n);\r\n)\r\n\r\n~wobble.play;",
   "id" : "1-51d",
   "is_private" : null,
   "author" : "gacastillo",
   "name" : "Wobble",
   "ancestor_list" : [],
   "description" : "Wobble, tremolo, whatever you want to call it. This code uses amplitude modulation with a triangle wave to produce a lower register pulsating synth."
}
