Change the octave of the note to the current octave + diff.
(self, diff)
| 160 | self.name = notes.diminish(self.name) |
| 161 | |
| 162 | def change_octave(self, diff): |
| 163 | """Change the octave of the note to the current octave + diff.""" |
| 164 | self.octave += diff |
| 165 | if self.octave < 0: |
| 166 | self.octave = 0 |
| 167 | |
| 168 | def octave_up(self): |
| 169 | """Increment the current octave with 1.""" |
no outgoing calls
no test coverage detected