moinejf / abc2svg

project moved to https://chiselapp.com/user/moinejf/repository/abc2svg
GNU Lesser General Public License v3.0
48 stars 7 forks source link

crash with I:combinevoices 1 #91

Closed bwl21 closed 6 years ago

bwl21 commented 6 years ago

Problem

X:1
I:combinevoices 1
K:C
V:1
C

Produces

Cannot read property 'replace' of undefined
abc2svg tosvg bug - stack:
TypeError: Cannot read property 'replace' of undefined
    at error (http://localhost:63342/abc2svg/abc2svg-1.js:167:13)
    at syntax (http://localhost:63342/abc2svg/abc2svg-1.js:209:2)
    at set_format (http://localhost:63342/abc2svg/abc2svg-1.js:6942:3)
    at do_pscom (http://localhost:63342/abc2svg/abc2svg-1.js:18031:2)
    at Abc.tosvg (http://localhost:63342/abc2svg/abc2svg-1.js:7540:4)
    at render2 (http://localhost:63342/abc2svg/edit-1.js:1:3353)
    at render (http://localhost:63342/abc2svg/edit-1.js:1:3071)

Reason

format.js line 598 parameters for syntax() are wrong

bwl21 commented 6 years ago

tested with 0ea68e5