lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Better slashed graces


From: David Nalesnik
Subject: Re: Better slashed graces
Date: Mon, 30 Nov 2015 11:44:01 -0600



On Mon, Nov 30, 2015 at 11:17 AM, Gilberto Agostinho <address@hidden> 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

reply via email to

[Prev in Thread] Current Thread [Next in Thread]