lilypond-devel
[Top][All Lists]
Advanced

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

Re: abc2ly-snapshot chokes


From: Walco van Loon
Subject: Re: abc2ly-snapshot chokes
Date: Mon, 21 Mar 2005 14:07:14 +0100
User-agent: Debian Thunderbird 1.0 (X11/20050116)

Hi Laura,

The attached abc file causes abc2ly-snapshot to crash:

[vaneyck]# abc2ly-snapshot finlamour-score.abc
/usr/bin/abc2ly-snapshot from LilyPond 2.4.2
Parsing `finlamour-score.abc'...
Line ... lilypond output to: `finlamour-score.ly'...Traceback (most recent call 
last):
  File "/usr/bin/abc2ly-snapshot", line 1395, in ?
    dump_slyrics (outf)
  File "/usr/bin/abc2ly-snapshot", line 207, in dump_slyrics
    m = chr(string.atoi(k) + 'A')
TypeError: unsupported operand type(s) for +: 'int' and 'str'

Without exactly knowing what this code snippet is supposed to do,
someone must have wandered while writing it ;-)

If k is a string representation of an index where '1' corresponds to 'A'
(just assuming here), this code should do the trick:

m = chr(ord('A') + int(k) - 1)

Cheers,
Walco






reply via email to

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