LyricParser

interface LyricParser(source)

A parser for one lyrics format. detectParser picks the right one for a document.

Inheritors

Functions

Link copied to clipboard
abstract fun detect(input: String): Boolean

Whether input looks like this parser's format.

Link copied to clipboard
abstract fun metadata(input: String): LyricMetadata

Reads what the document says about the song beside its lines: so far, its songwriters.

Link copied to clipboard
abstract fun parse(input: String, duration: Double = 0.0): List<Lyric>

Reads the document's lines.