Building a Synthesizer, part 4: Envelopes