-
Notifications
You must be signed in to change notification settings - Fork 407
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
Same figure in rntxt file differs from instantiated RomanNumeral object #1229
Comments
So I just realized that the value of In [12]: rn.scaleDegreeWithAlteration
Out[12]: (6, <music21.pitch.Accidental sharp>)
In [13]: rn2.scaleDegreeWithAlteration
Out[13]: (6, <music21.pitch.Accidental double-sharp>) So I guess whenever someone wants to parse an annotation in the same way as the RomanText parser would, the right line is?
|
I can confirm that I've tried several combinations of The only thing that has worked for me, if one wanted to mimic the same behavior is something like this: key = rn.key.tonicPitchNameWithCase
figure = rn.figure
s = music21.converter.parseData(f"m1 {key.replace('-', 'b')}: {figure}", format="romantext")
rn = [rn for rn in s.flat.notes][0] That won't reproduce the |
Ah, a more backwards compatible solution would be to just set e.g. rn2 = RomanNumeral(otherRn.figure, 'f', sixthMinor=otherRn.sixthMinor, seventhMinor=otherRn.seventhMinor)
Have you tried >>> music21.roman.RomanNumeral("#viø4/3", "f", sixthMinor=roman.Minor67Default.CAUTIONARY).pitchClasses
[8, 0, 2, 5] |
I did not try the |
Minimal reproducibility code:
The last lines are just to confirm that this doesn't seem to be related to the
/o
notation for half-diminished.The annotation shows up in several instances of the When-in-Rome dataset (@MarkGotham might be interested). That's how I detected it.
The text was updated successfully, but these errors were encountered: