Label Section Counts
label_section_countsWrite section bar counts into MuseScore rehearsal marks, in parentheses or beside labels, to show section length; rerun to replace counts or clear them.
Instructions
Write each section's bar count (e.g. '2x4+2'). placement='label' (default, the chart style the user chose) puts it in parentheses in the section label (rehearsal mark): 'Chorus 1 (2x4)', and sets the labels to label_size points with label_clearance spaces around them, so MuseScore places and spaces them. placement='beside' writes it in bold red right of the label at the label's height (moved past a text already there or up over notes); MuseScore doesn't leave room for it between systems, so it can run into dynamics of the system above: only on request. Without counts, uses song_structure's counts (the ones already written in the labels where they still add up). Running it again replaces the counts in either form; clear=True removes them.
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": "label_section_counts"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| size | No | Font size in points (placement='beside') | |
| clear | No | Remove the counts instead (at the given measures, or at every section label) | |
| color | No | Text color (placement='beside') | #d62728 |
| staff | No | Staff to analyse when counts are computed (0-based). Defaults to the first drum staff. | |
| counts | No | Counts to write: [{"measure": 8, "text": "2x4+2"}] (measure = the bar holding the section label). Defaults to song_structure's counts. | |
| placement | No | In parentheses in the section label, or as red text beside it | label |
| label_size | No | Section label font size in points (placement='label'; MuseScore's default is 14); None leaves it | |
| label_clearance | No | Minimum space around section labels in staff spaces (placement='label'; MuseScore's default is 0.5); None leaves it |