Skip to content

Instantly share code, notes, and snippets.

@jordan-wright

jordan-wright/transpose.py Secret

Created Jan 1, 2019
Embed
What would you like to do?
mm = {
"Ab": "G#",
"Bb": "A#",
"Db": "C#",
"Eb": "D#",
"Gb": "F#",
}
original = ["E","D#","E","D#","E","E","D#","E","F#","G#","F#","G#","A","B","A#","B","A#","B"]
chords = [Chord(chord) for chord in original]
for chord in chords:
chord.transpose(-1)
label = chord.chord
if label in mm:
print(mm[label].replace('#', 'sh'), end='')
else:
print(label, end='')
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.