Take the diatonic third of note in key. Raise a KeyError exception if the note is not found in the given key. Examples: >>> third('E', 'C') 'G' >>> third('E', 'E') 'G#'
(note, key)
| 84 | |
| 85 | |
| 86 | def third(note, key): |
| 87 | """Take the diatonic third of note in key. |
| 88 | |
| 89 | Raise a KeyError exception if the note is not found in the given key. |
| 90 | |
| 91 | Examples: |
| 92 | >>> third('E', 'C') |
| 93 | 'G' |
| 94 | >>> third('E', 'E') |
| 95 | 'G#' |
| 96 | """ |
| 97 | return interval(key, note, 2) |
| 98 | |
| 99 | |
| 100 | def fourth(note, key): |
no test coverage detected