Audio features
audio_featuresMeasure song energy, danceability, loudness, key, mode, and tatum per section from an existing analysis or local audio file, saving the feature metadata to the results folder.
Instructions
Measure energy, danceability and loudness for the song and each section, plus the key, mode and tatum.
Give the analysis_id from segment: nothing is uploaded and it is included in that analysis's
run. A file_path runs segment first (one run). Needs no stems, so it can run straight after
segment. Energy and danceability run 0-1: energy reflects loudness, rhythmic activity and
low end; danceability, how strong and regular the beat is. Both are measured per section,
so a drop reads higher than its breakdown. loudness_lufs is integrated loudness in LUFS.
The values are in metadata: key and camelot, features (energy, danceability,
loudness_lufs, mode, mode_confidence, tatum) and sections (label, start, end, energy,
danceability, loudness_lufs); null means not measured. They are saved to the results
folder.
Tool call template
This tool declares no required parameters. Add optional parameters from the input schema as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {},
"name": "audio_features"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| file_path | No | Full path to a local audio file (.wav, .mp3, .aif, .aiff, .flac, .m4a, .ogg, .aac). ~ is expanded. For a track that has not been analysed yet: segment runs on it first (one run). Give this or analysis_id. | |
| analysis_id | No | The analysis_id a segment result returned (in its metadata and summary). Reuses that analysis: nothing is uploaded and it does not count as another run. Give this or file_path. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| tool | Yes | ||
| files | Yes | ||
| summary | Yes | ||
| metadata | Yes | ||
| output_dir | Yes | ||
| execution_id | Yes |