Skip to content

Commit d3af7bf

Browse files
committed
wip
1 parent 3babd94 commit d3af7bf

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

music21/romanText/tsvConverter.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -256,18 +256,20 @@ def _changeRepresentation(self) -> None:
256256
if self.dcml_version == 2:
257257
self.chord = self.chord.replace('%', 'ø')
258258
self.chord = handleAddedTones(self.chord)
259+
# prefix figures for Mm7 chords on degrees other than 'V' with 'd'
259260
if (
260261
self.extra.get('chord_type', '') == 'Mm7'
261262
and self.numeral != 'V'
262263
):
263-
# we need to make sure not to match [add13] and the like
264+
# However, we need to make sure not to match [add13] and
265+
# the like, otherwise we will end up with [addd13]
264266
self.chord = re.sub(
265267
r'''
266268
(\d+) # match one or more digits
267269
(?![\]\d]) # without a digit or a ']' to the right
268270
''',
269-
r'd\1',
270-
self.chord,
271+
r'd\1',
272+
self.chord,
271273
flags=re.VERBOSE)
272274

273275
# Local - relative and figure

0 commit comments

Comments
 (0)