Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- notelist = ['C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'Bb', 'B', 'C', 'C#', 'D', 'D#', 'E', 'F', 'F#', 'G', 'G#', 'A', 'Bb', 'B', 'C']
- majorscale = [2,2,1,2,2,2,1]
- def get_scale():
- scale = input("Please choose a scale: ")
- index = notelist.index(scale)
- print(notelist[index])
- for i in majorscale:
- print(notelist[index + i])
- index += i
- get_scale()
Add Comment
Please, Sign In to add comment