Comment #22 on issue 2492 by [email protected]: Kievan notation -
improper beaming functionality
http://code.google.com/p/lilypond/issues/detail?id=2492
Then you'll want to do the following:
1) Create an override for Beam #'quantized-positions and Beam #'positions
that calculates positions based on the height of the two glyphs (I'm
assuming you're doing this in the current code.
2) Override Beam #'direction to take the direction of the first "stem"
(meaning notehead in this case).
You can do the above two in Scheme.
The Beam::print function should then have everything it needs to print
things cleanly.