bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: musicxml2ly crash when reading breves


From: David Fletcher
Subject: Re: musicxml2ly crash when reading breves
Date: Tue, 20 May 2008 16:03:48 +0000 (UTC)
User-agent: Loom/3.14 (http://gmane.org/)

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





reply via email to

[Prev in Thread] Current Thread [Next in Thread]