Number Bars As Played
number_bars_as_playedNumbers bars to count repeated passages as actually played, so measure numbers jump after repeats. Run it again after changing repeats, exclude pickup bars, or reset to plain 1..N numbering.
Instructions
Make the displayed bar numbers count repeated bars, as played: after a passage between repeat barlines played N times, the next bar's number jumps by (N - 1) x the passage length. Recomputes all bars (MuseScore's 'Add to measure number'), so it can be run again after changing repeats. exclude_from_count leaves bars out of the count, e.g. [1] for a silent pickup or intro bar. reset=True removes all offsets and exclusions instead (plain 1..N numbering). Voltas are not taken into account. Needs MuseScore 4.6+. Tools keep addressing bars by position.
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": "number_bars_as_played"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| reset | No | Undo the numbering: plain 1..N, no offsets or excluded bars | |
| exclude_from_count | No | Bar positions (1-based) to exclude from the count, e.g. [1] |