lilypond-user
[Top][All Lists]
Advanced

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

Re: Layout of a (piano) hand indicator


From: Simon Albrecht
Subject: Re: Layout of a (piano) hand indicator
Date: Tue, 1 Dec 2015 00:28:41 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.3.0

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

Attachment: hook.preview.png
Description: PNG image


reply via email to

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