From b74c502c2e7a61b4be764eefe6809714b37dad07 Mon Sep 17 00:00:00 2001 From: pin Date: Tue, 20 Jul 2010 08:09:56 +0000 Subject: [PATCH 1/1] =?utf8?q?Changement=20de=20signature=20de=20la=20m?= =?utf8?q?=C3=A9thode=20iterNotes.?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@282 fe552daf-6dbe-4428-90eb-1537e0879342 --- src/songs/player.py | 2 +- src/songs/xml2smwi.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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()) -- 2.20.1