paulrosen / abcjs

javascript for rendering abc music notation
Other
1.94k stars 285 forks source link

Resize the stem to a lower value, nor higher #827

Open alensiljak opened 2 years ago

alensiljak commented 2 years ago

Related to #616, a potentially better use of space. Suggestion for improvements to stem lengths:

  1. resize the stem lower instead of higher for connected 8-notes
  2. shorten the second stem in a multi-note link
  3. do not extend stems for linked 16-notes

For 1:

abcjs: image

Lilypond: image

The notes that are above half might have shorter stem lines. The stem line that gets modified is to be shortened, not extended.

alensiljak commented 2 years ago

A similar thing with multiple notes.

ABC: image

Lilypond: image

alensiljak commented 2 years ago

image

alensiljak commented 2 years ago

MuseScore also shortens the second stem:

image

abcjs keeps both stems at the original size:

image

From these screenshots it seems that linked 16-notes also have an extended stem?

alensiljak commented 2 years ago

The angle of the connected line would save some space here.

abcjs

image

MuseScore:

image

alensiljak commented 2 years ago

The beginning notes:

abcjs

image

MuseScore

image

alensiljak commented 2 years ago

ABC2SVG also uses the same technique and shortens the stem:

image