Package-level declarations
Types
One line as the renderer draws it: upstream's LineData and the element built for it. Times in seconds.
A song's lyrics as a renderer draws them, from buildLyrics.
A romanization hung under a line: injectRomanization. Timed, it carries words that sweep like the line's. Equal when it shows the same, which is what upstream's decorationSources compares.
A translation hung under a line: injectTranslation. Equal when it shows the same.
One timed word, upstream's PartData without its elements. Times in seconds.
What the clock made of one reading.
One content line: the main one, the background vocals under it, or a timed romanization.
Every theme setting braccato-core reads, under upstream's keys and with upstream's defaults. A theme sets them through setThemeSettings; a renderer reads them with Setting.getNumberValue and its kin.
What kind of frame a tick produced.
The content of a line built from its parts: createLyricsLine.
SCROLL is the scrolling lyrics view. STAGE shows only what is being sung.
One view's timeline: the clock, the selection, the scroll state. The renderer feeds it the playback time once per frame and draws what it answers.
The last player snapshot, and how the next one is read against it.
What the view should do with its scroll this frame.
Where the scroll should go this frame, and how.
Space at the top and bottom of the view the lines should keep clear of, as a theme sets it. Pixels.
Something laid out in the scroll beside the lines.
Where the renderer has laid the lines out, in the scroll content's coordinates. Pixels.
What buildLyrics needs to know beside the lyrics themselves.
One theme setting, as CoreSettings lists them. Its value is shared by every view in the process, as upstream's is.
What a Setting holds: a Double, a Boolean or a String.
The stage's own measures.
One item of the stage, with its time.
What stands on the stage: a sung line, a pause, an instrumental break, or the credits.
What layoutStage decides.
One item's measured size, in pixels.
Where layoutStage puts an item.
Which way a run of text reads. AUTO is upstream's dir="auto" with no class: left to the text.
The play state is the only thing a tick cannot be given a sensible default for. Everything else describes a setting the consumer may not have, so it may be left out.
Everything one tick decided. Line indices are into BuiltLyrics.lines.
The timing offsets a theme sets as CSS durations (--blyrics-richsync-timing-offset, --blyrics-timing-offset, --blyrics-scroll-timing-offset). Defaults are styles/variables.css's. In seconds.
Properties
The note itself, drawn once as the empty background and once as the fill the wave clips.
The same surface at the bottom of its ripple. Same commands as the high one, so the two morph.
The block under the wave that fills the rest of the note.
Functions
setLyrics: builds every line, and what the container records about the song as a whole.
The romanization for a line, or null when it only repeats the line. Its language is the line's, in Latin script. Timed parts are built into words unless the theme turned rich sync off.
The translation for a line, or null when it only repeats the line, which upstream leaves off.
Sizes the padding above the first line and below the last one so either can sit at the view's target scroll position.
The blyrics-* configuration a compiled stylesheet declares, in declaration order, last one winning. Depends on nothing, so a consumer that compiles a theme somewhere the renderer does not run can read the settings out of it on its own.
Applies a theme's blyrics-* settings, as parseThemeConfig reads them; settings it leaves out go back to their defaults, and those the host set itself stay.