X-Git-Url: https://svn.cri.ensmp.fr/git/minwii.git/blobdiff_plain/7b2eb97ef51394bcc15f45a334a6e4cb71c6171c..3af57b5c16f81e9def6aa3e108d3395ea17ca143:/src/minwii/musicxml.py?ds=sidebyside diff --git a/src/minwii/musicxml.py b/src/minwii/musicxml.py index ff819e1..8bc2508 100755 --- a/src/minwii/musicxml.py +++ b/src/minwii/musicxml.py @@ -140,13 +140,9 @@ class Part(object) : break - def iterNotes(self, indefinitely=True) : + def iterNotes(self) : "exécution de la chanson avec l'alternance couplets / refrains" - if indefinitely == False : - iterable = self.verses - else : - iterable = cycle(self.verses) - for verse in iterable : + for verse in self.verses : if self.songStartsWithChorus : for note in self.chorus : yield note, 0