Skip to content

Instantly share code, notes, and snippets.

@jordan-wright
Created January 1, 2019 21:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jordan-wright/49189fe759dd2f029c85dadaaae92ca8 to your computer and use it in GitHub Desktop.
Save jordan-wright/49189fe759dd2f029c85dadaaae92ca8 to your computer and use it in GitHub Desktop.
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