1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
local synth = sound.synth.new(sound.synth.types.FmSynth, {
  volume = 0,
  detune = 0,
  portamento = 0,
  harmonicity = 3,
  oscillator = {
    partialCount = 0,
    partials = {},
    phase = 0,
    type = "sine"
  },
  envelope = {
    attack = 0.01,
    attackCurve = "linear",
    decay = 0.2,
    decayCurve = "exponential",
l