Пример #1
0
 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
Пример #2
0
 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