projects
/
minwii.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cleanup.
[minwii.git]
/
src
/
app
/
musicxml.py
diff --git
a/src/app/musicxml.py
b/src/app/musicxml.py
index
ec3be4a
..
0ed7085
100755
(executable)
--- a/
src/app/musicxml.py
+++ b/
src/app/musicxml.py
@@
-153,16
+153,16
@@
class Part(object) :
else :
iterable = cycle(self.verses)
for verse in iterable :
else :
iterable = cycle(self.verses)
for verse in iterable :
- print "---partie---"
+
#
print "---partie---"
repeats = len(verse[0].lyrics)
if repeats > 1 :
for i in range(repeats) :
# couplet
repeats = len(verse[0].lyrics)
if repeats > 1 :
for i in range(repeats) :
# couplet
- print "---couplet%d---" % i
+
#
print "---couplet%d---" % i
for note in verse :
yield note, i
# refrain
for note in verse :
yield note, i
# refrain
- print "---refrain---"
+
#
print "---refrain---"
for note in self.chorus :
yield note, 0
else :
for note in self.chorus :
yield note, 0
else :
@@
-242,9
+242,9
@@
class Tone(object) :
@property
def name(self) :
@property
def name(self) :
- name = '%s%d' % (self.step, self.octave)
+ name =
u
'%s%d' % (self.step, self.octave)
if self.alter < 0 :
if self.alter < 0 :
- alterext = '
♭
'
+ alterext = '
b
'
else :
alterext = '#'
name = '%s%s' % (name, abs(self.alter) * alterext)
else :
alterext = '#'
name = '%s%s' % (name, abs(self.alter) * alterext)