A course in JUCE, modern C++ and shipping audio software

Build audio plugins in C++, then ship them.

From your first sine wave to a signed, licensed plugin in other people's sessions. You write real JUCE code from the first lesson and hear it when you press Run.

Sonic Supernova is one route through audio programming. You learn JUCE by building effects you can hear. You pick up modern C++ right before each plugin needs it. And you finish the way professionals do: tested, signed, packaged and licensed.

Thirty-nine stations.
One route.

Read each stage from top to bottom. The C++ you need comes right before the plugin that uses it, and the shipping work runs alongside from the second stage.

JUCE plugin, 19 modules Just Enough C++, 11 modules Distribution and Licensing, 9 modules
Stage 1

First sounds

Make a tone, learn what a plugin is, then control level and position.
00Hello, Sound
C1Values & Types
C3Classes & Enums
C4Inheritance & Polymorphism
F1Plugin Anatomy
C2Functions & Lambdas
C5Values, Pointers & References
01Gain
02Pan
Stage 2

Shaping sound

Parameters the host can automate and save, then effects that reshape the waveform and delay it.
C6Memory & Ownership
C9Templates
F2Parameters & State
F2bState & Attachments
03Tremolo
04Bitcrusher
05Distortion
C7Containers & Spans
C8Undefined Behaviour
06Delay
Ship in parallel
D1Plugin Formats
D2CI Builds
D3Testing & pluginval
D4macOS Signing & Notarization
Stage 3

Real time and frequency

The rules of the audio thread, then thinking, filtering and oversampling in frequency.
F3Real-time Safety
07Thinking in Frequency
08Filter
08bOversampling & Latency
Ship in parallel
D5Windows Signing & Installers
D6Linux Packaging
D7Licensing with Keygen.sh
Stage 4

Seeing sound

An editor of your own, with meters, a scope and a spectrum analyser.
C10Headers, Sources & the Build
C11Threads & Mutexes
F4GUI & Meters
09Oscilloscope
10Spectrum Analyzer
Ship in parallel
D8License Server Deployment
D9Pricing & Storefront
Stage 5

Dynamics and your own plugin

A compressor, then a full channel strip that you validate and ship.
11Compressor
12Capstone: Channel Strip

Designed around how programmers learn.

Every module uses the same few techniques from learning research. You will notice them as habits, not as theory.

C++ arrives when you need it.

Each language feature is taught right before the plugin that first uses it, so you practise it within the hour on something you can hear.

Every lesson starts by remembering.

A warm-up of up to three questions from earlier modules opens each theory page. Recalling older material at intervals is what makes it stay.

Guess first, then press Run.

Before your first run you predict what you will hear. Each exercise becomes a small experiment, and a wrong guess is the most useful kind.

Support fades as you improve.

You write each exercise yourself, with hints when you ask for them. Once every check passes, Make it yours asks you to extend the plugin with no hints at all.

Three rooms in every module.

Watch the idea, write the code, then see and hear what it did. There is nothing to install: the platform compiles your code and it plays in your browser.

03Tremolo TheoryPracticeVisualizers
y[n] = x[n] · (1 − d · ½(1 + sin φ[n])) rate 5 Hz · depth 0.6
Chapter 2 · The LFO 1:26 / 8:58

A wave this slow is called a low-frequency oscillator, or LFO. You don't listen to it. It moves something else.

Warm-up · 1 of 3 From 01 Gain: which multiplier corresponds to −6 dB? ≈ 0.25≈ 0.5 ✓
Before you start F2 Parameters & State. Rate and depth are parameters. Depth is smoothed per sample, so it glides.C1 Values & Types. Member variables keep the phase alive between blocks.
math ↔ code
φ[n+1] = φ[n] + 2π · f / fs
phase += phaseInc;
Theory. A narrated, animated lesson draws the signal while you follow the transcript, chapter by chapter, and a short quiz closes it. The maths sits next to the C++ it turns into.

C++20 and C++23, the way audio code needs it.

The audio thread has strict rules. It can't allocate memory, take a lock or wait for anything, or you hear a click. Modern C++ lets you follow those rules and have the compiler check them. Here is a tremolo's processBlock as you will write it by module F3.

Source/PluginProcessor.cpp
void processBlock (juce::AudioBuffer<float>& buffer, juce::MidiBuffer&)
1 [[clang::nonblocking]] override
{
2 depth.setTargetValue (depthParam->load (std::memory_order_relaxed));
for (auto ch = 0; ch < buffer.getNumChannels(); ++ch)
{
3 std::span samples { buffer.getWritePointer (ch),
(size_t) buffer.getNumSamples() };
for (auto& s : samples)
s *= gainAt (depth.getNextValue());
}
}
// Written by the GUI thread, read by the audio thread
4std::atomic<float>* depthParam {};
static_assert (std::atomic<float>::is_always_lock_free);
  1. 1[[clang::nonblocking]]Clang warns at compile time if anything called from here may allocate or lock. In your own CLion project, RealtimeSanitizer catches what slips through when the plugin runs.
  2. 2juce::SmoothedValueRamps the depth across the block instead of jumping, which removes the zipper noise you hear when a knob moves.
  3. 3std::spanA view of one channel with its length attached. The range-for cannot run past the end of the buffer.
  4. 4std::atomicThe GUI and audio threads share the value without a lock, and the static_assert proves it is lock-free on this platform.

The Just Enough C++ track

