Partitura
A compact language for authoring Music Scores.
Optimized for LLM Agent Skills.
score {
title "Rise Again"
composer "Partitura"
part "Piano" {
measure 1 {
time 4/4
key c-major
note c4 quarter
note e4 quarter
note g4 quarter
note c5 quarter
}
}
}
Why Partitura?
Compact Authoring
Write scores in a fraction of the lines MusicXML requires.
Canonical Source
One preferred form for every musical concept.
Full MusicXML
Covers the complete MusicXML specification semantically.
LLM Agent Skills
Installable skills for AI coding assistants. Compose with your agent.
Deterministic
The same input always produces the same output.
Install
npx @partitura/skill
npm install -g partitura
brew install Partitura-Music/partitura/partitura
winget install Partitura-Music.partitura
CLI Commands
| Command | Description |
|---|---|
compile |
Compile .pta to MusicXML |
convert |
Convert MusicXML to .pta |
validate |
Validate a .pta or MusicXML file |
format |
Format a .pta file |
export |
Export to PDF, PNG, MP3, WAV, MIDI |
check |
Check for issues in a .pta file |
ast |
Print the AST of a .pta file |
doctor |
Verify local toolchain state |
roundtrip |
Verify semantic preservation across conversion |