Music
A person’s music and podcast links, imported music tracks and podcast episodes.
Objects
Section titled “Objects”DiverseShuffle
Section titled “DiverseShuffle”Object · staffql only
Songs in a random order where neighbouring songs do not sound or feel too alike (Diverse Shuffle).
| Field | Type | Description |
|---|---|---|
keys staffql only |
[String!]! |
The songs in order, as they were given. |
mode staffql only |
DiverseShuffleMode! |
How it picked each song. |
profile staffql only |
String! |
The rule profile it followed. |
seed staffql only |
String! |
The seed: the same seed gives the same order. |
steps staffql only |
[DiverseShuffleStep!]! |
Each song, with why it went there. |
DiverseShuffleCheck
Section titled “DiverseShuffleCheck”Object · staffql only
One hard rule checked for a song as it was placed.
| Field | Type | Description |
|---|---|---|
check staffql only |
String! |
min_distance, max_same_in_window or min_gap. |
note staffql only |
String |
Why it passed without comparing, or what matched. |
passed staffql only |
Boolean! |
Whether the song passed it. |
rule staffql only |
String! |
The rule: its dimension and method, or the attributes it compares, such as sound/embedding or voice(voice_gender,register_band). |
threshold staffql only |
Float |
The rule’s threshold at the loosening level used. |
value staffql only |
Float |
What was found: the closest distance, how many alike songs in the window, or how many songs back the last alike one was. |
DiverseShuffleStep
Section titled “DiverseShuffleStep”Object · staffql only
One song in a Diverse Shuffle order, with why it went there.
| Field | Type | Description |
|---|---|---|
checks staffql only |
[DiverseShuffleCheck!]! |
The hard rules checked for it. |
considered staffql only |
Int! |
How many songs were looked at for this slot. |
hasFeatures staffql only |
Boolean! |
Whether anything is known about the song (a measured recording); unknown songs pass every rule. |
key staffql only |
String! |
The song as it was given (a Spotify track URI or id, an MBID). |
level staffql only |
Int! |
How far the rules were loosened to place it: 0 as written; past the profile’s last step, only the soft score counted. |
position staffql only |
Int! |
Its place, from 1. |
rejected staffql only |
Int! |
How many songs were ruled out for this slot at that level. |
score staffql only |
Float! |
How far it sits from the songs before it, 0 (alike) to 1. |
title staffql only |
String |
Its title, when the recording is known. |
EquipmentTrack
Section titled “EquipmentTrack”Object
Track metadata reported by venue equipment.
| Field | Type | Description |
|---|---|---|
album |
String |
Album name. |
artist |
String |
Artist name. |
artworkUrl |
String |
The cover art, an https link, when the player gives one. |
expiresAt |
ISO8601DateTime! |
When the report becomes stale. |
playerId |
String |
Player selected by the equipment agent. |
playing |
Boolean |
Whether it was playing (false: paused) when reported, with positionMs; null when the player gave no position. |
positionMs |
Int |
How far into the song the player was at reportedAt, in ms. |
reportedAt |
ISO8601DateTime! |
Server time of the report. |
source |
String |
Equipment adapter, such as alphatheta-connect. |
title |
String! |
Track title. |
upNext |
[UpNextTrack!]! |
The songs the venue plays next, in order, when its player knows them (Velvet Display shuffling a night). |
LyricTiming
Section titled “LyricTiming”Object
When each lyric line of a track is sung, for sing-along screens, without the words (LyricTiming): the screen fetches the words from its own licensed source and takes the time of each line whose hash matches.
| Field | Type | Description |
|---|---|---|
artist |
String |
Artist, as reported. |
durationMs |
Int |
Track length, in milliseconds. |
hasFingerprint |
Boolean! |
Whether a Chromaprint fingerprint of the recording was reported. |
hasWords |
Boolean! |
Whether the words are kept with the timing (encrypted), so syncedLines works without a Musixmatch key. |
isrc |
String |
The recording’s ISRC, when known. |
lines |
[LyricTimingLine!]! |
Every line, in order. |
lyricsRef |
String |
The lyrics source’s id for the words, such as a Musixmatch track id. |
lyricsSource |
String |
Where the words come from, such as musixmatch. |
matchedLines |
Int! |
Lines timed from the audio; the rest were spread between them. |
mediaItemId |
ID |
The media item (a variant of a song) it times, when it has no Spotify track. |
musicbrainzRecordingId |
String |
The MusicBrainz recording id (MBID), when known. |
reportsCount |
Int! |
How many reports there have been for the track. |
source |
String |
What timed it, such as velvet-aligner or venue-lrc. |
spotifyTrackId |
String! |
The Spotify track id; empty for a media item’s own timing (mediaItemId), which Venue.music.lyricTimings never returns. |
syllableLines |
Int! |
Lines timed syllable by syllable (lines.syllables). |
syncedLines |
[SyncedLyricLine!] |
The lines with their words: the kept words, else Musixmatch’s with AudienceKit’s key, then kept. Null when neither has them or the words are another version of the song. |
title |
String! |
Track title, as reported. |
updatedAt |
ISO8601DateTime! |
When the kept timing last changed. |
LyricTimingLine
Section titled “LyricTimingLine”Object
When one lyric line is sung. It carries a digest of the line’s words, never the words: match it to the words from your own licensed source, digested the same way (LyricTiming.line_hash).
| Field | Type | Description |
|---|---|---|
digest |
String! |
First 16 hex digits of SHA-256 of the line’s words: lower case, no accents or apostrophes, anything else but letters and digits one space. |
syllables |
[LyricTimingSyllable!] |
Its syllables in order; null when the line was timed only as a whole. |
time |
Float! |
Seconds from the start of the track. |
LyricTimingSyllable
Section titled “LyricTimingSyllable”Object
When one syllable of a lyric line is sung, by how many of the line’s characters it covers (never the characters): cut the words your licensed source has for the line into syllables of these lengths, in order (Velvet JSON, velvet-syllables/1).
| Field | Type | Description |
|---|---|---|
confidence |
Float |
How sure the aligner was, 0 to 1; null when not measured. |
end |
Float! |
Seconds from the start of the track. |
length |
Int! |
How many of the line’s characters this syllable covers, spaces after it included: Unicode scalars of the NFC form of the line with its ends trimmed. |
start |
Float! |
Seconds from the start of the track. |
MusicServiceTrack
Section titled “MusicServiceTrack”Object · staffql only
A track at the venue’s licensed music service (Soundtrack) that its staff can queue (queueVenueMusicServiceTrack).
| Field | Type | Description |
|---|---|---|
album staffql only |
String |
Its album, when the service says. |
artists staffql only |
[String!]! |
Its artists. |
artworkUrl staffql only |
String |
Its cover art. |
id staffql only |
ID! |
The track’s ID at the service. |
title staffql only |
String! |
Its title. |
PersonMusicView
Section titled “PersonMusicView”Object · implements IPersonMusic
The local Music implementation of a person’s music.
| Field | Type | Description |
|---|---|---|
linksafter: Stringbefore: Stringfirst: Intlast: Int |
SocialLinkConnection! |
Music, podcast and RSS feed links, oldest first. |
tracksafter: Stringbefore: Stringfirst: Intlast: Int |
TrackConnection! |
Their five newest music tracks or podcast episodes. |
SongLyrics
Section titled “SongLyrics”Object
A song’s words for a venue’s sing-along screens, fetched through AudienceKit’s Musixmatch key so the venue’s Mac needs none, and kept so they’re fetched once and survive the key failing (SongLyric).
| Field | Type | Description |
|---|---|---|
fetchedAt |
ISO8601DateTime |
When the words were fetched. |
lrc |
String |
The words in time, as LRC, when the source had them synced. |
partial |
Boolean! |
True when the words are only part of the song (a Basic Musixmatch plan’s); they’re asked for whole again. |
source |
String! |
Where the words came from, such as musixmatch. |
words |
String! |
The words, one lyric line per line. |
SyncedLyricLine
Section titled “SyncedLyricLine”Object
One lyric line with its words and when it is sung, for a sing-along screen.
| Field | Type | Description |
|---|---|---|
digest |
String! |
The digest of its words, as on the timed line (LyricTimingLine.digest). |
syllables |
[LyricTimingSyllable!] |
Its syllables in order, cutting the words by length; null when timed only as a whole. |
text |
String! |
The line’s words. |
time |
Float! |
Seconds from the start of the track. |
TrackConnection
Section titled “TrackConnection”Object
The connection type for Track.
| Field | Type | Description |
|---|---|---|
edges |
[TrackEdge] |
A list of edges. |
nodes |
[Track] |
A list of nodes. |
pageInfo |
PageInfo! |
Information to aid in pagination. |
TrackEdge
Section titled “TrackEdge”Object
An edge in a connection.
| Field | Type | Description |
|---|---|---|
cursor |
String! |
A cursor for use in pagination. |
node |
Track |
The item at the end of the edge. |
UpNextTrack
Section titled “UpNextTrack”Object
A song the venue plays next, in order.
| Field | Type | Description |
|---|---|---|
artist |
String |
Artist name. |
title |
String! |
Track title. |
VenueMusicView
Section titled “VenueMusicView”Object · implements IVenueMusic
The local Music implementation of a venue’s live music.
| Field | Type | Description |
|---|---|---|
diverseShuffle staffql onlylyrics: DiverseShuffleLyricsmode: DiverseShuffleModeprofile: StringprofileJson: JSONseed: String!songs: [String!]! |
DiverseShuffle! |
These songs in a random order where neighbouring songs do not sound or feel too alike (Diverse Shuffle), following a rule profile, with each step explained. The same seed gives the same order; with nothing measured about the songs, greedy mode gives Velvet’s own shuffle for that seed. |
lyricTimingsisrcs: [String!]musicbrainzRecordingIds: [String!]spotifyTrackIds: [String!] |
[LyricTiming!]! |
When each lyric line of these Spotify tracks or recordings is sung, without the words, for sing-along screens; tracks nobody has timed are left out. Shared by every venue. |
lyricsartist: StringdurationMs: Intisrc: StringmusicbrainzRecordingId: StringspotifyTrackId: Stringtitle: String! |
SongLyrics |
A song’s words, fetched through AudienceKit’s Musixmatch key so the venue’s Mac needs no key of its own, and kept so each song is fetched once and survives the key failing. Only this venue’s devices with the music permission. Null when the source has no words for it. |
nowPlaying |
EquipmentTrack |
Latest track while equipment reporting is active. |
queue |
VenueMusicQueue |
Tonight’s songs in the order the venue’s Mac plays them (its night playlist in the lineup): the one on and the ones still to play. Null without a night playlist tonight. |
serviceTracks staffql onlyquery: String! |
[MusicServiceTrack!]! |
Tracks at the venue’s Soundtrack matching a search, for its staff to queue one (queueVenueMusicServiceTrack). Whoever runs the show, as for controlVenueMusic. |
Interfaces
Section titled “Interfaces”IPersonMusic
Section titled “IPersonMusic”Interface · implemented by PersonMusicView · mixin edge music on Person · facet tag music
A person’s music and podcast links, imported music tracks and podcast episodes.
| Field | Type | Description |
|---|---|---|
linksafter: Stringbefore: Stringfirst: Intlast: Int |
SocialLinkConnection! |
Music, podcast and RSS feed links, oldest first. |
tracksafter: Stringbefore: Stringfirst: Intlast: Int |
TrackConnection! |
Their five newest music tracks or podcast episodes. |
IVenueMusic
Section titled “IVenueMusic”Interface · implemented by VenueMusicView · mixin edge music on Venue
Live music reported by equipment linked to this venue.
| Field | Type | Description |
|---|---|---|
diverseShuffle staffql onlylyrics: DiverseShuffleLyricsmode: DiverseShuffleModeprofile: StringprofileJson: JSONseed: String!songs: [String!]! |
DiverseShuffle! |
These songs in a random order where neighbouring songs do not sound or feel too alike (Diverse Shuffle), following a rule profile, with each step explained. The same seed gives the same order; with nothing measured about the songs, greedy mode gives Velvet’s own shuffle for that seed. |
lyricTimingsisrcs: [String!]musicbrainzRecordingIds: [String!]spotifyTrackIds: [String!] |
[LyricTiming!]! |
When each lyric line of these Spotify tracks or recordings is sung, without the words, for sing-along screens; tracks nobody has timed are left out. Shared by every venue. |
lyricsartist: StringdurationMs: Intisrc: StringmusicbrainzRecordingId: StringspotifyTrackId: Stringtitle: String! |
SongLyrics |
A song’s words, fetched through AudienceKit’s Musixmatch key so the venue’s Mac needs no key of its own, and kept so each song is fetched once and survives the key failing. Only this venue’s devices with the music permission. Null when the source has no words for it. |
nowPlaying |
EquipmentTrack |
Latest track while equipment reporting is active. |
queue |
VenueMusicQueue |
Tonight’s songs in the order the venue’s Mac plays them (its night playlist in the lineup): the one on and the ones still to play. Null without a night playlist tonight. |
serviceTracks staffql onlyquery: String! |
[MusicServiceTrack!]! |
Tracks at the venue’s Soundtrack matching a search, for its staff to queue one (queueVenueMusicServiceTrack). Whoever runs the show, as for controlVenueMusic. |
DiverseShuffleLyrics
Section titled “DiverseShuffleLyrics”Enum · staffql only
What Diverse Shuffle does with songs a sing-along screen can’t follow: no shared lyric timing, and Musixmatch has no synced lyrics for them (or hasn’t been asked yet).
ANYNo difference: every song is shuffled together.PREFERThey play only after every song with lyrics in time, shuffled among themselves.REQUIREThey are left out, unless fewer than two songs have lyrics in time, as on a Sing-along night.
DiverseShuffleMode
Section titled “DiverseShuffleMode”Enum · staffql only
How Diverse Shuffle picks each song (DiverseShuffle::Generator).
DPPPick a set of songs spread out from each other (a determinantal point process), place it in random order, repeat.GREEDYShuffle, then take the first song that passes every hard rule. With nothing measured, the same order as Velvet’s own shuffle.MMROf the first few songs that pass, the one furthest from the songs before it (maximal marginal relevance), with a little randomness.