lilypond-devel
[Top][All Lists]
Advanced

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

Re: fix to support breves and longas in musicxml2ly


From: Reinhold Kainhofer
Subject: Re: fix to support breves and longas in musicxml2ly
Date: Tue, 20 May 2008 19:04:29 +0200
User-agent: KMail/1.9.9

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Am Dienstag, 20. Mai 2008 schrieb David Fletcher:
>  When I ran musicxml2ly on a music XML file containing breves e.g.
>
>          <duration>16</duration>
>          <voice>1</voice>
>          <type>breve</type>
>
>  it crashed in ly_expression with
>  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 > longa not supported

Thanks a lot for the fix, but apparently it is already fixed in the latest 
development version in the 2.11 branch.

Cheers,
Reinhold

- -- 
- ------------------------------------------------------------------
Reinhold Kainhofer, Vienna University of Technology, Austria
email: address@hidden, http://reinhold.kainhofer.com/
 * Financial and Actuarial Mathematics, TU Wien, http://www.fam.tuwien.ac.at/
 * K Desktop Environment, http://www.kde.org, KOrganizer maintainer
 * Chorvereinigung "Jung-Wien", http://www.jung-wien.at/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)

iD8DBQFIMwSgTqjEwhXvPN0RAqSNAJ9m0yj2xt//CwmH6bzlHXK+MSzOfgCcDnSL
Gn/FDLTVps8oQNAJajX9P0I=
=pcw4
-----END PGP SIGNATURE-----




reply via email to

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