Music

Get a song's show

GET/api/songs/{id}/show
Open. Open to everyone who can reach Tempolight.

The song's timeline of effects, colours, cues and brightness (made automatically the first time), plus what the show editor draws: the beat grid, bars, drops, loudness and the palettes' colours.

Path parameters

idstringrequired

A song id (m…).

Responses

200OKapplication/json
idstring
namestring
durnumber
editedboolean
showobject[]
colorsobject[]
cuesobject[]
brightobject[]
bpmnumber
Pnumber
offnumber
barOffnumber
stylestring
dropsany
barsany
envstring

Loudness, 10 values a second, as base64 bytes.

palettesmap of string[]
404No such id.application/json
errorstringrequired

What went wrong, in a sentence for people.

Request
curl 'http://localhost:8080/api/songs/m9x2q1/show'
Response
{
  "id": "m9x2q1",
  "name": "One More Time",
  "dur": 320.4,
  "edited": false,
  "show": [
    {
      "t0": 0,
      "t1": 32,
      "part": "calm",
      "effect": "aurora"
    }
  ],
  "colors": [],
  "cues": [],
  "bright": [],
  "bpm": 122.7,
  "style": "party",
  "palettes": {
    "sunset": [
      "#ff5e3a",
      "#ffb347"
    ]
  }
}
Edit on GitHub