Synthesis Basics: by Beau Sievers
Synthesis Basics: by Beau Sievers
com/synth/synthbasics/
beausievers.com
Synthesis Basics
by Beau Sievers
Table of Contents
1. Table of Contents
2. Introduction
2. Basic Waveforms
1. Sine
2. Sawtooth
3. Square
4. Triangle
4. Building a Synthesizer
1. Volume Control
2. Filters
3. Properties of Filters
3. Control Signals
1. Envelope Generators
Introduction
article were created with and tested on PureData 0.40.1 for Mac OS
X.
reads -1, the cone is pulled all the way in. This movement creates a
pressure wave in the air which we hear as sound. If a speaker cone
moves in and out according to the graph above, it will make the
sound of a bass drum.
The rate at which a sound wave moves in and out is called the
frequency. Frequency is measured in cycles per second. The length
of a singal cycle of a waveform is the span of time it takes for that
waveform to repeat. People generally hear an increase in the
frequency of a sound wave as an increase in pitch. When the
frequency of an oscillator is doubled, the pitch of the sound it
generates moves an octave up. For example, an oscillator
generating a signal that repeats at the rate of 440 cycles per
second will have the same pitch as middle A on a piano. An
oscillator generating a signal that repeats at 880 cycles per second
will have the same pitch as the A an octave above middle A. A
common way of saying "cycles per second" is "Hertz," abbreviated
"Hz."
Basic waveforms
Sine
Technical note: The sine wave is the most basic, pure waveform,
with a contour described by a trigonometric function called the sine
function. Any other waveform, including the other simple waveforms
described below, can be created by adding up a series of sine
waves. Details on this process exceed the scope of this article. For
more information, check out the Wikipedia entries on Fourier
Analysis and Additive Synthesis.
In the above picture, the first two sine waves are added together to
produce a third, different wave.
Sawtooth
Sawtooth waves, also called saw waves, have a very strong, clear,
buzzing sound. A sawtooth wave can be made by adding a series
of sine waves at different frequencies and volume levels. The
frequency of the first, loudest sine wave is what we hear as the
frequency of the resulting sawtooth. This is called the fundamental
frequency. Each of the other, progressively quieter, sine waves that
make up a sawtooth have frequencies which are integer multiples
of the fundamental frequency. These frequencies are called
harmonics.
Square
Triangle
Building a Synthesizer
Volume control
Let's add a VCA to our simple synthesizer now. This means adding
a new module and a couple more cables, but don't worry, they're
explained right after the diagram.
The "gate" cable running from the keyboard to the VCA is a signal
that sends one of two messages to the VCA: "on" if a key is
depressed, and "off" otherwise. When the gate signal is off, or
closed, we hear nothing. When the gate signal is on, or open, then
the VCA will let the noise from the oscillator to the audio output.
The "velocity" cable sends a level to the VCA that corresponds with
how fast we hit the key, and controls the volume level of the output.
If we press a key very hard, and thus very fast, the volume of the
output will be louder than if we pressed the key soft and slow.
Filters
A low pass filter allows low frequencies to pass through the filter
and blocks out high frequencies, causing the sound to seem
muffled. The range of frequencies blocked by a filter is called the
stop band. The range of frequencies allowed to pass through the
filter is called the pass band. The transition from pass band to stop
band is gradual, and happens over a range called the transition
band. The width of the transition band depends on the rate at which
the filter reduces the signal. This rate is called the slope, which is
measured in decibels per octave. (A detailed discussion of the
decibel as a unit of amplitude measurement is beyond the scope of
this article. As always, the Wikipedia article on decibels delivers the
goods.) The frequency where the filter has reduced the level of the
signal to about seven tenths its original level is called the cutoff
frequency. A high pass filter does the opposite of a low pass filter:
blocks low frequencies and lets high frequencies pass through.
A band pass filter is like a low pass and a high pass filter used in
combination to isolate a group of frequencies to pass through while
everything else gets cut out. A band reject filter is the opposite of a
band pass filter: a band of frequencies is blocked while everything
else is let through.
Properties of filters
With band pass and band reject filters, rather than changing the
cutoff frequency, we change the center frequency and width of the
affected band.
With some filters we can also change the slope, which determines
how quickly the stop band frequencies are reduced in level.
Control signals
Envelope generators
Envelopes like the one pictured here are called ADSR envelopes,
so named for their four stages: Attack, Decay, Sustain, and
Release. When we put an ADSR envelope module in a synthesizer,
we specify exactly what is to happen during each stage of the
envelope after an "on" gate signal is received. For example, the
envelope pictured above has an attack stage that lasts 250
milliseconds, where the level increases to 1. After that, it has a
decay stage lasting 200 milliseconds where the level decreases to
0.7. During the sustain stage, the level stays at 0.7 for as long as
the envelope generator is receiving an "on" gate signal. Sustain
stages do not have a specified duration. When the gate signal
changes to "off," we enter the release stage, where the level takes
200 milliseconds to drop to 0.
Let's add an LFO to our synthesizer that causes the pitch of our
oscillator to wiggle up and down a little bit, like a violinist moves
their hand to create vibrato. We're also going to use the envelope
generator to modulate the frequency of our filter, so we get a cool
sweeping effect automatically on every note, especially if we turn
up the filter's resonance. Using a control signal to change the
frequency of another module is called frequency modulation, or FM,
as indicated in the diagram below:
This is, however, not the end. There's quite a bit of excellent
literature on sound synthesis and electronic music, and one of the
best ways to learn is to read constantly. That said, here's some
good stuff: