title: Lyrics and chords formatting on iOS
body: <p>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:</p>
  
  <p><img src="https://i.stack.imgur.com/sZuaO.png" alt="enter image description here"></p>
  
  <p>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:</p>
  
  <pre><code>{
        "lyrics": [
            {
                "text":"This is one line of lyrics",
                "startTimestamp":5000,
                "endTimestamp":5800,
                "chords":[
                    {
                        "symbol":"A",
                        "position":0.2
                    },
                    {
                        "symbol":"D#",
                        "position":0.8
                    }
                    ]
            },
            { ... },
            { ... }
         ]
  }
  </code></pre>
  
  <p>Another option would have been to use a Chordpro format :
  <a href="http://tenbyten.com/software/songsgen/help/HtmlHelp/files_reference.htm" rel="nofollow noreferrer">http://tenbyten.com/software/songsgen/help/HtmlHelp/files_reference.htm</a></p>
  
  <p>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?</p>
  
  <p>The app is gonna include lyrics for only 12 tracks.</p>