def __str__(self) :
return (u'%5s %2s %2d %4s' % (self.nom, self.name, self.midi, round(self.duration, 2))).encode('utf-8')
- __repr__ = __str__
+ def __repr__(self) :
+ return self.name.encode('utf-8')
def addDuration(self, note) :
self._duration = self.duration + note.duration