Eleven modules, each with a memory diagram you can step through line by line.
C1Values & Typesauto, brace initialisation, const, constexpr, narrowing
C2Functions & Lambdasparameters, lambdas and captures, std::function
C3Classes & Enumsmembers, constructors, enum class, std::optional
C4Inheritance & Polymorphismvirtual and pure virtual, override, final
C5Values, Pointers & Referencesvalue, pointer and reference semantics, passing to functions
C6Memory & Ownershipstack and heap, new and delete, unique_ptr, shared_ptr
C7Containers & Spansstd::array, std::vector, std::span, ranges
C8Undefined Behaviouruninitialised reads, memory you do not own, the tools that catch them
C9Templatesfunction and class templates, concepts, reading template errors
C10Headers, Sources & the Builddeclarations, linking, static and dynamic libraries
C11Threads & Mutexesstd::mutex, std::atomic, lock-free hand-off

Sonic Supernova for CLion.

When an exercise is ready to become a real plugin, the CLion plugin creates the JUCE project, sets up CMake and checks your toolchain. Then it stays docked beside your code with the lesson, its checks and plain-language build errors.

TRtremolo⌄ main ⌄ tremolo · Debug ⌄ ▶
New Project C++ Executable C++ Library JUCE audio project C Executable
Name:tremolo Location:~/AudioProjects/tremolo
What are you building?
Audio effectProcesses sound that's already there. Reverb, distortion, EQ, delay.
SynthesiserCreates sound from MIDI notes. Needs no audio input.
MIDI effectChanges notes, not sound. Arpeggiators, chord generators.
Standalone appA normal application, not a plugin. The simplest place to start.
DSP libraryAudio code in plain C++, with tests. No JUCE and no interface.
WorkspaceA plugin plus a DSP library it links, so the sound can be tested on its own.
How do you want to build the interface?
C++The standard way. Everything in one language, fast to load, and total control over custom drawing and metering. You'll write more code to get a good-looking result.
Web (Svelte + TypeScript)Build the interface with HTML and CSS, with live reload while the plugin runs. Far faster to make something beautiful. Costs extra memory and startup time per plugin instance, which matters in a large session.
How should the project teach?Explain as you goJust the code
JUCE licenceAGPLv3 (open source)Commercial JUCE licence
A few decisions, then Create. Name the project, choose one of six project types and how to make its interface, and say which JUCE licence you use. Formats, plugin codes, the C++ standard and CI stay behind Advanced with sensible defaults.

From a build on your machine to a product people buy.

The Distribution and Licensing track covers formats, testing, signing, installers for three platforms, licensing and a storefront. You deploy the licensing yourself, on infrastructure you control.

Build and test

D1Plugin FormatsVST3, AU, AAX, CLAP and Standalone, and what each host expects.
D2CI BuildsEvery format on every platform, built on each push.
D3Testing & pluginvalDSP unit tests, pluginval, real DAWs and crash reports.

Sign and package

D4macOS Signing & NotarizationDeveloper ID, notarisation and a signed installer.
D5Windows Signing & InstallersCode signing and an installer that puts files in the right place.
D6Linux PackagingTarballs and .deb, dependencies, testing in Reaper and Bitwig.

License and sell

D7Licensing with Keygen.shLicense models, keys and machines, offline activation.
D8License Server DeploymentDeploy on AWS, GCP or Scaleway, with store webhooks.
D9Pricing & StorefrontPricing models, payment providers, downloads and updates.
D7 · D8

Licensing with Keygen.sh, on your own server.

Keygen.sh manages licenses, keys and machine activations, and you can host it yourself. You pick a license model, validate keys inside the plugin, verify the signed response on the device and support offline activation for studio machines that never go online.

Then you deploy the small service around it on AWS, GCP or Scaleway, and connect your store so a sale creates a license and emails the key.

1
Purchaseyour storeThe store sends a webhook when someone buys the plugin.
2
License createdyour serverYour service asks Keygen for a license and emails the key to the customer.
3
Activationplugin → KeygenOn first launch the plugin sends the key and a fingerprint of the machine.
4
Signed responseKeygen → pluginKeygen returns a license file signed for that machine.
5
Verified on the deviceinside the pluginThe plugin checks the signature locally, so it keeps working offline.
The activation path you build and deploy in D7 and D8.

Questions

Do I need to know C++ first?

No. The Just Enough C++ track starts with values and types, and each module comes right before the JUCE module that first uses it. If you already write C++, you can skip those stops.

Do I need a background in maths or signal processing?

No. Module 00 starts with one sine wave, and each theory page shows the maths beside the code it becomes. Comfort with basic algebra helps.

Where does my code run?

When you press Run or Check, your code is sent to the platform, compiled and checked there, and the result plays in your browser. The code you run or check is kept with your account for 90 days, and you can forget it sooner. For your own projects, the CLion plugin generates a standard JUCE and CMake project on your machine, where you can also turn on RealtimeSanitizer.

Do I need CLion?

Not for the browser lessons. You need it for the CLion plugin, which turns exercises into real projects and adds the Doctor, build explanations and in-IDE checks.

Do I have to use Keygen.sh for licensing?

No. The licensing modules use Keygen.sh because you can host it yourself, and the ideas carry over to other providers: license models, activation, signed responses and offline use.

What does it cost?

A one-time €99, VAT included, for the whole course. The course is not open yet.

How long does the course take?

It depends on your pace. Module 00's narrated lesson runs about 9 minutes and its exercise a few more, and most modules fit in one or two sittings. The full route is designed to be followed over months.

Your first sound takes minutes.

Module 00 has you write a sine wave, change one number and hear it change. The rest of the route builds from there.

€99, once, for the whole course. VAT included.

Coming soon