Every note in key
On SYNTH, every tune you draw sounds right. That is not a filter on wrong notes. The grid has no wrong notes to play: its eight rows are the eight notes of one scale, and nothing else.
Rows, not keys
A piano has twelve notes to an octave, and most tunes use seven or fewer of them. A beginner's wrong note is almost always one of the other five. SYNTH leaves them out. Its grid is eight rows of steps, and each row is a note of C minor pentatonic, engraved beside it: C, E♭, F, G, B♭, then C, E♭ and F again an octave up.
A pentatonic scale has five notes, no two of them a semitone apart. With no semitone in it there is no clash to find: any two notes of the eight played together, or one after the other, sit well. That is why a tune drawn at random on the grid still sounds like a tune.
The rule
Each row is a number of semitones above C: 0, 3, 5, 7, 10, 12, 15 and 17. The engine adds that to middle C, which is note 60, and to twelve for each octave the sound and OCTAVE are set to. The pitch is then 440 hertz times two to the power of the note, less 69, over twelve. That is the whole of it, worked out as each note starts.
A seven-note scale would end at its octave on the eighth row. The pentatonic keeps climbing past it, so the eight rows reach an octave and a half, from C to the F above the next C. Fig. 1 shows the eighteen semitones in that span, and the eight the rows can play.
One key, chosen once
In this version the key is C minor pentatonic for every tune, and the player does not choose it. The engine can hold any of twelve keys and five scales: minor and major pentatonic, minor, major and dorian. A printed tune carries its key in its code. Today every one is written in C.
One key for everything is the point as much as a limit. A beat and a tune made on the same phone always fit together, and so does any tune scanned from a friend's receipt.
PADS, in the same key
PADS has a key called SPREAD. It lays one sound across all twelve pads in SYNTH's key, so whatever pattern your fingers make on the pads is a melody too.
Sources
- The rows of each scale, and the rule from a row to a pitch: the engine's synth source, read from 1.0.4, 26 October 2026.
- The one key, C minor pentatonic: the panel's synth, which sets it once, and the receipt writer, which prints root 0 and scale 0, in the same build.
- Twelve keys and five scales held by the engine: the engine's core, which refuses any other.
- SPREAD: the pads' pitch, which gives every pad one pad's sound pitched up SYNTH's scale, in the same build.
More sheets
- How Beep Boop makes a soundTwo voices, TEAR, and one path out.
- An instrument in SwiftUIOne accent, a key lit from inside, nothing unneeded.
- A kick drum is twelve numbersHow a drum machine's kit is built.
- The audio thread never waitsNo allocation, no lock, one queue.
- PatternsDrum patterns drawn on sixteen steps.
- Tempo by genreBPM for twelve genres, on one scale.