Find Repeated Measures
find_repeated_measuresDetects repeated measures and duplicated passages in a MuseScore score, returning per-staff measure-repeat candidates and whole-score repeat barline candidates, with the tool calls needed to apply them.
Instructions
Find repeated material in the score. Returns (1) per-staff bars that repeat the previous 1, 2 or 4 bars, candidates for measure-repeat signs (these declutter the page but keep the length), and (2) whole-score passages played again right away, candidates for repeat barlines and 1st/2nd endings (these shorten the score once the duplicate measures are deleted). Each passage lists the tool calls that apply it. Reads the score in small chunks, so it works on large scores. Measure numbers refer to the score as it is now: apply passages from the last one backwards.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "find_repeated_measures"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| staves | No | Staff indices to analyse (0-based). Defaults to all staves. | |
| highlight | No | Also color the results in the score: duplicate measures of each passage in a passage color, per-staff measure repeats in orange. Undo or clear_color removes it. | |
| end_measure | No | Last measure to analyse (1-based, inclusive). Defaults to the end of the score. | |
| start_measure | No | First measure to analyse (1-based) |