On Mon, Nov 30, 2015 at 11:17 AM, Gilberto Agostinho < gilbertohasn...@gmail.com> wrote:
> Hi David, > > As I wrote, I simply tried using some basic programming skills and trial > and > error in order to get a better looking results, and I would need some help > to make this function look decently (I am not very familiar with Scheme at > all, nor with programming functions in LilyPond). The main thing I tried to > achieve is the following: > > - make the slash to always cross the first stem at a constant distance from > beam (the previous function wasn't consistent with this at all, and the > results were all over the place even for beams with similar angles) > The reason it isn't consistent with regard to the beam is that the crossing is determined solely by the quantity stem-fraction which is based on stem length. The beam is not taken into account for the crossing. It is, however, considered with protrusion, how much the line sticks out at either end, since a sloping beam must be reckoned with. (Note that the improved examples in your rewrite are doable with the original function -- you just have to mess with stem-fraction. You can't leave it at the same setting. It's the lack of complete automation that makes the LSR snippet a hassle.) I like the idea of consulting the beam for the crossing. After all, changing the stem-fraction when using the original is probably mostly done to get a good position relative to the beam! Should've thought of that :) My question would be: what is 'stem-fraction' now? What does it now measure? Best, David
_______________________________________________ lilypond-user mailing list lilypond-user@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-user