<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def transpose(self, interval, up=True):
 """Transpose the notes in the bar up or down the interval. Call transpose() on all NoteContainers in the bar. """

        for cont in self.bar:
            cont[2].transpose(interval, up)