lilypond-user
[Top][All Lists]
Advanced

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

Re: is the lyric tie tweakable?


From: David Nalesnik
Subject: Re: is the lyric tie tweakable?
Date: Tue, 25 Apr 2017 19:48:20 -0500

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.



reply via email to

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