Skip to content

vasynth

Vasynth — Virtual analog synth (VCO → VCF → ADSR). wave / cutoff / attack / release / gain.

Quick Start

vasynth({ wave: 'sawtooth', cutoff: 2000, gain: 0.5 })

Parameters

Name Type Default Range/Options Description
wave enum sawtooth sine square sawtooth triangle Oscillator waveform
cutoff number 2000 20–20000 Hz Low-pass filter cutoff frequency
resonance number 1 0.0001–30 Q Filter resonance (Q value)
pwm number 0 -1200–1200 cents Oscillator detune / PWM-style modulation depth (cents)
attack number 0.01 0–10 s Attack time
decay number 0.1 0–10 s Decay time
sustain number 0.7 0–1 0–1 Sustain level
release number 0.3 0–10 s Release time
gain number 0.5 0–1 0–1 Output gain