You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Yeah, the lack of round-trip equivalence feels surprising. Both directions are currently working as documented. The result of [8] can be changed by passing seventhMinor=roman.Minor67Default.CAUTIONARY, but since that's not the default, then I suppose [6] should put out a figure VII instead of bVII so that the round trip works by default.
This diff seems to help, but maybe the subsequent branches need to be looked at also?
diff --git a/music21/roman.py b/music21/roman.py
index 7286a7003..ae427215f 100644
--- a/music21/roman.py+++ b/music21/roman.py@@ -695,7 +695,7 @@ def correctRNAlterationForMinor(figureTuple, keyObj):
rootAlterationString = ''
elif alter == 0.0:
alter = 0 # NB! does not change!
- rootAlterationString = 'b'+ rootAlterationString = ''
# more exotic:
elif alter > 1.0:
alter = alter - 1
jacobtylerwalls
changed the title
Different pitches, same RomanNumeral figure
romanNumeralFromChord() adds cautionary 'b' to VI and VII despite other system defaults
Feb 11, 2022
There was so much discussion about ^6 and ^7 roman numerals just a few years back, so we're not going to change the defaults now. But it does seem that this is a bug. But the fix should take into account roman.Minor67Default in what it displays.
Here is the minimal reproducibility code:
The idea here is that two different paths to obtain the
RomanNumeral
object lead to the same figure but different pitches.The text was updated successfully, but these errors were encountered: