def translateNote(self, currentNote): if self.previousNote is None: doShowOctave = self.showLeadingOctave else: doShowOctave = basic.showOctaveWithNote(self.previousNote, currentNote) brailleNote = basic.noteToBraille(currentNote, showOctave=doShowOctave, upperFirstInFingering=self.upperFirstInFingering) self.previousNote = currentNote return brailleNote