Take the diatonic seventh of note in key. Raise a KeyError exception if the note is not found in the given key. Examples: >>> seventh('E', 'C') 'D' >>> seventh('E', 'B') 'D#'
(note, key)
| 140 | |
| 141 | |
| 142 | def seventh(note, key): |
| 143 | """Take the diatonic seventh of note in key. |
| 144 | |
| 145 | Raise a KeyError exception if the note is not found in the given key. |
| 146 | |
| 147 | Examples: |
| 148 | >>> seventh('E', 'C') |
| 149 | 'D' |
| 150 | >>> seventh('E', 'B') |
| 151 | 'D#' |
| 152 | """ |
| 153 | return interval(key, note, 6) |
| 154 | |
| 155 | |
| 156 | def minor_unison(note): |
no test coverage detected