Files
BetterLyrics/BetterLyrics.WinUI3/BetterLyrics.WinUI3/Models/Lyrics/LyricsSyllable.cs
2026-01-07 20:47:08 -05:00

20 lines
512 B
C#

// 2025/6/23 by Zhe Fang
namespace BetterLyrics.WinUI3.Models.Lyrics
{
public class LyricsSyllable
{
public string Text { get; set; } = string.Empty;
public int Length => Text.Length;
public int StartIndex { get; set; }
public int EndIndex => StartIndex + Length - 1;
public int StartMs { get; set; }
public int? EndMs { get; set; }
public int? DurationMs => EndMs - StartMs;
public bool IsLongDuration => DurationMs >= 700;
}
}