<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def remove_duplicate_notes(self):
 """Remove duplicate and enharmonic notes from the container."""

        res = []
        for x in self.notes:
            if x not in res:
                res.append(x)
        self.notes = res
        return res