Take the diatonic fourth of note in key. Raise a KeyError exception if the note is not found in the given key. Examples: >>> fourth('E', 'C') 'A' >>> fourth('E', 'B') 'A#'
(note, key)
| 98 | |
| 99 | |
| 100 | def fourth(note, key): |
| 101 | """Take the diatonic fourth of note in key. |
| 102 | |
| 103 | Raise a KeyError exception if the note is not found in the given key. |
| 104 | |
| 105 | Examples: |
| 106 | >>> fourth('E', 'C') |
| 107 | 'A' |
| 108 | >>> fourth('E', 'B') |
| 109 | 'A#' |
| 110 | """ |
| 111 | return interval(key, note, 3) |
| 112 | |
| 113 | |
| 114 | def fifth(note, key): |
no test coverage detected