projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
ajout install.txt : comment installer fluidsynth sur osx
[minwii.git]
/
src
/
songs
/
musicxmltosong.py
diff --git
a/src/songs/musicxmltosong.py
b/src/songs/musicxmltosong.py
index
eb5d5c3
..
d24d81a
100755
(executable)
--- a/
src/songs/musicxmltosong.py
+++ b/
src/songs/musicxmltosong.py
@@
-110,7
+110,7
@@
class Part(object) :
def iterNotes(self) :
"exécution de la chanson avec l'alternance couplets / refrains"
def iterNotes(self) :
"exécution de la chanson avec l'alternance couplets / refrains"
- for verse in
self.verses
:
+ for verse in
cycle(self.verses)
:
print "---partie---"
repeats = len(verse[0].lyrics)
if repeats > 1 :
print "---partie---"
repeats = len(verse[0].lyrics)
if repeats > 1 :
@@
-257,9
+257,12
@@
class Lyric(object) :
self.syllabic = _getNodeValue(node, 'syllabic', 'single')
self.text = _getNodeValue(node, 'text')
self.syllabic = _getNodeValue(node, 'syllabic', 'single')
self.text = _getNodeValue(node, 'text')
- def
__str__(self)
:
+ def
syllabus(self, encoding='utf-8')
:
text = self._syllabicModifiers[self.syllabic] % self.text
text = self._syllabicModifiers[self.syllabic] % self.text
- return text.encode('utf-8')
+ return text.encode(encoding)
+
+ def __str__(self) :
+ return self.syllabus()
__repr__ = __str__
__repr__ = __str__