All paths

Build a synthesizer

From a phase accumulator to a four-voice MIDI synth: wavetables, ADSR, a fixed-point filter and effects on an Uno.

Arduino Uno R3Free7 lessons7 h3 chapters2,065 XPMaker · Advanced+250 XP

0 of 7 done

What you will build

3 projects, built step by step

7 lessons in 3 chapters, about 7 hours on a simulated Arduino Uno R3. Free, in your browser, every step checked by the simulator.

Chapter 1 project

Filters

Sweep a sawtooth from bright to dull with a one-pole low-pass in 8.8 fixed point, its cutoff on a knob, and measure what it takes away.

Open it in the simulator
Chapter 2 project

MIDI in

Read the wire between the two boards: status and data bytes at 31250 baud, note on, note off, velocity and channel, shown in hex as they arrive.

Open it in the simulator
Chapter 3 project

Project: a playable synth

Play it: load a pluck, play a chord across voices, sweep the filter by hand, and share a patch of your own.

Open it in the simulator
The map

Chapter by chapter

Each lesson opens when the one before it is done, and each chapter ends in a project.

Chapter 1

One voice

An oscillator, an envelope and a filter: everything one note needs.

  1. Open265 XP

    Oscillators

    Make a pitch from a counter and a table: a 16-bit phase accumulator stepped 15,625 times a second, four wavetables, and PWM to turn numbers into a voltage.

    0 of 6 steps

  2. Locked250 XP

    Envelopes

    Shape every note with ADSR: attack, decay, sustain and release, a state machine stepped 977 times a second inside the audio interrupt.

    0 of 5 steps

  3. ProjectLocked378 XP

    Filters

    Sweep a sawtooth from bright to dull with a one-pole low-pass in 8.8 fixed point, its cutoff on a knob, and measure what it takes away.

    0 of 4 steps

5 questions, graded as you go.
Chapter 2

Many notes

Four voices at once, and the MIDI that tells them what to play.

  1. Locked227 XP

    Polyphony

    Play chords with four voices: each new note takes a free voice, a fifth steals the oldest, and the interrupt's share of the CPU is measured.

    0 of 5 steps

  2. ProjectLocked378 XP

    MIDI in

    Read the wire between the two boards: status and data bytes at 31250 baud, note on, note off, velocity and channel, shown in hex as they arrive.

    0 of 4 steps

4 questions, graded as you go.
Chapter 3

Play it

Effects and presets, then an instrument of your own.

  1. Locked189 XP

    Effects

    Add vibrato with a 5.5 Hz LFO on every voice's pitch, crush the bits to hear quantization, and load presets that set the whole patch.

    0 of 4 steps

  2. ProjectLocked378 XP

    Project: a playable synth

    Play it: load a pluck, play a chord across voices, sweep the filter by hand, and share a patch of your own.

    0 of 4 steps

3 questions, graded as you go.
Syllabus

Every lesson in the course

All 7 lessons, in order, each with what it covers. Any of them opens in the editor right away.

Chapter 1

One voice

  1. OscillatorsMake a pitch from a counter and a table: a 16-bit phase accumulator stepped 15,625 times a second, four wavetables, and PWM to turn numbers into a voltage.
  2. EnvelopesShape every note with ADSR: attack, decay, sustain and release, a state machine stepped 977 times a second inside the audio interrupt.
  3. FiltersSweep a sawtooth from bright to dull with a one-pole low-pass in 8.8 fixed point, its cutoff on a knob, and measure what it takes away.
Chapter 2

Many notes

  1. PolyphonyPlay chords with four voices: each new note takes a free voice, a fifth steals the oldest, and the interrupt's share of the CPU is measured.
  2. MIDI inRead the wire between the two boards: status and data bytes at 31250 baud, note on, note off, velocity and channel, shown in hex as they arrive.
Chapter 3

Play it

  1. EffectsAdd vibrato with a 5.5 Hz LFO on every voice's pitch, crush the bits to hear quantization, and load presets that set the whole patch.
  2. Project: a playable synthPlay it: load a pluck, play a chord across voices, sweep the filter by hand, and share a patch of your own.
Keep going

The next course on your track

Build a synthesizer is part of the maker track, a ladder of courses from zero to expert.

Next course

Build a tiny kernel

Your own preemptive kernel on the Uno: task control blocks and hand-built stacks, a context switch in inline assembly, a Timer1 tick, preemption, sleep and semaphores, syscalls, and stack canaries under three tasks at once.

Open the next course
Track

Maker track

Follow the starter kit you already own, then build a claw machine, a balance bot, a handheld console or an LED cube, each a short course checked by the simulator.

See every course on the track
Kits

Build it on your bench too

Every lesson runs in the simulator with nothing to buy. When you want the real thing, these kits have the parts.

Have a kit already?

Find your kit

Pick the starter kit you own and run every lesson in its manual with the same parts on the same pins.

See every kit
Questions

About Build a synthesizer

Is Build a synthesizer free?

Yes. All 7 lessons of Build a synthesizer are free and run in your browser, with nothing to install and no parts to buy before you start.

Do I need a real Arduino Uno R3?

No. Every lesson runs on a simulated Arduino Uno R3 with its parts on the canvas, and the simulator checks each step as you go. When you want to build it for real, the same wiring and code work on a real board.

How long does Build a synthesizer take?

About 7 hours: 7 lessons in 3 chapters, each one a few short steps. Your progress is kept, so you can stop after any lesson and pick up where you left off.

What will I build?

Each chapter ends in a project that puts it together: Filters, MIDI in and Project: a playable synth.

Where do I start?

With "Oscillators", and each lesson builds on the one before it. New to circuits? Electronics basics is the course that starts from zero.