Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Humdrum: Measure number restarts after fermata when in middle of measure #1730

Open
gg-g opened this issue Sep 10, 2024 · 0 comments
Open

Humdrum: Measure number restarts after fermata when in middle of measure #1730

gg-g opened this issue Sep 10, 2024 · 0 comments

Comments

@gg-g
Copy link

gg-g commented Sep 10, 2024

music21 version

Music21 9.1.0

Problem summary

In measure 7 of https://verovio.humdrum.org/?file=chorales/chor001.krn there's a fermata. In the same measure, the chorale continues. The note after the fermata has as measure 0.

# to reproduce
score = m21.converter.parse('chor001.krn', format='humdrum')
for element in score.recurse().getElementsByClass([m21.note.Note]):
    print(
        element.pitch.step,
        element.pitch.octave,
        element.pitch.accidental.alter if element.pitch.accidental else 0,
        element.quarterLength,
        element.getOffsetInHierarchy(score),
        element.getContextByClass('Part').id,
        element.activeSite.measureNumber
    )
    
    if element.activeSite.measureNumber == 8:
        break

# results in

G 4 0 1.0 0.0 spine_3 0
G 4 0 2.0 1.0 spine_3 1
D 5 0 1.0 3.0 spine_3 1
B 4 0 1.5 4.0 spine_3 2
A 4 0 0.5 5.5 spine_3 2
G 4 0 1.0 6.0 spine_3 2
G 4 0 1.5 7.0 spine_3 3
A 4 0 0.5 8.5 spine_3 3
B 4 0 1.0 9.0 spine_3 3
A 4 0 2.0 10.0 spine_3 4
B 4 0 1.0 12.0 spine_3 4
D 5 0 2.0 13.0 spine_3 5
C 5 0 1.0 15.0 spine_3 5
B 4 0 1.0 16.0 spine_3 6
A 4 0 2.0 17.0 spine_3 6
G 4 0 2.0 19.0 spine_3 7
B 4 0 1.0 21.0 spine_3 0   <------- 0 in stead of 7
B 4 0 1.0 22.0 spine_3 8


Expected vs. actual behavior

I expected the measure number to be 7

More information

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

No branches or pull requests

1 participant