Skip to content

Adding lyrics

Eric Nguyen edited this page Aug 11, 2022 · 1 revision

Adding the album

  1. Add the album folder: /assets/lyrics/{album_name}

  2. Add the lyrics files: /assets/lyrics/{album_name}/{song_name}.json The lyrics file should follow the following format:

{
  "title": "Song Title",
  "lyrics": {}
}
  1. Add the album in /lib/data/albums.dart including the necessary information such as album title, release date, image path, lyrics folder path, and lyrics song paths.

  2. Add the lyrics folder path to the assets section in pubspec.yaml. E.g.,

flutter:
  assets:
    - assets/lyrics/{album_name}/

Adding the lyrics from Genius.com

  1. Find the lyrics in Genius.com

  2. The lyrics should have Korean, Romanized, and English versions.

  3. For each version, use the getlyrics script and copy it to the clipboard via ./getlyrics {url} | pbcopy (assuming you're on a Mac)

  4. Edit the lyrics accordingly and then include them into the lyrics .json file with respect to the language:

{
  "title": "Song Title",
  "lyrics": {
    "han": [
      "These are the Korean lyrics",
      "And some more Korean lyrics",
    ],
    "rom": [
      "These are the Romanized lyrics",
      "And some more Romanized lyrics",
    ],
    "eng": [
      "These are the English lyrics",
      "And some more English lyrics",
    ],
  }
}
Clone this wiki locally