Create score
score.createStart an empty score: music made in layers and rendered to audio media for a timeline. A score is its own document beside the timeline: parts (layers), each with devices (instruments, then effects) and regions (stretches of notes or audio) on a grid of beats. tempo, meter and sample_rate are required; nothing is assumed. Positions are beats from 0 (a quarter note is 1; decimals allowed); results give each one in seconds too, and in frames when fps is given, and any position argument can be given in seconds instead (at_seconds for at_beats, and so on). Scores are immutable: every edit returns a new score_id, and older ids stay valid for 7 days after last use. For work longer than that, keep the score.get document on your side and restore it with score.load. Returns the score_id.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"tempo": "<tempo>",
"meter": "<meter>",
"sample_rate": "<sample_rate>"
},
"name": "score.create"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| fps | No | {num, den}: a timeline's frame rate. With it, every position also comes back in frames | |
| name | No | A label | Untitled |
| meter | Yes | {beats, unit}: beats in a bar and the note that is one beat, e.g. {beats: 4, unit: 4} | |
| tempo | Yes | Beats per minute, 20 to 400, decimals allowed | |
| sample_rate | Yes | 44100 or 48000: of the audio it renders |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score_id | Yes | Score handle; every edit returns a new one |