-
- 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
- if not (start or stop) :
- self.chorus = []
- else :
- self.chorus = self.notes[start:stop]
-
- def _findVersesLoops(self) :