Step Sequencer: A Simple Drum Machine
We now take the four drum voices we built — kick, snare, closed hat and open hat — and add a simple timing system that decides when each voice is triggered.
1. A simple drum-machine architecture
how fast?
which step?
This is deliberately simplified — much like a basic Max/MSP metro → counter → select → trigger system.
2. Interactive drum machine
Manual trigger pads
These fire the same drum voices immediately. The sequencer simply triggers them automatically at selected steps.
Pattern presets
Clickable step grid
Click any cell on or off — including while the loop is running. The highlighted column is the current sequencer step.
3. What is the sequencer actually doing?
If the playhead reaches an active snare cell, the sequencer sends a trigger to the snare voice. The snare synthesizer then generates the sound using the tone/noise/filter/envelope patch from the previous lesson.
Sound generation
Kick / Snare / Hats
Oscillators, noise, filters and envelopes create the audio.
Sequencing
Clock / steps / pattern
The timing system determines when each sound is triggered.
4. One bar vs two bars
At 1/16-note resolution in 4/4:
A two-bar loop simply gives the pattern more time before returning to step 1. The underlying clock and trigger mechanism are unchanged.
5. Musical time ↔ real time
At 120 BPM, one quarter note lasts 500 ms. A sixteenth note is one quarter of that duration, so each sequencer step lasts 125 ms.
The timing readout above updates as you change BPM.
6. Drum machine fundamentals complete
More sophisticated systems extend the same idea with velocity, accents, swing, probability, automation, longer patterns and arrangements — but the fundamental mechanism remains recognisable.