Guest User

Untitled

a guest
Dec 16th, 2018
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. 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']
  2. majorscale = [2,2,1,2,2,2,1]
  3.  
  4. def get_scale():
  5. scale = input("Please choose a scale: ")
  6. index = notelist.index(scale)
  7. print(notelist[index])
  8. for i in majorscale:
  9. print(notelist[index + i])
  10. index += i
  11.  
  12. get_scale()
Add Comment
Please, Sign In to add comment