Class LyricsMatcher

java.lang.Object
lol.trq.orpheus.lyrics.LyricsMatcher

public final class LyricsMatcher extends Object
Scores how well a lyrics candidate fits a track. A wrong match is worse than none, so the bar is high.
  • Field Details

    • ACCEPT

      public static final double ACCEPT
      The lowest score at which lyrics are shown.
      See Also:
  • Method Details

    • score

      public static double score(Track track, String title, List<String> artists, long durationMillis)
      Scores a candidate described by its own title, artists and length.
      Parameters:
      track - the playing track
      title - the candidate title
      artists - the candidate artists, possibly empty
      durationMillis - the candidate length, or -1
      Returns:
      a score; ACCEPT or more means "show it"