@audio/synth-lfo
v1.0.1
Published
LFO — low-frequency control signal, bipolar/unipolar
Downloads
285
Readme
@audio/synth-lfo

Low-frequency oscillator (modulation source)
npm install @audio/synth-lfoimport lfo from '@audio/synth-lfo'Low-frequency control-rate generator — sine/triangle/square/saw, bipolar (-1..1) or unipolar (0..1). A modulation source, not an audio-rate processor — no audio.js manifest (hosts drive param modulation directly; an LFO-as-atom would be redundant with a host's own modulation routing).
lfo(2, { type: 'triangle', unipolar: true }) // → Float32Array| Param | Default | |
|---|---|---|
| freq | 2 | Hz (positional) |
| duration | 1 | Seconds |
| type | 'sine' | 'sine' | 'triangle' | 'square' | 'saw' |
| unipolar | false | false → -1..1, true → 0..1 |
| phase | 0 | Starting phase, 0..1 |
| fs | 44100 | Sample rate |
Use when: rendering a modulation curve to multiply/add onto a param, offline (for a host with live modulation routing, drive the param directly instead).
Part of @audio/synth — the synth family umbrella.
MIT © audiojs
