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




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

Reply via email to