File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments