Music
Get a song's show
GET
/api/songs/{id}/showOpen. 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
idstringrequiredA song id (m…).
Responses
200OKapplication/json
idstringnamestringdurnumbereditedbooleanshowobject[]colorsobject[]cuesobject[]brightobject[]bpmnumberPnumberoffnumberbarOffnumberstylestringdropsanybarsanyenvstringLoudness, 10 values a second, as base64 bytes.
palettesmap of string[]404No such id.application/json
errorstringrequiredWhat went wrong, in a sentence for people.
Request
curl 'http://localhost:8080/api/songs/m9x2q1/show'const res = await fetch("http://localhost:8080/api/songs/m9x2q1/show");
const data = await res.json();
console.log(data);import requests
res = requests.get(
"http://localhost:8080/api/songs/m9x2q1/show",
)
print(res.json())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"
]
}
}{
"error": "That song isn't remembered"
}