• lfo

lfo
  1. config
  2. config.control
  3. config.subControl
  4. config.rate
  5. config.sync
  6. config.depth
  7. config.depthabs
  8. config.dcoffset
  9. config.shape
  10. config.skew
  11. config.curve
  12. config.retrig
  13. config.fxi
  14. id

Configures an LFO. Can be called in sequence like pat.lfo(...).lfo(...) to set up multiple LFOs. There are two ways to declare which control will be modulated:

  1. Explicitly put control in the config (e.g. lfo({ c: "lpf" }))
  2. If the control parameter is absent, the control immediately before the lfo call will be used (e.g. s("saw").lpf(500).lfo() to modulate lpf)

Modulators can be referred to by id so that they can be updated later e.g. inside a sometimes. See example below.

s("saw").note("F1").lpf(500).lfo()
s("saw").lfo().lpf(500).lfo({ s: 0.3 })
s("saw").lpf(500).diode(0.3)
  .lfo({ c: "lpf" })
s("pulse").lpf(500).lfo()
  .lfo({ c: "s" })
  .diode(0.3)
  .sometimes(x => x.lfo({ s: "8" }, 1)) // lfo #1 (0-indexed)
s("pulse").lpf(500).lfo({ depth: 4 }, 'lpf_mod')
  .lfo({ c: "s" })
  .diode(0.3)
  .sometimes(x => x.lfo({ s: "8" }, 'lpf_mod'))
parametertype
config
  • object
LFO configuration.
config.control
Node to modulate. Aliases: c
config.subControl
Sub-control name to append to the control key. Aliases: sc
config.rate
Modulation rate. Aliases: r
config.sync
Tempo-synced modulation rate. Aliases: s
config.depth
Relative modulation depth. Aliases: dep, dr
config.depthabs
Absolute modulation depth. Aliases: da
config.dcoffset
DC offset / bias for the waveform. Aliases: dc
config.shape
Shape index. Aliases: sh
config.skew
Skew amount. Aliases: sk
config.curve
Exponential curve amount. Aliases: cu
config.retrig
If > 0.5, the LFO will retrigger on each event. Aliases: rt
config.fxi
FX index to target
id
ID to use for this modulator
in this category (44)