OpenSheetMusicDisplay
    Preparing search index...

    Function extractLyricsMeasure

    • Extract lyrics for a single measure, building the word-line text.

      Iterates VoiceEntries in beat order (first voice only) and collects syllables for the specified verse. Syllables of the same word are concatenated without hyphens (Par. 35.1.1a). Spaces are added between words.

      Parameters

      • measure: SourceMeasure

        The SourceMeasure to extract lyrics from

      • staffIndex: number

        Which staff to extract from (0-based)

      • verseNumber: string

        The verse number to extract (e.g., "1")

      • state: LyricsState

        Persistent state for melisma tracking across measures

      Returns LyricsMeasureResult

      LyricsMeasureResult with word-line text and debug info