Get the chord tensions (Harmonizing chord)

PHOTO EMBED

Mon Jul 03 2023 05:15:09 GMT+0000 (Coordinated Universal Time)

Saved by @anixlynch ##music21 #jazz #piano #python

from music21 import chord, interval

# Create a Chord object for C major
c_major_chord = chord.Chord("C4 E4 G4")

# Get the root note of the chord
root_note = c_major_chord.root()

# Get the chord tensions
tensions = []
for degree in [2, 4, 6]:
    tension_pitch = root_note.transpose(interval.GenericInterval(degree))
    tensions.append(tension_pitch.name)
print("Chord Tensions:", tensions)
content_copyCOPY

https://www.thejazzpianosite.com/jazz-piano-lessons/jazz-chords/extensions-alterations/