BraccatoLyrics

fun BraccatoLyrics(lyrics: BuiltLyrics, playback: () -> PlaybackSnapshot, modifier: Modifier = Modifier, theme: BraccatoTheme = BraccatoTheme.Default, state: BraccatoLyricsState = rememberBraccatoLyricsState(), tickOptions: TickOptions = TickOptions(isPlaying = false), decorations: (BuiltLine) -> LineDecorations = ::lyricDecorations, onSeek: (Double) -> Unit? = null, wallClockMs: () -> Double? = null, footer: () -> Unit? = null, voices: VoiceLabels? = null, active: () -> Boolean = { true })(source)

Synchronized lyrics, scrolling to follow the song.

Parameters

lyrics

Built with buildLyrics. A new value is a new song.

playback

Read once per frame.

tickOptions

The user's offsets and preferences; the play state comes from playback.

decorations

What hangs under each line. Defaults to what the line's own lyric carries.

onSeek

Called with a player time, in seconds, when a line is clicked. Null leaves lines inert.

wallClockMs
footer

Shown at the very end of the scrolling text, after the credits, like the extension's .blyrics-footer: the place for where the lyrics came from.