Take the diatonic sixth of note in key. Raise a KeyError exception if the note is not found in the given key. Examples: >>> sixth('E', 'C') 'C' >>> sixth('E', 'B') 'C#'
(note, key)
| 126 | |
| 127 | |
| 128 | def sixth(note, key): |
| 129 | """Take the diatonic sixth of note in key. |
| 130 | |
| 131 | Raise a KeyError exception if the note is not found in the given key. |
| 132 | |
| 133 | Examples: |
| 134 | >>> sixth('E', 'C') |
| 135 | 'C' |
| 136 | >>> sixth('E', 'B') |
| 137 | 'C#' |
| 138 | """ |
| 139 | return interval(key, note, 5) |
| 140 | |
| 141 | |
| 142 | def seventh(note, key): |
no test coverage detected