Set score tempo
score.set_tempoThe tempo of a score in beats per minute: one value for all of it (tempo), or changes at beats (changes; one or the other). A change at beat 0 sets the opening tempo; ramp true glides from the change before and arrives at this one's tempo on its beat. A stretch of n beats at tempo T lasts 60 × n / T seconds, so a change of tempo can put any moment of the picture exactly on a beat. Notes and notes regions keep their beats, so their times in seconds move; audio regions keep their length in seconds unless they were placed with fit_beats. Returns the new score_id (edit that one next), the score's length, and where each bar now starts in seconds and frames.
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": {
"score_id": "<score_id>"
},
"name": "score.set_tempo"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tempo | No | One tempo for the whole score, in beats per minute | |
| changes | No | [{at_beats, tempo, ramp}]: each replaces a change on its beat or adds one | |
| score_id | Yes | The score to edit |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| bars | Yes | Where each bar starts, up to the end of the score | |
| length | Yes | The end of the score: where its last region ends | |
| parent | Yes | The version this edit started from | |
| changed | Yes | What the edit added, removed or modified | |
| score_id | Yes | The new version: edit this one next (older ids stay valid) | |
| warnings | Yes | ||
| bars_total | Yes | How many bars there are (up to 2,000 are listed) |