Interactive Experiment · Web Audio & Music Theory

Procedural Classical

An endless classical composer and acoustic synthesiser running entirely in the browser with zero external audio samples. Every piece is generated live from functional harmony, four-voice SATB voice leading, motivic development, and expressive rubato.

D minorA · ExpositionBar 1/8mp
MelodyHarmonyBass

Bel-canto soprano over wide Chopin arpeggios, damper pedalling, and rubato

Circle of fifths
CAmGEmDBmAF♯mEC♯mBG♯mF♯E♭mD♭B♭mA♭FmE♭CmB♭GmFDmDmminor
HarmonyTonic
i → i6 → iv → V
Journey: Dm
MotifStatement
Flowing Cantilena
Voice leadinga tempo
1.4 st avg motion
SATB: D2 · F3 · A3 · D4
Space play · N new theme · M modulate · 1–5 styleClick keys, bars, or fifths nodes to audition

How the engine stays musical

All experiments

1. Period grammar, not random chord loops

Antecedent · Consequent

Music breathes in eight-bar periods: four bars moving towards a Half Cadence on the dominant, answered by four bars resolving through a split cadential 6/4 → V7 into an Authentic, Deceptive, or Picardy third cadence.

2. Four-voice SATB voice-leading solver

Parsimonious motion

On every chord change, the inner voices search valid register placements to minimise total semitone travel, retain common tones, preserve chord thirds and sevenths, and penalise parallel fifths or octaves against the bass.

3. Motivic development and chord-accurate scales

Statement → Sequence → Inversion

Each section seeds a short diatonic contour cell and develops it with sequences, inversions, graceful cadential turns, and leap-and-step-back recovery. Passing tones adapt automatically to secondary dominants, modal mixture, and Neapolitan chords so melodies never clash with the harmony.

4. Large-scale form and acoustic synthesis

A · A′ · B · A″ · Web Audio DSP

Periods cycle through exposition, ornamented repeat, contrasting episode, and return while modulating via pivot dominants around the Circle of Fifths. Every instrument is synthesised from custom harmonic waveforms — felt hammer transients, syncopated damper pedalling at chord boundaries, three-voice string formants, and a pre-delayed stereo concert hall — and exports cleanly to multi-track MIDI.