I am currently working on an iPhone app that requires displaying the lyrics of a song along with the guitar chords. The output on the screen would be similar to something like this:
I am still wondering what would be the best type of format to carry this kind of data (lyrics, chords and timestamps in the track for each line). I was thinking about using a JSON file formatted this way:
{
"lyrics": [
{
"text":"This is one line of lyrics",
"startTimestamp":5000,
"endTimestamp":5800,
"chords":[
{
"symbol":"A",
"position":0.2
},
{
"symbol":"D#",
"position":0.8
}
]
},
{ ... },
{ ... }
]
}
Another option would have been to use a Chordpro format : http://tenbyten.com/software/songsgen/help/HtmlHelp/files_reference.htm
But this kind of format doesn't carry timestamps to synchronise the display of the lyrics with the music and seems a bit painful to parse on iOS. Are there any other interesting options I could consider, HTML for example?
The app is gonna include lyrics for only 12 tracks.