Return the relative major of a minor key. Example: >>> relative_major('a') 'C'
(key)
| 141 | |
| 142 | |
| 143 | def relative_major(key): |
| 144 | """Return the relative major of a minor key. |
| 145 | |
| 146 | Example: |
| 147 | >>> relative_major('a') |
| 148 | 'C' |
| 149 | """ |
| 150 | for couple in keys: |
| 151 | if key == couple[1]: |
| 152 | return couple[0] |
| 153 | raise NoteFormatError("'%s' is not a minor key" % key) |
| 154 | |
| 155 | |
| 156 | def relative_minor(key): |
nothing calls this directly
no test coverage detected