als_detect_key
Detect the musical key of a saved Ableton Live set file by analyzing MIDI clip notes, with options for track-specific analysis and note weighting.
Instructions
Detect the key/scale of a saved .als file WITHOUT Live running
(Krumhansl-Kessler). Pools notes from every MIDI clip in the set, or only
one track when track_index is given. weight selects the histogram
weighting ("duration", "velocity", "product", "count"). path is a
filesystem path to a .als file.
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": {
"path": "<path>"
},
"name": "als_detect_key"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| path | Yes | ||
| weight | No | duration | |
| track_index | No |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |