constrain_to_key
Snap proposed notes to the nearest in-key pitches before writing, based on a chosen key and mode.
Instructions
Snap a proposed note set to the nearest in-key pitches before writing.
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": {
"notes": "<notes>",
"key": "<key>"
},
"name": "constrain_to_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| notes | Yes | ||
| key | Yes | ||
| mode | No | major |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||