Compose in code.Hear the edit.

Carmen is an open-source language for music composition. Write musical ideas as code, change a rule, and hear what it does to the score.

Interference

Five upper notes cross four lower notes. In Take B, the upper notes finish sooner while the lower rhythm stays fixed.

Choose a take

Carmen source

let upper = 1/20 [c5, cs, e, fs, c6];
let lower = 1/16 [g3, eb, b, fs];
Engraved score · Take A
LilyPond engraving of Interference Take A, showing the Glass and Reeds parts.

Install Carmen

Use Cargo to install the command-line tool, then follow the 0.2.0 language manual.

cargo install carmen-lang --version 0.2.0 --locked

Download Interference Take A and run this from the folder where you saved it.

carmen --export midi interference-a.carmen interference.mid
More export formats

Coming to macOS

Carmen Studio

Edit a score and audition the same passage across two takes. Carmen Studio brings Carmen source, a piano roll, and engraved notation into one window.

View a larger Carmen Studio screenshot showing a tetrachord study in the piano roll with Take A pinned.