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 StudioRuns 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.
- Traditional fiddle music from Québec, Acadia and the British colonial repertoire: reels, jigs, hornpipe, march and waltzes, with foot percussion (podorythmie).
- Game soundtracks in the manner of Nuclear Throne (the desert) and The Binding of Isaac (Basement, Cellar, Burning Basement, Downpour), played on the Odin synthesizer.
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
- Engine and studio: github.com/estran-studio/harmonium, MIT OR Apache-2.0.
- The web studio includes the Odin synthesizer (odin-rs, derived from Odin 2), so the published application is licensed under the GPL-3.0; its Odin presets are factory presets of Odin 2.
- Instrument bank: GeneralUser GS by S. Christian Collins. Foot percussion: CC0 samples from Freesound.