Highlight Bars
highlight_barsHighlights selected measures or beats with a semi-transparent color band behind notes, following bars across line breaks. Set measure, beat, staff, color, and opacity; remove highlights as needed.
Instructions
Highlight bars like a highlighter pen: a thick, semi-transparent band behind the notes of each staff in the range, following the bars across line breaks. start_beat/end_beat limit it to part of a bar. Saved in the score; remove with clear_highlights. Experimental: check the result in the score.
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": {
"start_measure": "<start_measure>"
},
"name": "highlight_bars"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| color | No | Highlight color as "#rrggbb" (default yellow) | #ffe600 |
| opacity | No | Opacity from 0 to 1 | |
| end_beat | No | Last beat in end_measure to include, the whole beat (e.g. 4 = through the end of beat 4). Defaults to the end of the measure. | |
| last_staff | No | Last staff (0-based, inclusive). Defaults to first_staff. | |
| start_beat | No | Beat in start_measure where coloring starts (1-based; fractions allowed, e.g. 3.5 for the 'and' of 3). A beat is the time signature's denominator: a quarter in 4/4, an eighth in 6/8. Defaults to the start of the measure. | |
| end_measure | No | Last measure (1-based, inclusive). Defaults to start_measure. | |
| first_staff | No | First staff (0-based) | |
| start_measure | Yes | First measure to highlight (1-based) |