WaveStack is on the iOS App Store

Introduction to Sound Synthesis Time and dynamics

Clocks

A clock is a steady stream of short pulses, and each part of a synthesiser connected to it acts once for every pulse that arrives. In analogue hardware each pulse is a voltage that jumps up and drops straight back, and over MIDI it is a clock message.

In the previous chapter the sequencer moved to its next step and the sample and hold took a new value at regular intervals. Each of those steps was set off by a pulse from a clock. On a modular synthesiser the clock is usually a separate module, and patching its output to several others is what keeps them all playing in time with each other.

Tempo is normally given in beats per minute. Dividing by 60 gives beats per second, which is a frequency in hertz, so 120 BPM is 2 Hz. A clock seldom runs at one pulse per beat, though. Many modular sequencers move one step for each pulse they receive, and patterns are usually written in sixteenth notes, so the clock driving them runs at four pulses per beat: 8 pulses a second at 120 BPM. MIDI clock, which carries tempo from one instrument to another over a MIDI cable, runs at 24 pulses per beat. Both figures are written as pulses per quarter note, or PPQN.

A clock

The clock runs four pulses to the beat and shows one bar at a time. The click on each beat is pitched higher than the others.

Listen for With swing at 50% the gap between every pair of clicks is the same. Raise it and every second click arrives late, so the pairs turn from even to long and short.

Swing

Swing moves every second pulse later and leaves the first pulse of each pair where it was, so the pair as a whole keeps its length and the beat does not drift. The setting is the position of the late pulse within the pair. At 50% it sits exactly halfway and the rhythm is straight. At 66.7% it sits two thirds of the way through, which turns each pair of sixteenths into the first and last notes of a triplet. Past about 75% the late pulse is so close to the next one that the two start to sound like a single event.

Because swing works on pairs, it only affects the subdivisions. The pulse on each beat never moves, and neither does the pulse halfway between two beats, because it starts the second pair of the beat. In the tool above the higher click on each beat stays put, and of the three lower clicks after it, the first and the third arrive late.

Dividing and multiplying a clock

One clock feeds five outputs: doubled, unchanged, and divided by two, three and four. Turn outputs on and off to hear how they fit together.

Outputs

Listen for Every output stays locked to the original clock at any tempo. With ÷3 and ÷4 both on, their clicks land together on the first beat and do not land together again until twelve beats later.

One clock, several rates

A patch often needs several rates at once: a hi-hat on every sixteenth, a kick on every beat, a chord change every bar. Separate free-running clocks drift apart, because no two of them run at exactly the same rate, so a patch usually runs one clock and derives the others from it. A clock divider counts incoming pulses and puts out one pulse for every two, three, four or however many it is set to. Its outputs are counted from the source, so they cannot drift away from it.

Set one output to divide by three and another to divide by four and you have a polyrhythm. The two land together on the first beat, separate, and land together again after twelve beats, because twelve is the smallest number that both three and four divide into. That is why the rows above are twelve beats long.

A clock multiplier goes the other way and adds pulses between the ones it receives. To do that it measures the gap between the last two incoming pulses and spaces the new ones as though the next gap will be the same. When the tempo changes, the new pulses are spaced for the old tempo until the multiplier has measured the new gap. The ×2 row above is calculated from the tempo setting rather than measured, so it follows a tempo change immediately.

Reset

Two sequencers on the same clock stay in step only if they started together and neither has missed a pulse since. They fall out of step when a module is switched on late, when a cable is plugged in halfway through a bar, or when a sequence length is changed while it runs. A reset input puts them back in step. A pulse arriving at reset sends a sequencer or a divider back to its first step, and sending one reset signal to every module brings them all back to step one at the same moment.

Clocks do not set note length

A clock pulse marks a moment and carries no information about how long the note it starts should last. Many parts of a synthesiser need only that moment: a drum voice fires once per pulse, and a sample and hold takes one value per pulse. A melody also needs each note to end at the right time, and that is set by a different signal, the gate.

Common questions

What is a clock in a modular synthesiser?

A clock is a steady stream of short voltage pulses. Each pulse jumps up and drops straight back, and each module connected to the clock acts once for every pulse: a sequencer moves to its next step, and a sample and hold takes a new value. One clock connected to several modules keeps them all in time with each other.

How do BPM and Hz relate?

Divide the tempo in beats per minute by 60 to get beats per second, which is a frequency in hertz. 120 BPM is 2 Hz. A clock running four pulses for every beat at that tempo runs at 8 Hz.

What does PPQN mean?

PPQN stands for pulses per quarter note, which is the number of clock pulses in one beat. MIDI clock uses 24. Modular sequencers that move one step per pulse are usually clocked at 4, which makes each step a sixteenth note.

What does a clock divider do?

It counts incoming pulses and puts out one pulse for every two, three, four or however many it is set to. A divide-by-four output fires once for every four input pulses. Because its outputs are counted from the incoming clock rather than generated separately, they cannot drift out of time with it.

What does swing do to a clock?

It delays every second pulse while leaving the first pulse of each pair where it was. At 50% the late pulse sits halfway through the pair and the rhythm is straight. At 66.7% it sits two thirds of the way through, which turns each pair into the first and last notes of a triplet.

What is a reset input for?

It sends a sequencer or clock divider back to its first step. Two modules on the same clock only stay in step if they started together and neither has missed a pulse. Sending one reset signal to all of them brings them back to step one at the same moment.

Published Updated Glossary