lilypond-user
[Top][All Lists]
Advanced

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

Re: Shape the angle of a broken hairpin's first part


From: Thomas Morley
Subject: Re: Shape the angle of a broken hairpin's first part
Date: Mon, 17 Sep 2018 22:35:43 +0200

2018-09-17 12:05 GMT+02:00 Thomas Morley <address@hidden>:
> 2018-09-17 11:55 GMT+02:00 Urs Liska <address@hidden>:
>> thanks for this, which gives me a handle to the first part of the hairpin at
>> least.
>>
>> But my problem is not solved with the 'height property.
> [...]
>
>> See my updated example
> [...]
>
> I'll have a look in the evening, now I have to run for my regular job ...
>
> Cheers,
>   Harm

Hi Urs,

as said before you'll need to go for the 'stencil.
Though, ly:hairpin::print, the default-stencil, is coded in C++. There
the defaults-heights for broken hairpins are set to 1/3 and 2/3 of
'height.
Thus we need a scheme-rewrite of the stencil-procedure to reset them.
Below I slightly extend a coding by David Nalesnik from
https://lists.gnu.org/archive/html/lilypond-user/2018-02/msg00181.html

Btw, the rest of the linked thread is very interesting as well:
Once you have a scheme-rewrite it's possible to add a plethora of
other features...

Back on topic.
Attached you'll find David's coding. My addition is to add a
'broken-heights-property.
Now you can adjust the values and call the scheme-stencil afterwards,
instead of the default-stencil.

Cheers,
  Harm

Attachment: hairpin-scheme-enhanced-02.ly
Description: Text Data


reply via email to

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