Add voice part
add_partAdds an empty voice part to a track and returns its index, enabling notes or melodies to be placed with add_notes or add_melody.
Instructions
Add an empty voice part to a track. Notes go in with add_notes or add_melody; parts grow to fit their notes, and update_part fit_to_notes=true trims one to the next bar line. Returns part (its voice part index); live also summary. / トラックに空のボイスパートを追加します。音符は add_notes か add_melody。part(番号)を返します。
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": {
"track": "<track>"
},
"name": "add_part"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Part name (default "New Part"). / パート名 | |
| path | No | A .ustx file to edit directly (OpenUtau may be closed). Omit to use the project open in OpenUtau (needs the bridge). / 直接編集する .ustx ファイル(OpenUtau は閉じていて可)。省略で OpenUtau のプロジェクト | |
| track | Yes | Track index from 0 (see get_project tracks). / トラック番号(0 から) | |
| duration | No | Length in ticks (7680 = 4 bars of 4/4). / 長さ(ティック) | |
| position | No | Start tick in the song (0 = start). / 曲中の開始ティック |