def METHOD_NAME(self) -> str:
    if not self.notes:
        return super().METHOD_NAME()
    allNotes = []
    for thisNote in self.notes:
        if isinstance(thisNote, note.Note):
            allNotes.append(thisNote.nameWithOctave)
        elif isinstance(thisNote, note.Unpitched):
            if thisNote.storedInstrument:
                allNotes.append(str(thisNote.storedInstrument.instrumentName))
            else:
                allNotes.append(f'unpitched[{thisNote.displayName}]')
    return '[' + ' '.join(allNotes) + ']'