[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Beam with breaks
From: |
Thomas Morley |
Subject: |
Re: Beam with breaks |
Date: |
Wed, 3 Aug 2016 15:16:10 +0200 |
Hi Andrew,
2016-08-02 19:13 GMT+02:00 Thomas Morley <address@hidden>:
> 2016-08-02 17:13 GMT+02:00 Andrew Bernard <address@hidden>:
>> Hi Harm,
>>
>> Thank you for this. I suppose I was not clear enough, as usual. I
>> explicitly need the beams on the individual note to have a longer
>> beamlet on the top, with the rest being shorter. This is what I am
>> unable to achieve. So it's not the beam break that I can't do, rather,
>> it is the adjustment of the lengths of the beamlets. Can that be done
>> with any lilypond magic?
>>
>> Andrew
>
> Hi Andrew,
>
> next try below ;)
> The comments should explain what's going on, if not shout.
>
> \version "2.19.45"
>
> affectMainBeam =
> #(define-music-function (val-list)(number-pair-list?)
> "
> We get the 'beam-segments, rebuilding it modified.
> The 'beam-segments-property is an alist of type:
> '(((vertical-count . 0) (horizontal 3.865018 . 5.93))
> ((vertical-count . 1) (horizontal 3.865018 . 5.93)))
>
> `vertical-count' is the beam-count.
> `horizontal' is the x-extent relative to 'System!!
> I.e. the appearance will alter, when spacing changes.
>
> The values given in @var{val-list} are added to the horizontal extent.
> "
[...]
My previous code aimed at setting the beam-segments directly.
The attached code attempts more to set the gap between beam-segments.
HTH,
Harm
affect-main-beam-03.png
Description: PNG image
affect-main-beam-03.ly
Description: Text Data