def __repr__(self): return midi_to_notation(self.pitch) + "/" + str(self.beats)
def get_pitch_as_notation(self): ''' Returns the pitch in notation, for instance 'd5'. :return: ''' return midi_to_notation(self.pitch)