diff --git a/music21/common/enums.py b/music21/common/enums.py index 5ef9efb6d..f23347ffc 100644 --- a/music21/common/enums.py +++ b/music21/common/enums.py @@ -157,9 +157,9 @@ class OffsetSpecial(StrEnum): * New in v7. ''' - AT_END: str = 'highestTime' - LOWEST_OFFSET: str = 'lowestOffset' - HIGHEST_OFFSET: str = 'highestOffset' + AT_END = 'highestTime' + LOWEST_OFFSET = 'lowestOffset' + HIGHEST_OFFSET = 'highestOffset' class GatherSpanners(BooleanEnum): diff --git a/music21/romanText/translate.py b/music21/romanText/translate.py index 6539a2896..9bb2379a0 100644 --- a/music21/romanText/translate.py +++ b/music21/romanText/translate.py @@ -838,7 +838,12 @@ def translateSingleMeasureAtom( m.coreInsert(self.currentOffsetInMeasure, rtt) # environLocal.warn(f' Got an unknown token: {a}') - def processRTChord(self, a: rtObjects.RTChord, m: stream.Measure, currentOffset: OffsetQL) -> None: + def processRTChord( + self, + a: rtObjects.RTChord, + m: stream.Measure, + currentOffset: OffsetQL + ) -> None: ''' Process a single RTChord atom. ''' @@ -894,7 +899,7 @@ def processRTChord(self, a: rtObjects.RTChord, m: stream.Measure, currentOffset: rn.followsKeyChange = False except roman.RomanNumeralException: # pragma: no cover # environLocal.printDebug(f' cannot create RN from: {a.src}') - rn = note.Note() # create placeholder + rn = roman.RomanNumeral() # create placeholder if self.pivotChordPossible is False: # probably best to find duration