key_song

🟡 Incomplete

This API's output may have additions in the future.


Input a Song key, retrieve a Song.

Inputs

FieldTypeDescription
keySong key (unsigned integer)See Key

Outputs

FieldTypeDescription
songSong objectSee 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
}