betterlead - guyjbrown/bleepmanual GitHub Wiki
Better lead (betterlead)
Better analogue lead using supersaw and sub osc. Also perfectly good for pads if you tweak the envelope.
Author: Guy J Brown
Parameters
| parameter | minimum | maximum | default | description |
|---|---|---|---|---|
cutoff |
100 | 8000 | 4500 | cutoff frequency |
resonance |
0 | 30 | 4 | filter resonance |
detune |
0 | 12 | 4 | oscillator detune |
sub_level |
0 | 1 | 0.2 | sub-oscillator level |
attack |
0 | 5 | 0.01 | attack time |
decay |
0 | 5 | 0.1 | decay time |
sustain |
0 | 1 | 1 | sustain level |
release |
0 | 5 | 0.1 | release time |
vcf_attack |
0 | 5 | 0 | filter attack time |
vcf_decay |
0 | 5 | 0.2 | filter decay time |
vcf_sustain |
0 | 1 | 0.5 | filter sustain level |
vcf_release |
0 | 5 | 0.1 | filter release time |
volume |
0 | 1 | 0.7 | overall volume |
WebAudio graph
graph TD;
osc_id("SUPERSAW:osc")-->mix_id("VCA:mix");
sub_id(["SAW-OSC:sub"])-->sublevel_id("VCA:sublevel");
sublevel_id("VCA:sublevel")-->mix_id("VCA:mix");
mix_id("VCA:mix")-->lowpass_id["LPF:lowpass"];
lowpass_id["LPF:lowpass"]-->vca_id("VCA:vca");
vca_id("VCA:vca")-->audio_id("audio");
env_id[/"ADSR:env"\]-.->vca_id("VCA:vca");
filterenv_id[/"ADSR:filterenv"\]-.->lowpass_id["LPF:lowpass"];