Return the relative minor of a major key. Example: >>> relative_minor('C') 'a'
(key)
| 154 | |
| 155 | |
| 156 | def relative_minor(key): |
| 157 | """Return the relative minor of a major key. |
| 158 | |
| 159 | Example: |
| 160 | >>> relative_minor('C') |
| 161 | 'a' |
| 162 | """ |
| 163 | for couple in keys: |
| 164 | if key == couple[0]: |
| 165 | return couple[1] |
| 166 | raise NoteFormatError("'%s' is not a major key" % key) |
| 167 | |
| 168 | |
| 169 | class Key(object): |
nothing calls this directly
no test coverage detected