A cantus firmus (lower staff by default) and a counterpoint in whole notes, after Fux's Gradus ad Parnassum (1725). Every measure shows the interval between the voices; the list below the music names each broken rule. Compose writes a fresh counterpoint that satisfies the rules; drag any note with a finger or mouse to write your own and watch the checks update.
Rules checked: consonances only (no 2nds, 4ths, 7ths, tritones); begin on a perfect consonance, end on a unison or octave approached by step; no parallel fifths or octaves; no voice crossing; no leaps of a 7th, tritone or beyond an octave. Warnings: hidden fifths/octaves, unrecovered leaps, repeated notes, more than one high point, too many perfect consonances.
| Space | Play / stop | C | Compose a new counterpoint |
| A | Counterpoint above / below | M | Next mode (loads Fux's cantus firmus) |
| ← → | Select measure | ↑ ↓ | Move the selected note |
| V | Switch the voice being edited | Z | Undo |
| + − | Add / remove a measure | D | Dark / light |
| S O | Save / Open (.json) | E | Export a .mid file |
| Ctrl/⌘ / | This help | Esc | Close |
Save and MIDI download files when the page is opened directly as a file; the artifact viewer blocks page downloads. Everything runs offline in this one file.