+ noteIndex += 1
+
+ def _findChorus(self):
+ """ le refrain correspond aux notes pour lesquelles
+ il n'existe q'une seule syllable attachée.
+ """
+ start = stop = None
+ for i, note in enumerate(self.notes) :
+ ll = len(note.lyrics)
+ if start is None and ll == 1 :
+ start = i
+ elif start is not None and ll > 1 :
+ stop = i
+ break
+ self.chorus = self.notes[start:stop]
+
+ def _findVersesLoops(self) :
+ "recherche des couplets / boucles"
+ verse = self.verses[0]
+ for note in self.notes[:-1] :
+ verse.append(note)
+ ll = len(note.lyrics)
+ nll = len(note.next.lyrics)
+ if ll != nll :
+ verse = []
+ self.verses.append(verse)
+ verse.append(self.notes[-1])
+