Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python3
- import random
- keys = ['C' , 'Db', 'D' ,
- 'Eb', 'E' , 'F' ,
- 'Gb', 'G' , 'Ab',
- 'A' , 'Bb', 'B' ]
- qualities = ["Major",
- "minor",
- "diminished",
- "Augmented"]
- positions = ["Root Position",
- "1st Inversion",
- "2nd Inversion"]
- def generate_and_print_random_chord():
- global key
- global quality
- global position
- key = random.choice(keys)
- quality = random.choice(qualities)
- position = random.choice(positions)
- print(key, quality, "in", position)
- while True:
- generate_and_print_random_chord()
- wait = input() # click <return> to continue
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement