Hi again,

On Mon, Nov 30, 2015 at 10:44 AM, David Nalesnik <david.nales...@gmail.com>
wrote:

> Hi Gilberto,
>
> On Mon, Nov 30, 2015 at 10:16 AM, Gilberto Agostinho <
> gilbertohasn...@gmail.com> wrote:
>
>> Hi all,
>>
>> I am trying to improve the slashed grace function because currently it
>> does
>> work only for a limited amount of examples. I am trying to make the slash
>> always at the same position relative to the highest beam (which was one of
>> the most annoying things about the other function) and then take into
>> account the beam angle to compensate for the slash angle. My solution is
>> surely very inelegant (regarding programming) so I'd welcome anyone who
>> wants to improve it, but it does a much better job in practise. Compare it
>> below.
>>
>> BEFORE:
>> <http://lilypond.1069038.n5.nabble.com/file/n184292/04.png>
>>
>> AFTER:
>> <http://lilypond.1069038.n5.nabble.com/file/n184292/19.png>
>>
>> Here is the function:  slashed-notes-function.ly
>> <
>> http://lilypond.1069038.n5.nabble.com/file/n184292/slashed-notes-function.ly
>> >
>>
>> Cheers,
>> Gilberto
>>
>>
> Could you provide a link to the function you're trying to improve?  It
> isn't part of the regular distribution.
>
>
I suppose it's this:
http://www.mail-archive.com/lilypond-user%40gnu.org/msg86544.html

What confuses me a little here is your usage of the stem-fraction
parameter.  This is designed in the original to represent where the slash
crosses the initial stem as a fraction of the stem's length.  From visual
inspection, it appears that you have it set to halfway along the stem in
the original in every case.  The idea--surely not ideal--is that it would
need to be adjusted on a case-by-case basis.

It appears to have a different function in your example.

--David
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to