Harmonium

An open-source Rust engine that composes music bar by bar, live, for games. Four emotions — arousal, valence, density, tension — steer the tune, the harmony, the texture and the tempo; a change is heard at the next bar.

Open Harmonium Studio

Runs in your browser. The first visit downloads the application and about 8 MB of instruments; later visits load them from your device. Click Start to turn the sound on.

Styles

Each style is a profile written in TOML: form, meter, melodic cells, harmony, accompaniment, dynamics and instruments.

Harmonium Studio

Live

Pick a style and a seed, move the emotions, and watch the form, the chords and a piano roll of every track follow the music. Mixer, loops, tempo ramps.

Workbench

Fork a style, edit its TOML files with errors shown on their line, and apply it: the next bar plays your version. Download it as a folder for the command-line tools.

Record

Save what plays as WAV, MIDI or MusicXML. The same seed plays the same music.

Source and licences