[Top][All Lists]

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

Re: is the lyric tie tweakable?

From: Risto Vääräniemi
Subject: Re: is the lyric tie tweakable?
Date: Tue, 24 Apr 2018 23:48:18 +0300

Hi Kieren, David & all,

I was searching for a way to shift the lyric tie around and I found this thread from a year back. It looked promising and so I tried David's cool looking tiedLyricOverrides thingy but it only worked partially. I can adjust the word-space but the left-pad does not have any effect. It doesn't matter if I enter positive or negative values. The word-space accepts negative values, though. How should the left-pad affect the text-tie-text combo?

For most of the time the default results are fine for me but if there's a comma between the syllables, e.g. "ro,~e" I'd like to move the tie just a little bit to the left (negative padding) while keeping the space as it is. I'm currently using 2.19.65 but I tested it also on .55 with similar results. I attached the default results and the desired results as an image.

As a plan B I tried to use markup as the text following the tie (so I could use negative hspace or something to shift the second part) but that did not seem to work. The text inside the markup was attached to the following note.

Now we get to plan C... I found a way to cheat the system to get what I wanted but I'd really appreciate a "proper" way to move the tie around. If I use it for different text I'll have to tweak the X-offset of the tie glyph. 
\markup \combine "ro, e" { \translate #'(3 . 0)  \musicglyph #"ties.lyric.default" }

Any other pointers? Did I miss something? Perfectionist? Moi? :-)


On 26 April 2017 at 03:48, David Nalesnik <address@hidden> wrote:
On Tue, Apr 25, 2017 at 7:45 PM, David Nalesnik
<address@hidden> wrote:
> On Tue, Apr 25, 2017 at 7:16 PM, Kieren MacMillan
> <address@hidden> wrote:
>> Hi David,
>>> \markup \tied-lyric \override #'(word-space . 2) #"le,~au”
>> Bingo! Didn’t even need to add the extra parameters!
>>> Don't know at the moment how to make this less cumbersome.
>> I don’t need this to be less cumbersome — this completely solves my original problem.
>> (But this exercise did serve to fractionally increase my Scheme-fu…)
> Nice to hear!
> In any case, here's an experiment.  It allows for varying the
> parameters within the lyricmode _expression_:
> \version "2.19.59"
> #(define (lyric-text::special-print overrides)
>    (lambda (grob)
>      (let ((text (ly:grob-property grob 'text)))
>        (grob-interpret-markup
>         grob
>         (if (string? text)
>             (fold
>              make-override-markup
>              (make-tied-lyric-markup text)
>              overrides)
>             text)))))
> tiedLyricOverrides =
> #(define-music-function (overrides) (list?)
>    #{
>      \override Lyrics.LyricText.stencil = #(lyric-text::special-print overrides)
>    #})
> {
>   \relative {
>     \autoBeamOff
>     r8 b' c fis, fis c' b e,
>   }
>   \addlyrics {
>     \tiedLyricOverrides #'((word-space . 5) (left-pad . 3))
>     Che~in ques -- ta~e~in quel -- l'al -- tr'on -- da
>   }
> }
> %%
> Of course, you'd need to add the left-pad property and functionality
> to \tied-lyric for it to have any effect.

One more thing: you can use \once too.

lilypond-user mailing list

Attachment: lyric_tie_tweak_comparison.png
Description: PNG image

reply via email to

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