Vmse lyric files
================

A lyric file lives in plugins/Vmse/lyrics/ and must share the audio file name:

    plugins/Vmse/music/song.mp3
    plugins/Vmse/lyrics/song.json      <- mc_lyrics v1 (recommended)
    plugins/Vmse/lyrics/song.lrc       <- standard LRC, also supported
    plugins/Vmse/word/song.yml         <- legacy word-by-word format
    plugins/Vmse/word/song.txt         <- plain text, one line per line

The file that ships as example.json is a complete, working example. Copy it,
rename it to match your track, and edit the numbers.

Format: mc_lyrics v1
--------------------

{
  "format": "mc_lyrics",
  "version": 1,
  "song": {
    "title": "Song title",
    "artist": "Artist",
    "offset_ms": 0
  },
  "display": { ... optional per-song overrides ... },
  "timeline": [ ... one object per lyric line ... ]
}

song
  title      shown in the action bar announcement
  artist     optional, shown before the title
  offset_ms  positive values delay the lyrics, negative values advance them.
             Use it when the whole sheet drifts by a constant amount.

timeline entry
  type       must be "lyric"
  start_ms   when the line appears (inclusive)
  end_ms     when the line disappears (exclusive)
  text       the line itself
  words      optional per-word timings, same start/end rules
  style      optional { "color": "#RRGGBB", "bold": true, "italic": true,
                        "underlined": true }

Rules
-----
1. start_ms must be smaller than end_ms.
2. Between two lines the display hides. There is no "previous line stays
   visible" fallback, so make end_ms reach the next start_ms if you want a
   continuous display.
3. Lines do not need to be sorted, but sorting them makes the file readable.
4. Duplicate text on two consecutive lines is fine and will be shown twice.

display overrides
-----------------
  mode                 actionbar | title | bossbar | chat
  default_color        #RRGGBB
  highlight_color      #RRGGBB
  per_word_highlight   true | false
  fade_in_ms           title mode only
  fade_out_ms          title mode only

LRC
---
Standard LRC works as-is:

    [00:12.00]First line
    [00:16.50]Second line

[ti:], [ar:] and [offset:] tags are honoured.

Automatic generation
--------------------
/vmse lyrics <song>

1. If a sidecar file exists it is used and nothing else happens.
2. Otherwise the plugin asks LRCLIB for a synced sheet (needs
   lyrics.lookup-online: true).
3. Otherwise it analyses the audio itself. With lyrics.asr.enabled and an
   -compatible endpoint configured you get real text; without it you get a
   correctly timed timeline with placeholder text that you can edit.
