What is a sound? Waveforms, filters and envelopes
The physics every later sound is built on, explored with REAPER's own ReaSynth, ReaEQ and a spectrum analyzer.
Goal
Get to know the four ingredients of every synth sound (waveform, pitch, filter, envelope) and watch them on a spectrum analyzer until they stop being abstract.
The idea
A sound is air pressure going up and down. A speaker follows a list of numbers saying how far to push out or pull in at each instant, and digital audio is that list. Each number is a Sample; there are 44,100 or more per second (the Sample rate).
Pitch is how fast the pattern repeats: its Frequency, in Hertz. The A above middle C is 440 Hz, and doubling the frequency takes you up an Octave. For MIDI note n:
frequency = 440 × 2 ^ ((n - 69) / 12)
So note 57 (A3) is 220 Hz and note 33 (A1, our bass note) is 55 Hz.
Shape is Timbre, the reason a flute and a trumpet on the same note sound nothing alike. Synths start from four waveforms:
| Waveform | Sounds | Harmonics |
|---|---|---|
| Sine | pure, a whistle, a sub | the fundamental only |
| Triangle | soft, hollow | odd ones, fading fast |
| Square | hollow, reedy | odd ones, fading slowly |
| Saw | bright, buzzy, full | all of them, the nth at 1/n |
Any repeating wave is a stack of sines at whole-number multiples of its pitch: the Fundamental, then the 2nd Harmonic, the 3rd, and so on. In a saw the 2nd is 6 dB down, the 3rd about 9.5 dB, the 4th 12 dB. A sine has none, which is why a saw sounds so much brighter.
A Filter takes harmonics away. A Low-pass filter keeps the lows and cuts everything above its Cutoff. Start bright and carve it down: that's Subtractive synthesis, and it's how nearly every trance sound is made. Resonance boosts the frequencies right at the cutoff, which gives a sweep its "wow".
An Envelope shapes loudness over time, in four stages, ADSR:
A pluck: instant attack, short decay to nothing. A pad: slow attack, long release. Every synth in this series is the same chain, oscillator into filter into envelope.
Build it
Three stock effects: ReaSynth, ReaEQ (as a filter) and a spectrum analyzer.
- Add a track
Testand put ReaSynth on it (searchreasynth). - Below it in the same chain, add a spectrum analyzer (search
spectrum). It has to come after the synth to see what the synth makes. - Make a one-bar MIDI item and draw a note across the whole bar on A3 (MIDI 57), the A just below middle C (REAPER calls middle C "C4"). R for repeat, play.
- In ReaSynth: Volume about -10 dB, Square mix, Triangle mix and Extra sine mix all the way down, Sawtooth mix all the way up.
- On the analyzer, find the row of peaks falling off to the right: 220 Hz, then 440, 660, 880.
- Swap to a sine: Sawtooth mix down, Extra sine mix up. The row collapses toward one peak. Listen to how much duller it is.
- Move the note up an octave, to A4 (69). Every peak moves to double its frequency.
- Put ReaEQ between ReaSynth and the analyzer. Click a band tab, set Type to Low pass, drag Frequency down to about 1000 Hz. Back on the saw, watch the peaks above the cutoff vanish as the sound darkens.
- In ReaSynth, set Attack to a few hundred ms and hear the fade-in. Then attack near zero, Decay short, Sustain at minimum, and shorten the note to an eighth. That's a pluck.
Listen for
- Saw: buzzy and bright. Sine: smooth and hollow. The difference should be obvious.
- A falling low-pass cutoff sounds like throwing a blanket over the speaker.
- Up an octave, every analyzer peak moves to double.
Try this
- Hold a saw note and sweep the ReaEQ frequency up and down. You're hearing the most recognizable gesture in electronic music. We automate it in Risers, fills and impacts.
- Play notes 33 and 45 (A1 and A2): 55 Hz and 110 Hz.
What happens to a note's frequency when you go up an octave?
It doubles. A3 is 220 Hz, A4 is 440 Hz.
Which harmonics does a saw contain, and how loud is the 2nd?
All of them, the nth at 1/n. The 2nd is half the level, 6 dB down.
What does raising a low-pass filter's cutoff do?
Lets more harmonics through, so the sound gets brighter.
What does ADSR stand for?
Attack, decay, sustain, release.