[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 11:49:36 +0200 |
2018-09-17 8:43 GMT+02:00 Urs Liska <address@hidden>:
> I have a broken hairpin whose first part is pretty short. As a consequence
> its internal angle looks too wide for my taste (see attached PNG). I would
> like to have the two lines wider apart with a narrower angle to more
> adequately reflect the overall length of the hairpin, similar to the second
> attached image from the corresponding music without line break.
>
> I would only know about the "height" property of a hairpin, but that's not
> what I need, and it doesn't help me towards tweaking the first part only ...
>
> I'd be glad about any suggestions or solution.
>
> Thanks
> Urs
Hi Urs,
iiuc, you will need to tackle the stencil of the first part. Going
directly for 'height doesn't work for me. Iirc there are some
procedures setting the heights of broken hairpins, without the
possibility to customize it.
But you can set the desired 'height for the selected hairpin-part and
call the default stencil afterwards . Leading to:
{
\override Hairpin.stencil =
#(lambda (grob)
(let* ((orig (ly:grob-original grob))
(siblings (if (ly:grob? orig)
(ly:spanner-broken-into orig) '() )))
(if (and (pair? siblings) (equal? grob (car siblings)))
(ly:grob-set-property! grob 'height 5))
ly:hairpin::print))
c'1\<
\break
s4
c'2.\!
}
The value 5 is ofcourse only for the show. Adjust as you wish.
HTH,
Harm
- Shape the angle of a broken hairpin's first part, Urs Liska, 2018/09/17
- Re: Shape the angle of a broken hairpin's first part,
Thomas Morley <=
- Re: Shape the angle of a broken hairpin's first part, Urs Liska, 2018/09/17
- Re: Shape the angle of a broken hairpin's first part, Thomas Morley, 2018/09/17
- Re: Shape the angle of a broken hairpin's first part, Thomas Morley, 2018/09/17
- Re: Shape the angle of a broken hairpin's first part, Urs Liska, 2018/09/18
- Re: Shape the angle of a broken hairpin's first part, Urs Liska, 2018/09/18
- Re: Shape the angle of a broken hairpin's first part, Thomas Morley, 2018/09/18
- Re: Shape the angle of a broken hairpin's first part, Urs Liska, 2018/09/18