lilypond-user
[Top][All Lists]
Advanced

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

Re: Trill notation with fingering


From: Javier Ruiz-Alma
Subject: Re: Trill notation with fingering
Date: Mon, 4 Apr 2011 19:01:47 -0700 (PDT)


On Apr 4, 2011, at 5:23 PM, Javier Ruiz-Alma wrote:


On Apr 3, 2011, at 7:31 PM, Javier Ruiz-Alma wrote:

Any ideas as to how best to approximate the trill plus fingering notiation as shown in this image?
The closest I can get is:
 
a2.\trill^markup{\finger "3 2"}
 
However, this doesn't show the cap over the digits, plus lilypond seems to always try to display the "tr" symbol at the very top, no matter what order the modifiers are listed after the note.
 
Thx, Javier
<original_fingered_trill.gif>_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-user

Just realized that this is better...

#(define-markup-command (up-tied-lyric layout props a b)
  (markup? markup?)
  (let*
          ((tie-str (ly:wide-char->utf-8 #x2040))
           (joined  (list-join `(,a ,b) tie-str))
           (join-stencil (interpret-markup layout props tie-str))
           )

        (interpret-markup layout
                          (prepend-alist-chain
                           'word-space
                           (/ (interval-length (ly:stencil-extent join-stencil X)) -3.5)
                           props)
                          (make-line-markup joined))))


{ \once \override Staff . Script #'outside-staff-priority = #0
a'2.\trill^\markup{ \up-tied-lyric \finger 3 \finger 2 }}


Cheers,
Mike

Wow, Thank You Mike!

 

Attached is my first try with your code.  I improvised the following to reduce the space between digits, with bad results:

\markup{ \up-tied-lyric \finger "43" }

I don't know anything about custom commands (yet), so I suspect it fails is because your command is expecting two arguments.  Let me know if there's anything I can tweak to improve the distance between the digits or horizontal positioning of the cap/tie.

 

#(define-markup-command (up-tied-lyric layout props a b factor)
  (markup? markup? number?)
  (let*
          ((tie-str (ly:wide-char->utf-8 #x2040))
           (joined  (list-join `(,a ,b) tie-str))
           (join-stencil (interpret-markup layout props tie-str))
           )

        (interpret-markup layout
                          (prepend-alist-chain
                           'word-space
                           (/ (interval-length (ly:stencil-extent join-stencil X)) factor)
                           props)
                          (make-line-markup joined))))


{ \once \override Staff . Script #'outside-staff-priority = #0
a'2.\trill^\markup{ \up-tied-lyric \finger 3 \finger 2 #-2.75 }}

Alternatively, if you want to hardcode a value instead of passing the function a value every time, you can just use the code I sent you before but replace the -3.5 with whatever value you want hardcoded in there.

Cheers,
MS

Mike,
My thanks again for the custom tweak.  I need to test more, see if there's an offset value that may improve centering of that tie/cap.
The command to override lilypond's default placement of the trill sign on top was really valuable to my project.
Attached are a couple samples. I'm thinking this notation with a dash is readable (i.e. trill with fingers 4&3 on one, and the other is hold one note with finger 2 while trilling the other note with 4&3 for the duration of the notes).
Rgds,Javier

Hey Javier,

I don't see the attachment, but I'm glad it helped!

Cheers,
Mike

The dash looks like a prolongation of the "4" symbol - I'd suggest finding a replacement for the dash (ie a bullet point) or shifting the dash up.  But that's just a taste thing.

Cheers,
Mike

Hi Mike,
Thanks for not letting me give up on this. I tried the following notation using the upper tie character you originally proposed and adjusting horiz. space to bring them together:
{
\once \override Staff.Script #'outside-staff-priority = #0
f2.\trill^\markup{\finger{ \concat{ "4" \hspace #-0.5 \char ##x2040 \hspace #-0.5 "3"}}}
}
This may be a winner...check the images.   I got a greater appreciation for lilypond and I learned about notation.
Rgds, Javier

Attachment: mike_vert_override_compress_tie_fingered_trill.gif
Description: GIF image


reply via email to

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