SHARE
TWEET

Untitled

a guest Dec 16th, 2018 60 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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()
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top