コード例 #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
ファイル: noteGrouping.py プロジェクト: cuthbertLab/music21
 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