Augment a given note. Examples: >>> augment('C') 'C#' >>> augment('Cb') 'C'
(note)
| 143 | |
| 144 | |
| 145 | def augment(note): |
| 146 | """Augment a given note. |
| 147 | |
| 148 | Examples: |
| 149 | >>> augment('C') |
| 150 | 'C#' |
| 151 | >>> augment('Cb') |
| 152 | 'C' |
| 153 | """ |
| 154 | if note[-1] != "b": |
| 155 | return note + "#" |
| 156 | else: |
| 157 | return note[:-1] |
| 158 | |
| 159 | |
| 160 | def diminish(note): |
no outgoing calls
no test coverage detected