<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def change_octave(self, diff):
 """Change the octave of the note to the current octave + diff."""

        self.octave += diff
        if self.octave < 0:
            self.octave = 0