|
@@ -1844,6 +1844,10 @@ export const fillWordColor = () => {
|
|
|
const onlyOneLyric = currentNote.measures?.every((item: any) => item?.formatLyricsEntries?.length <= 1);
|
|
|
if ((index === currentNote.repeatIdx && currentNote.repeatIdx + 1 == lyricIndex) || (currentNote.repeatIdx != index && !onlyOneLyric && currentNote.repeatIdx + 1 == lyricIndex) || (currentNote.repeatIdx > 0 && currentNote.formatLyricsEntries?.length === 1 && onlyOneLyric)) {
|
|
|
lyric?.classList.add('lyricActive')
|
|
|
+ }
|
|
|
+ // bug: #11189,兼容处理需要唱4遍,但是只打了2遍歌词的情况,1、3唱一样的歌词,2、4唱一样的歌词
|
|
|
+ if ( currentNote.formatLyricsEntries.length == 2 && currentNote.repeatIdx >= 2 && index === (currentNote.repeatIdx - 2) ) {
|
|
|
+ lyric?.classList.add('lyricActive')
|
|
|
}
|
|
|
// if ((index === currentNote.repeatIdx && currentNote.repeatIdx + 1 == lyricIndex)) {
|
|
|
// lyric?.classList.add('lyricActive')
|