Skip to content

Conversation

@hexbold
Copy link

@hexbold hexbold commented Jan 26, 2026

Chords were not incrementing the bar duration counter, causing measure boundaries to be lost in MusicXML export. A 3-bar piece with chords would incorrectly export as 2 bars.

Two functions affected:

  • new_chordbase(): explicit chord notation
  • copy_prev_chord(): duration shorthand after chords (4 4)

Added self.increase_bar_dura(duration) to both functions to match the behavior of regular notes.

Fixes #171

Chords were not incrementing the bar duration counter, causing measure
boundaries to be lost in MusicXML export. A 3-bar piece with chords
would incorrectly export as 2 bars.

Two functions affected:
- new_chordbase(): explicit chord notation <c e g>
- copy_prev_chord(): duration shorthand after chords (4 4)

Added self.increase_bar_dura(duration) to both functions to match the
behavior of regular notes.

Fixes frescobaldi#171
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

MusicXML: Chords cause bar lines to be skipped

1 participant