From: pin Date: Tue, 20 Jul 2010 08:09:56 +0000 (+0000) Subject: Changement de signature de la méthode iterNotes. X-Git-Url: https://scm.cri.ensmp.fr/git/minwii.git/commitdiff_plain/b74c502c2e7a61b4be764eefe6809714b37dad07?ds=sidebyside;hp=704637a070dfbf0880d228228a0ef183e982f81e Changement de signature de la méthode iterNotes. git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@282 fe552daf-6dbe-4428-90eb-1537e0879342 --- diff --git a/src/songs/player.py b/src/songs/player.py index 0832b90..1ff1ad7 100755 --- a/src/songs/player.py +++ b/src/songs/player.py @@ -27,7 +27,7 @@ class SongPlayer(object) : 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 : diff --git a/src/songs/xml2smwi.py b/src/songs/xml2smwi.py index 136970d..2594210 100755 --- a/src/songs/xml2smwi.py +++ b/src/songs/xml2smwi.py @@ -43,7 +43,7 @@ def main() : 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())