-
Notifications
You must be signed in to change notification settings - Fork 0
Adding lyrics
Eric Nguyen edited this page Aug 11, 2022
·
1 revision
-
Add the album folder:
/assets/lyrics/{album_name}
-
Add the lyrics files:
/assets/lyrics/{album_name}/{song_name}.json
The lyrics file should follow the following format:
{
"title": "Song Title",
"lyrics": {}
}
-
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. -
Add the lyrics folder path to the assets section in
pubspec.yaml
. E.g.,
flutter:
assets:
- assets/lyrics/{album_name}/
-
Find the lyrics in Genius.com
-
The lyrics should have Korean, Romanized, and English versions.
-
For each version, use the
getlyrics
script and copy it to the clipboard via./getlyrics {url} | pbcopy
(assuming you're on a Mac) -
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",
],
}
}