[prev in list] [next in list] [prev in thread] [next in thread]
List: lilypond-user
Subject: Re: Layout of a (piano) hand indicator
From: Simon Albrecht <simon.albrecht () mail ! de>
Date: 2015-11-30 23:28:41
Message-ID: 565CDBA9.8040400 () mail ! de
[Download RAW message or body]
Hello Urs,
it’s very handy that you just came up with this thread, since I’m
needing the very thing in a score I just do.
I wrote an event function to nicely wrap up your approach:
%%%%%%%%%%%
\version "2.19.32"
hook =
#(let ((direction? (lambda (n) (= 1 (abs n))))
(hook-markup #{ \markup \path #0.175 #'((moveto 0 0)
(rlineto -0.85 0)
(rlineto 0 3)) #}))
(define-event-function (direction on-line) (direction? boolean?)
(let* ((self-al (if on-line 0.6 0.31))
(self-al (if (= direction 1) (- self-al) self-al)))
#{
\tweak self-alignment-Y $self-al
\tweak extra-spacing-width #'(-.5 . 0)
\finger \markup \scale #(cons 1 direction) #hook-markup
#})))
\layout {
\context {
\Voice
fingeringOrientations = #'(left)
}
}
{
<c''-\hook #DOWN ##f> <d''-\hook #UP ##t>
}
%%%%%%%%%%
It’s not quite elegant with its hard-coded values, but it’s easy to use.
Thanks for the ideas,
Simon
On 24.11.2015 23:44, Urs Liska wrote:
>
> Am 24.11.2015 um 22:39 schrieb Simon Albrecht:
>> On 24.11.2015 18:49, Urs Liska wrote:
>>> Hi all,
>>>
>>> please consider the attached image, especially the "half-bracket" at the
>>> center. This is to indicate that this d' is to be played with the
>>> left hand.
>>>
>>> Is there anything I could improve to the proportions and placement of
>>> that sign?
>>>
>>> Any suggestions for improvement welcome. Suggestions for *not* improving
>>> it even more ;-)
>> I agree that it looks quite good, and that the vertical part should be
>> shorter. Also, the horizontal part could be longer in my eyes.
>> And I’d be very interested in how you did it :-)
>>
> I use a very simple \path. Originally I simply added it as a \markup and
> used extra-offset to position it. But thanks to Abraham's blog post I
> changed that to use a fingering indication. However, I'm not really sure
> this is more reliable (for example against transposition):
>
> So this is what it looks like now:
>
> \set fingeringOrientations = #'(left)
> <d'' \finger
> \markup {
> \path #0.175
> #'((moveto 0 -2)
> (rlineto 0 3)
> (rlineto 0.85 0)
> (moveto -1.5 2)) } > 8
>
> Urs
>
>> Yours, Simon
["hook.preview.png" (image/png)]
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic