Take the diatonic fifth of note in key. Raise a KeyError exception if the note is not found in the given key. Examples: >>> fifth('E', 'C') 'B' >>> fifth('E', 'F') 'Bb'
(note, key)
| 112 | |
| 113 | |
| 114 | def fifth(note, key): |
| 115 | """Take the diatonic fifth of note in key. |
| 116 | |
| 117 | Raise a KeyError exception if the note is not found in the given key. |
| 118 | |
| 119 | Examples: |
| 120 | >>> fifth('E', 'C') |
| 121 | 'B' |
| 122 | >>> fifth('E', 'F') |
| 123 | 'Bb' |
| 124 | """ |
| 125 | return interval(key, note, 4) |
| 126 | |
| 127 | |
| 128 | def sixth(note, key): |
no test coverage detected