lilypond-user
[Top][All Lists]
Advanced

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

finger placement brackets for hap


From: Gianmaria Lari
Subject: finger placement brackets for hap
Date: Fri, 15 Sep 2017 14:16:11 +0200

Harp scores sometimes specify a bracket below or above the notes to indicate how to place your hand. In the attachment you can see an example.

I have found online this code that works pretty well:
[https://music.stackexchange.com/questions/48731/lilypond-finger-placement-brackets]

\version "2.19.52"
variable = {
 \once \override TextSpanner.style = #'line
 \once \override TextSpanner.to-barline = ##f
 \once \override TextSpanner.bound-details =
  #`(
   (left
    (text . ,#{ \markup { \draw-line #'( 0 . -.5) } #})
    (Y . 0)
    (padding . 0.25)
    (attach-dir . -3)
   )
   (right
    (text . ,#{ \markup { \draw-line #'( 0 . -.5) } #})
    (Y . 0)
    (padding . 0.25)
    (attach-dir . 3)
    )
   )
}

\relative c' {
 \key c \major
 \time 3/4
 \partial 4
 \override Fingering.staff-padding = #'()
 \variable
 \once \override TextSpanner.rotation = #'(4 1.9 0)
 a'8_3\startTextSpan b_2 \variable \once \override TextSpanner.rotation = #'(-4.5 -4.5 0)
 c4-1\stopTextSpan\startTextSpan b-2 a_3 \variable \once \override TextSpanner.rotation = #'(3 -0.2 0)
 g_4\stopTextSpan\startTextSpan a_3 b-2 \variable \once \override TextSpanner.rotation = #'(-7 -2.5 0)
 c-1\stopTextSpan\startTextSpan g_2 f_3
 e2_4\stopTextSpan
}

... but it's very not very friendly to use. Does exist anything better?
Thank you, g.

Attachment: Capture.PNG
Description: PNG image


reply via email to

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