<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def clip(self, lower=0, upper=127):
 """ Clip the pianoroll by the given lower and upper bounds. Parameters lower : int or float The lower bound to clip the pianoroll. Defaults to 0. upper : int or float The upper bound to clip the pianoroll. Defaults to 127. """

        self.pianoroll = self.pianoroll.clip(lower, upper)