code: def remove_note(self, note, octave=-1):
          
          res = []
          for x in self.notes:
              if type(note) == str:
                  if x.name != note:
                      res.append(x)
                  else:
                      if x.octave != octave and octave != -1:
                          res.append(x)
              else:
                  if x != note:
                      res.append(x)
          self.notes = res
          return res
docs: Remove note from container.
  
          The note can either be a Note object or a string representing the
          note's name. If no specific octave is given, the note gets removed
          in every octave.