Modulation

LFOs (low-frequency oscillators) continuously modulate a parameter over time - wobbling a filter cutoff, pulsing the gain, or sweeping the pan. Attach one or an array to any layer. They're automatically cleaned up when the voice ends.

Basic usage

{
  source: { type: "sawtooth", frequency: 80 },
  filter: { type: "lowpass", frequency: 600, resonance: 8 },
  gain: 0.3,
  lfo: {
    type: "sine",
    frequency: 6,
    depth: 500,
    target: "filter.frequency",
  },
}

Multiple LFOs

Stack modulations on a single layer:

{
  lfo: [
    { type: "sine", frequency: 4, depth: 300, target: "filter.frequency" },
    { type: "triangle", frequency: 0.5, depth: 0.1, target: "gain" },
  ],
}

Parameters

PropertyTypeDescription
typestringWaveform: sine, triangle, square, sawtooth
frequencynumberLFO rate in Hz
depthnumberModulation amount
targetstringWhich parameter to modulate

Available targets

TargetWhat it does
frequencyPitch vibrato
detuneFine pitch modulation
gainTremolo / volume swell
panAuto-pan
filter.frequencyWah / filter sweep
filter.detuneFilter pitch shift
filter.QResonance modulation
filter.gainShelf/peaking boost modulation
playbackRateSpeed modulation (samples)