detect_track_key
Detect the key or scale of a track by analyzing all its Session clips, with selectable weighting for note duration, velocity, product, or count.
Instructions
Detect the key/scale of a whole track by pooling the notes of every
Session clip it holds (Krumhansl-Kessler). Useful when a part is spread
across several clips. weight selects the histogram weighting ("duration",
"velocity", "product", "count"). Reads only; changes nothing.
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_index": "<track_index>"
},
"name": "detect_track_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| weight | No | duration | |
| track_index | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |