Return the tonic chord in key. Examples: >>> tonic('C') ['C', 'E', 'G'] >>> tonic('c') ['C', 'Eb', 'G']
(key)
| 569 | |
| 570 | |
| 571 | def tonic(key): |
| 572 | """Return the tonic chord in key. |
| 573 | |
| 574 | Examples: |
| 575 | >>> tonic('C') |
| 576 | ['C', 'E', 'G'] |
| 577 | >>> tonic('c') |
| 578 | ['C', 'Eb', 'G'] |
| 579 | """ |
| 580 | return triads(key)[0] |
| 581 | |
| 582 | |
| 583 | def tonic7(key): |