David Fletcher <david <at> tvemf.org> writes:

> 
> When I run musicxml2ly on a music XML file containing breves e.g.
> 
>         <duration>16</duration>
>         <voice>1</voice>
>         <type>breve</type>
> 
> it crashes with the diagnostic as follows:
..
> ValueError: negative shift count
> 
I fixed this by changing musicexp.py in the python folder, replacing line
  152:         str = '%d%s' % (1 << self.duration_log, '.'*self.dots)
with
  152:         if self.duration_log >= 0:
  153:             str = '%d%s' % (1 << self.duration_log, '.'*self.dots)
  154:         elif self.duration_log ==-1:
  155:             str = '\\breve%s' % ( '.'*self.dots)
  156:         elif self.duration_log ==-2:
  157:             str = '\\longa%s' % ( '.'*self.dots)
  158:         else:
  159:             str = '\\maxima%s' % ( '.'*self.dots)   #error: durations > l
onga not supported

I'll submit this fix properly if I find out how to do so

David



_______________________________________________
bug-lilypond mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-lilypond

Reply via email to