1 什么是LRC格式文件
2 LRC歌词文件的格式
2.1 文件头部信息
2.2 歌词行信息
2.3 时间标签格式
2.4 多行歌词
2.5 歌词时间偏移
3 LRC格式文件示例
4 小结
LRC文件通常以文本文件的形式存在(非二进制文件,入MP3、MP4等都是属于格式二进制文件),可以使用任何文本编辑器进行打开和编辑。
使用LRC格式的歌词文件可以方便地与音乐播放器配合,实现歌词的同步显示。
[ti: ]:歌曲的标题(title)。
[ar: ]:歌曲的艺术家(artist)。
[al: ]:歌曲所属的专辑(album)。
[by: ]:LRC文件的制作人(lyricist)。
[offset: ]:歌词的时间偏移量,用于调整歌词的显示时间。
[ti: Love Story]
[ar: Taylor Swift]
[al: Fearless]
[00:00.500]We were both young when I first saw you
[00:05.200]I close my eyes and the flashback starts
[00:09.800]I'm standing there on a balcony in summer air
[00:14.500]See the lights, see the party, the ball gowns
[00:19.200]See you make your way through the crowd
[00:23.800]And say, "Hello"
[00:26.500]Little did I know
[00:29.200]That you were Romeo, you were throwing pebbles
[00:33.800]And my daddy said, "Stay away from Juliet"
[00:38.500]And I was crying on the staircase
[00:41.200]Begging you, "Please don't go"
[00:44.200]And I said, "Romeo, take me somewhere we can be alone
[00:49.800]I'll be waiting, all that's left to do is run
[00:54.500]You'll be the prince and I'll be the princess
[00:59.200]It's a love story, baby, just say 'Yes'"
[01:03.000]We were both young when I first saw you
[01:07.500]I close my eyes and the flashback starts
[01:12.000]I'm standing there on a balcony in summer air
[01:16.500]See the lights, see the party, the ball gowns
[01:21.000]See you make your way through the crowd
[01:25.500]And say, "Hello"
[01:28.000]Little did I know
[01:30.500]That you were Romeo, you were throwing pebbles
[01:35.000]And my daddy said, "Stay away from Juliet"
[01:39.500]And I was crying on the staircase
[01:42.000]Begging you, "Please don't go"
[01:45.000]And I said, "Romeo, take me somewhere we can be alone
[01:50.500]I'll be waiting, all that's left to do is run
[01:55.000]You'll be the prince and I'll be the princess
[02:00.000]It's a love story, baby, just say 'Yes'"
可以看到以下几个要点:
1、文件头部信息包含了歌曲的标题、艺术家和专辑等信息。
[ti: Love Story]
[ar: Taylor Swift]
[al: Fearless]
2、偏移量为-500毫秒,表示歌词的显示时间比音乐的播放时间提前了500毫秒。
[offset: -500]
3、歌词行信息以时间标签和具体的歌词文本组成。时间标签表示歌词的显示时间,歌词文本是具体的歌词内容。
[00:00.500]We were both young when I first saw you
4、多行歌词在不同的时间点上显示,每个时间点的歌词行的时间标签都被单独的方括号包围。
[00:00.500]We were both young when I first saw you
[00:05.200]I close my eyes and the flashback starts
[00:09.800]I'm standing there on a balcony in summer air
[00:14.500]See the lights, see the party, the ball gowns
[00:19.200]See you make your way through the crowd
[00:23.800]And say, "Hello"
[00:26.500]Little did I know
5、当相同的歌词在不同的时间点出现时,在LRC歌词文件中,每个时间点的歌词行的时间标签都会被单独的方括号包围。
[00:00.500]We were both young when I first saw you
[01:03.000]We were both young when I first saw you
6、当相同的歌词在不同的时间点出现时,在有的LRC歌词文件中,也有可能会将多个时间标签和歌词放在同一行。
[00:00.500][01:03.000]We were both young when I first saw you