Skip to content

ADSR registers

Leandro Nini edited this page Jun 8, 2021 · 2 revisions

The ADSR registers bit:

Just two inverters with a clocked feedback loop:

The A, D and R values are gated so they are active only during the specific envelope phase:

The gates are controlled by the Gate bit and the R0 signal (counting direction):

So we have:

  • atk_gate = R0
  • dec_gate = ¬(rel_gate ∨ R0) = ¬R0 ∧ Gate
  • rel_gate = ¬(R0 ∨ Gate) = ¬R0 ∧ ¬Gate

One funny fact is that in the first cycle of the attack and decay phases the wrong rate is used, as the R0 line reacts with one cycle delay.