{
   "name" : "smooth arpeggio, updated envelope",
   "author" : "hems.inlet",
   "ancestor_list" : [],
   "description" : "",
   "labels" : [
      "arpeggio",
      "pseq"
   ],
   "id" : "1-53W",
   "is_private" : null,
   "code" : "(\r\ns.boot;\r\n)\r\n\r\n(\r\nSynthDef(\\bass, { |freq = 440, sustain = 1, amp = 0.5|\r\n    var sig;\r\n    sig = SinOsc.ar(freq, 0, amp) * EnvGen.kr(Env.perc(0.2), doneAction: 2);\r\n    Out.ar(0, sig ! 2)\r\n}).add;\r\n);\r\n\r\n(\r\n\r\n(\r\np = Pbind(\r\n        // the name of the SynthDef to use for each note\r\n    \\instrument, \\smooth,\r\n        // MIDI note numbers -- converted automatically to Hz\r\n    \\midinote, Pseq([36 + 0,  36 + 7, 36 + 12], inf),\r\n        // rhythmic values\r\n    \\dur, Pseq([0.5, 0.5, 0.5], inf)\r\n).play;\r\n);\r\n\r\n\r\n(\r\np = Pbind(\r\n        // the name of the SynthDef to use for each note\r\n    \\instrument, \\smooth,\r\n        // MIDI note numbers -- converted automatically to Hz\r\n    \\midinote, Pseq([60+0,  60+5,  60+7,  60+8,  60+7, 60+5], inf),\r\n        // rhythmic values\r\n    \\dur, Pseq([0.5, 0.5, 0.5, 0.5, 0.5, 0.5], inf)\r\n).play;\r\n)\r\n\r\n)"
}
