Take the diatonic second of note in key. Raise a KeyError exception if the note is not found in the given key. Examples: >>> second('E', 'C') 'F' >>> second('E', 'D') 'F#'
(note, key)
| 70 | |
| 71 | |
| 72 | def second(note, key): |
| 73 | """Take the diatonic second of note in key. |
| 74 | |
| 75 | Raise a KeyError exception if the note is not found in the given key. |
| 76 | |
| 77 | Examples: |
| 78 | >>> second('E', 'C') |
| 79 | 'F' |
| 80 | >>> second('E', 'D') |
| 81 | 'F#' |
| 82 | """ |
| 83 | return interval(key, note, 1) |
| 84 | |
| 85 | |
| 86 | def third(note, key): |
no test coverage detected