transpose_for_instrument
Adjust a part's transposition offset to convert between transposing instruments, e.g., Bb clarinet ↔ concert pitch, alto sax → tenor sax.
Instructions
Adjust the transposition offset for a transposing instrument part.
Modifies the MusicXML element — useful for converting between transposing instruments (e.g. Bb clarinet ↔ concert pitch, alto sax → tenor sax).
Pass either instrument (shorthand) or explicit chromatic + diatonic.
Known instruments: concert, bb_clarinet, bb_trumpet, bb_soprano_sax,
bb_tenor_sax, eb_alto_sax, eb_baritone_sax, f_horn, a_clarinet.
Args: score_b64: Base64-encoded score file. input_suffix: Input extension, e.g. "mscz". instrument: Instrument shorthand name (optional). chromatic: Semitone offset written→sounding (optional). diatonic: Diatonic step offset written→sounding (optional). part_index: Which part to affect (0-based). None = all parts.
Returns: Modified MusicXML as a UTF-8 string.
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_b64": "<score_b64>",
"input_suffix": "<input_suffix>"
},
"name": "transpose_for_instrument"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| score_b64 | Yes | ||
| input_suffix | Yes | ||
| instrument | No | ||
| chromatic | No | ||
| diatonic | No | ||
| part_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |