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 bad voice overlay #78

Closed bwl21 closed 6 years ago

bwl21 commented 6 years ago

While updating the german translation, i played around with voice overlays to see when "No end of voice overlay" shows up.

Thereby I had a voice overlay with only one voice

X:2
T: voice overlay
K:C
%
%
%%score 1 2 3 4
%
V:1 clef=treble name="Sopran" snm="S"
  c c c c | cccc (& d d d d | dddd &)| eee

this gives

curvoice is undefined
abc2svg tosvg bug - stack:
new_bar@http://localhost:63342/abc2svg/abc2svg-1.js:5:166408
parse_seq@http://localhost:63342/abc2svg/abc2svg-1.js:5:183739
parse_music_line@http://localhost:63342/abc2svg/abc2svg-1.js:5:184570
tosvg@http://localhost:63342/abc2svg/abc2svg-1.js:5:97830
render@http://localhost:63342/abc2svg/edit-1.js:1:3245

I think it should be fixed as voice overlays are fragile anyhow and while typing the user may have incorrect abc code.

bwl21 commented 6 years ago

Works in abc2svg-1.15.8-19-gd93cf04 (2018-01-23)