Need bg lyrics support in lrc #118
Replies: 6 comments 1 reply
This is the only "known" way to put translation and transliteration lines in lrc, a lot of people use it for translation and some (like me) for romanized text
As far as I have seen, the other music players also parse it as background line. So yes, this is the solution |
|
I think you could respect timestamps in background lyrics (if they exist) |
|
我们确实无法区分它是罗马音还是背景歌词。如果将它解析为背景歌词,它的行为会与罗马音不同。罗马音始终显示在主歌词行下方而背景歌词仅当播放到这句背景行所属的主歌词时才会显示 We genuinely cannot distinguish between Romanized text and background lyrics. If it's interpreted as background lyrics, its behavior differs from Romanized text. Romanized text always appears below the main lyrics line, while background lyrics only appear when the main lyrics corresponding to that background line are played. 图示 | Illustration背景行仅当播放到所属的主歌词时才显示(下图标红框的位置也存在背景行,但没有显示) The background lyrics line only appears when the corresponding main lyrics line is played (a background lyrics line also exists in the area highlighted in red in the image below, but it's not displayed).
罗马音始终显示 Romanized text always appears.
在中文社区,普遍存在的在 LRC 中标注翻译和罗马音的方法是直接将它们放在主歌词行下方,并保持与主歌词行相同的开始时间。我们之前只见过这种写法,写下了这段代码 In the Chinese community, the common method for annotating translations and Romanized lyrics in LRC is to place them directly below the main lyrics line, maintaining the same start time as the main lyrics line. We had only seen this approach before, so we wrote this code. 代码 | CodeSPlayer-Next/src/utils/lyric/parseLRC.ts Lines 195 to 210 in 5c524eb 这种方法的前提是 LRC 不允许歌词重叠(至少不允许两行的开始时间相同),如果考虑背景行,这是允许的。如果也按这种方法解析罗马音,很可能误判真正的背景行 This method relies on LRC not allowing overlapping lyrics (at least not allowing two lines to have the same start time). If background lines are considered, this is permissible. Parsing Romanized lyrics in the same way could easily misinterpret it as a true background line. |
|
Can we simply parse this as however you do the bg[] in eLRC is supposed to be the equivalent of |
|
可以,但你得不到预期行为(如我上面所说) Yes, but you won't get the expected behavior (as I mentioned above). |



Uh oh!
There was an error while loading. Please reload this page.
I'm going to write the issue in English since I don't know chinese and I don't want any translator to misinterpret things
bg lyrics in lrc
example
expected behaviour
All reactions