OpenSheetMusicDisplay
    Preparing search index...

    Function forEachVoiceEntryInMeasure

    • Iterate VoiceEntries in a measure for a given staff, in beat order. Handles all null-guard boilerplate for the OSMD container/staff/voice traversal.

      Parameters

      • measure: SourceMeasure

        The SourceMeasure to traverse

      • staffIndex: number

        Which staff to read (0-based global index)

      • callback: (voiceEntries: VoiceEntry[]) => void

        Called for each VoiceEntry array (all voices at one beat position)

      Returns void