OpenSheetMusicDisplay
    Preparing search index...

    Function collectVerseNumbers

    • Collect all distinct verse numbers present in the score for a given staff. Returns sorted array of verse number strings (e.g., ["1", "2", "3"]).

      Parameters

      • measures: SourceMeasure[]

        All SourceMeasures in the score

      • staffIndex: number

        Which staff to scan

      Returns string[]

      Sorted array of verse number strings