key_song
🟡 Incomplete
This API's output may have additions in the future.
Input a Song
key, retrieve a Song
.
Inputs
Field | Type | Description |
---|---|---|
key | Song key (unsigned integer) | See Key |
Outputs
Field | Type | Description |
---|---|---|
song | Song object | See Song |
Example Request
festival-cli key_song --key 2594
curl http://localhost:18425 -d '{"jsonrpc":"2.0","id":0,"method":"key_song","params":{"key":2594}}'
Example Response
{
"jsonrpc": "2.0",
"result": {
"song": {
"title": "SUNFLOWER",
"key": 2594,
"album": 237,
"runtime": 252,
"sample_rate": 44100,
"track": 1,
"disc": null,
"mime": "audio/mpeg",
"extension": "mp3"
}
},
"id": 0
}