Delete notes
delete_notesDeletes notes by index from an OpenUtau part, shifting later notes down; omit indices to clear all notes while keeping the part. Live edits are undoable; file edits are permanent.
Instructions
Delete notes by index; omitting indices deletes every note in the part (the part stays). Later notes shift down in index. Live it is one undo step; with path it is permanent. Returns deleted and note_count. Use remove_part to delete the part itself. An empty list is refused. / 番号で音符を削除します。indices 省略でパートの 全音符(パートは残る)。空のリストは拒否します。ライブでは取り消し可、path 指定では元に戻せません。
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": {
"part": "<part>"
},
"name": "delete_notes"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| part | Yes | Voice part index from 0, counting voice parts only (see get_project voice_parts). / ボイスパート番号(0 から、ボイスパートのみ数える) | |
| 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 のプロジェクト | |
| indices | No | Note indexes in the part (see list_notes). Omit for every note. / 音符番号のリスト。省略で全音符 |