projects
/
minwii.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4ac5dd2
)
Une partition peut commencer par un silence.
author
pin
<pin@fe552daf-6dbe-4428-90eb-1537e0879342>
Mon, 21 Jun 2010 12:00:32 +0000
(12:00 +0000)
committer
pin
<pin@fe552daf-6dbe-4428-90eb-1537e0879342>
Mon, 21 Jun 2010 12:00:32 +0000
(12:00 +0000)
git-svn-id: https://svn.cri.ensmp.fr/svn/minwii/trunk@241
fe552daf
-6dbe-4428-90eb-
1537e0879342
src/minwii/musicxml.py
patch
|
blob
|
history
diff --git
a/src/minwii/musicxml.py
b/src/minwii/musicxml.py
index
0ed7085
..
d7651b2
100755
(executable)
--- a/
src/minwii/musicxml.py
+++ b/
src/minwii/musicxml.py
@@
-83,7
+83,13
@@
class Part(object) :
previous.addDuration(note)
continue
else :
- previous.addDuration(note)
+ try :
+ previous.addDuration(note)
+ except AttributeError :
+ # can occur if part starts with a rest.
+ if previous is not None :
+ # something else is wrong.
+ raise
continue
previous = note