
Envelope: ADSR
An ADSR built from comparators, diodes and one capacitor: attack, decay, sustain and release, so every note gets a shape.
- Width
- 8 HP
- Step
- 3 of the case
- Lesson
- 3 · Give each note a shape
Open it up. Its circuit opens in SynthMaker: change a part, add one, wire it to other modules, or make it a module of your own with its own face.
Open its circuit in SynthMaker (opens in a new tab)Looking inside is free. Changing it is part of SynthMaker Pro.Filament is being built in the open. This unit's circuit plays here in your browser, and the whole case plays in SynthMaker for Mac.
What it could be · 1 of 2
Pluck and swell
Rendered offline at full circuit quality. The hats are the course's noise circuit. 0:45
What it could be · 2 of 2
Gate dance
Rendered offline at full circuit quality. The kick is the Ladder too, pinged by a short pulse; the hats and snare are the course's noise circuits. 0:43
Play it
3 patches with Envelope in them, each played live in your browser by the same circuit solver as the app. Press Play, then turn the knobs; with Live wires on, the schematic and the parts list follow the signal.
Pluck
Tutorial 3's patch: Keys' GATE into the envelope, ENV into the ladder's CV with the CV knob at 8. A fast attack, a short decay and a low sustain: every note plucks.
circuit ADSR setting attack: 10k, from 1k to 1M setting decay: 100k, from 1k to 1M setting sustain: 50% setting release: 100k, from 1k to 1M setting output: 10 V in gate V1 vcc gnd 15V V2 gnd vee 15V Rt1 vcc th 140k Rt2 th gnd 10k U1 gate th g comparator rails 0V 10V U3 p env t comparator rails 0V 15V Cp g p 1n Rp p gnd 100k Rb p vee 10M Rf t p 50k D1 t ka 1N4148 Ra ka env attack S1 env kd g t at 5V Rd kd sus decay P1 g sus gnd 10k sustain Rr env kr release D2 kr g 1N4148 C1 env gnd 1u U2 env out out opamp Rin in gnd 1Mend# SynthMaker · Filament Envelope · Pluckvoice = Voice(mode: Mono)voct = VOct()trim = VTrim(scale: 1.0125)vco = VCO()adsr = ADSR(attack: 1k, decay: 150k, sustain: 15%, release: 100k)atten = Attenuverter(amount: 80%)ladder = Ladder(resonance: 0.6, cutoff: 1.49M, output: 1 V)env = Envelope(attack: 5 ms, decay: 400 ms, sustain: 0.8, release: 350 ms)vca = VCA(level: 0.5)voice.note -> voct -> vco.voctvoct -> trim -> ladder.cvvoice.gate -> adsr.gateadsr -> atten -> ladder.cvvco -> ladder -> vca -> outvoice.gate -> env -> vca.gainvoice.velocity -> vca.gain2Press Play to see the wave after the circuit, at out.
On the web: The web engine plays one way out per circuit for now (the app's several outputs per circuit aren't on the web yet), and every web circuit has an in: here SAW is the circuit's out, PULSE's parts are left out, and in rests on 1 MΩ to ground.
On the web: Every web circuit has an in (the app's envelope needs none): here it rests on 1 MΩ to ground, joined to nothing else.
Swell
The same patch, the envelope slow: a long attack and a high sustain open the filter gradually through each held note, and a long release closes it after.
circuit ADSR setting attack: 10k, from 1k to 1M setting decay: 100k, from 1k to 1M setting sustain: 50% setting release: 100k, from 1k to 1M setting output: 10 V in gate V1 vcc gnd 15V V2 gnd vee 15V Rt1 vcc th 140k Rt2 th gnd 10k U1 gate th g comparator rails 0V 10V U3 p env t comparator rails 0V 15V Cp g p 1n Rp p gnd 100k Rb p vee 10M Rf t p 50k D1 t ka 1N4148 Ra ka env attack S1 env kd g t at 5V Rd kd sus decay P1 g sus gnd 10k sustain Rr env kr release D2 kr g 1N4148 C1 env gnd 1u U2 env out out opamp Rin in gnd 1Mend# SynthMaker · Filament Envelope · Swellvoice = Voice(mode: Mono)voct = VOct()trim = VTrim(scale: 1.0125)vco = VCO()adsr = ADSR(attack: 680k, decay: 470k, sustain: 70%, release: 560k)atten = Attenuverter(amount: 85%)ladder = Ladder(resonance: 0.55, cutoff: 2.2M, output: 1 V)env = Envelope(attack: 60 ms, decay: 400 ms, sustain: 0.9, release: 700 ms)vca = VCA(level: 0.5)voice.note -> voct -> vco.voctvoct -> trim -> ladder.cvvoice.gate -> adsr.gateadsr -> atten -> ladder.cvvco -> ladder -> vca -> outvoice.gate -> env -> vca.gainvoice.velocity -> vca.gain2Press Play to see the wave after the circuit, at out.
On the web: The web engine plays one way out per circuit for now (the app's several outputs per circuit aren't on the web yet), and every web circuit has an in: here SAW is the circuit's out, PULSE's parts are left out, and in rests on 1 MΩ to ground.
On the web: Every web circuit has an in (the app's envelope needs none): here it rests on 1 MΩ to ground, joined to nothing else.
Acid squelch
Low notes, the resonance high and a snappy decay: the envelope throws the cutoff up on every note and the ladder squelches as it falls.
circuit ADSR setting attack: 10k, from 1k to 1M setting decay: 100k, from 1k to 1M setting sustain: 50% setting release: 100k, from 1k to 1M setting output: 10 V in gate V1 vcc gnd 15V V2 gnd vee 15V Rt1 vcc th 140k Rt2 th gnd 10k U1 gate th g comparator rails 0V 10V U3 p env t comparator rails 0V 15V Cp g p 1n Rp p gnd 100k Rb p vee 10M Rf t p 50k D1 t ka 1N4148 Ra ka env attack S1 env kd g t at 5V Rd kd sus decay P1 g sus gnd 10k sustain Rr env kr release D2 kr g 1N4148 C1 env gnd 1u U2 env out out opamp Rin in gnd 1Mend# SynthMaker · Filament Envelope · Acid squelchvoice = Voice(mode: Mono)voct = VOct()trim = VTrim(scale: 1.0125)vco = VCO()adsr = ADSR(attack: 1k, decay: 120k, sustain: 5%, release: 60k)atten = Attenuverter(amount: 92%)ladder = Ladder(resonance: 0.74, cutoff: 3.9M, input: 4 V, output: 2 V)env = Envelope(attack: 2 ms, decay: 300 ms, sustain: 0.8, release: 80 ms)vca = VCA(level: 0.55)voice.note -> voct -> vco.voctvoct -> trim -> ladder.cvvoice.gate -> adsr.gateadsr -> atten -> ladder.cvvco -> ladder -> vca -> outvoice.gate -> env -> vca.gainvoice.velocity -> vca.gain2Press Play to see the wave after the circuit, at out.
On the web: The web engine plays one way out per circuit for now (the app's several outputs per circuit aren't on the web yet), and every web circuit has an in: here SAW is the circuit's out, PULSE's parts are left out, and in rests on 1 MΩ to ground.
On the web: Every web circuit has an in (the app's envelope needs none): here it rests on 1 MΩ to ground, joined to nothing else.
The manual
When GATE goes high, ENV rises over ATTACK to its top, falls over DECAY to the SUSTAIN level, and stays there while the key is held. Let go, and it falls to zero over RELEASE.
Into the ladder's CV jack, it opens the filter at the start of every note and closes it again: short attack and decay with a low sustain is a pluck, the classic squelch with resonance up; a long attack with high sustain is a swell. It makes no sound itself; it moves something that does.
Knobs
- ATTACKHow long the rise takes, 1 ms to 1 s.
- DECAYHow long it takes to fall to the sustain level, 1 ms to 1 s.
- SUSTAINThe level held while the key stays down, from none to full.
- RELEASEHow long it takes to fall to zero after the key is let go, 1 ms to 1 s.
Jacks
- GATEinStarts the envelope when it goes high (Keys' GATE), and releases it when it drops.
- ENVoutThe envelope, 0 to 10 V.
Inside: the circuit
U1 squares up the gate against a 1 V threshold. Its rising edge kicks U3 through Cp, so U3's output goes high and charges C1 through D1 and the ATTACK resistor towards 15 V. At 10 V U3 switches off and stays off until the next gate's edge; the switch S1, closed while the gate is high and U3 is off, lets C1 fall through DECAY towards SUSTAIN's share of the gate. When the gate ends, C1 drains through D2 and RELEASE. U2 buffers the capacitor's voltage as ENV.
circuit ADSR setting attack: 10k, from 1k to 1M setting decay: 100k, from 1k to 1M setting sustain: 50% setting release: 100k, from 1k to 1M setting output: 10 V in gate V1 vcc gnd 15V V2 gnd vee 15V Rt1 vcc th 140k Rt2 th gnd 10k U1 gate th g comparator rails 0V 10V U3 p env t comparator rails 0V 15V Cp g p 1n Rp p gnd 100k Rb p vee 10M Rf t p 50k D1 t ka 1N4148 Ra ka env attack S1 env kd g t at 5V Rd kd sus decay P1 g sus gnd 10k sustain Rr env kr release D2 kr g 1N4148 C1 env gnd 1u U2 env out out opampend| Op-amps and comparators 3 | comparator ×2 U1, U3op-amp U2 |
|---|---|
| Diodes 2 | 1N4148 ×2 D1, D2 |
| Capacitors 2 | 1n Cp1u C1 |
| Resistors 8 | 140k Rt110k Rt2100k Rp10M Rb50k Rfset by ATTACK Raset by DECAY Rdset by RELEASE Rr |
| Pots 1 | 10k (sustain) P1 |
| Switches 1 | analog switch S1 |
| Supplies 2 | 15V ×2 V1, V2 |
Pictures


Follow along
Filament 3
Give each note a shape
Add Ondine Labs' envelope, an ADSR from a real circuit, patch it into the ladder's CV, and make each note pluck or swell.
This lesson is in SynthMaker for Mac: Help › Lessons › Filament 3.
Build it in SynthMaker for MacFilament's makers are imaginary, except SynthMaker. Every circuit is real.