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: Valentin Villenave
Subject: Re: musicxml2ly crash when reading breves
Date: Tue, 20 May 2008 18:20:01 +0200

2008/5/20 David Fletcher <address@hidden>:
> 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

Hi David,

Sorry for having missed your report in the first place.

Reinhold, can you have a look please? You must be much more familiar
with this than I'll ever be ;-)

Thanks,
Valentin




reply via email to

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