def play(self) :
fs = self.fs
def play(self) :
fs = self.fs
- for note, verseIndex in self.part.iterNotes(indefinitely=False) :
+ for note, verseIndex in self.part.iterNotes() :
try :
print note, note.lyrics[verseIndex]
except IndexError :
try :
print note, note.lyrics[verseIndex]
except IndexError :
midiNoteNumbers = []
noteLengths = []
lyrics = []
midiNoteNumbers = []
noteLengths = []
lyrics = []
- for note, verseIndex in part.iterNotes(indefinitely=False) :
+ for note, verseIndex in part.iterNotes() :
midiNoteNumbers.append(note.midi)
noteLengths.append(note.duration)
lyrics.append(note.lyrics[verseIndex].syllabus())
midiNoteNumbers.append(note.midi)
noteLengths.append(note.duration)
lyrics.append(note.lyrics[verseIndex].syllabus())