Skip to content

Commit

Permalink
Pedal chord was getting the wrong root string in its figure (was 'Bbp…
Browse files Browse the repository at this point in the history
…edal', should be 'B-pedal').
  • Loading branch information
gregchapman-dev committed Apr 3, 2024
1 parent a243454 commit dee8621
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions music21/harmony.py
Original file line number Diff line number Diff line change
Expand Up @@ -1104,9 +1104,9 @@ def chordSymbolFigureFromChord(inChord: chord.Chord, includeChordType=False):
>>> harmony.chordSymbolFigureFromChord(c, True)
('CGr+6', 'German')
>>> c = chord.Chord(['C3'])
>>> harmony.chordSymbolFigureFromChord(c, True)
('Cpedal', 'pedal')
>>> eflat = chord.Chord(['E-3'])
>>> harmony.chordSymbolFigureFromChord(eflat, True)
('E-pedal', 'pedal')
>>> c = chord.Chord(['C3', 'G3'])
>>> harmony.chordSymbolFigureFromChord(c, True)
Expand Down Expand Up @@ -1172,9 +1172,9 @@ def chordSymbolFigureFromChord(inChord: chord.Chord, includeChordType=False):

if len(inChord.pitches) == 1:
if includeChordType:
return (inChord.root().name.replace('-', 'b') + 'pedal', 'pedal')
return (inChord.root().name + 'pedal', 'pedal')
else:
return inChord.root().name.replace('-', 'b') + 'pedal'
return inChord.root().name + 'pedal'

d3 = inChord.semitonesFromChordStep(3) # 4 triad
d5 = inChord.semitonesFromChordStep(5) # 7 triad
Expand Down

0 comments on commit dee8621

Please sign in to comment.