You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

26 lines
479 B

  1. inotes = {"C":0,"D":2,"E":4,"F":5,"G":7,"A":9,"B":11}
  2. notes= {v: k for k, v in inotes.items()}
  3. sign = {'#':1,'':-1}
  4. minimal = {1: (2,),
  5. 2: (1,),
  6. 3: (3,),
  7. 4: (2, 3),
  8. 5: (4,),
  9. 6: (2, 4),
  10. 7: (1, 4),
  11. 8: (3, 4),
  12. 9: (2, 3, 4),
  13. 10: (1, 3, 4),
  14. 11: (1, 2, 3, 4)}
  15. everything = {1: [(2,)],
  16. 2: [(1,)],
  17. 3: [(3,), (1, 2)],
  18. 4: [(2, 3)],
  19. 5: [(4,), (1, 3)],
  20. 6: [(2, 4), (1, 2, 3)],
  21. 7: [(1, 4)],
  22. 8: [(3, 4), (1, 2, 4)],
  23. 9: [(2, 3, 4)],
  24. 10: [(1, 3, 4)],
  25. 11: [(1, 2, 3, 4)]}