insertInstrumentalBreaks
fun insertInstrumentalBreaks(lyrics: List<Lyric>, songDurationMs: Double, gapThreshold: Double? = DEFAULT_INSTRUMENTAL_GAP_MS): List<Lyric>(source)
Turn the silences between lines into explicit instrumental lyrics, so a renderer has something to show during an intro, a solo or an outro instead of holding the last sung line on screen.
songDurationMs is only needed for the outro. Intro and inter-line gaps are computed from the lines themselves, so passing 0 still yields those.
A null gapThreshold is upstream's undefined, which falls back to the default.