|
From: | Urs Liska |
Subject: | Re: Slur on the last note of a staff |
Date: | Thu, 14 Dec 2017 11:27:58 +0100 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0 |
Am 14.12.2017 um 11:19 schrieb Menu Jacques:
Hello Davide, Thanks! Is there a way for this solution to apply to all \laissezVibrer occurrences, so as to put it in global variable?
You can either store the \shape command as a macro or create a wrapper around the whole thing. But I'm not sure this will be terribly useful for *all* occurrences. You can see in the result of the following code that using \shape the two shapes are different because \shape affects the layout that LilyPond has already determined. Probably in your case you'll want to have some static shape. Nevertheless:
LVT = \shape #'((2 . 0)(0 . 4)(5 . -2)(1 . 0)) LaissezVibrerTie LVFunc = #(define-music-function (mus)(ly:music?) #{ \shape #'((2 . 0)(0 . 4)(5 . -2)(1 . 0)) LaissezVibrerTie #mus \laissezVibrer #}) { \LVT c' \laissezVibrer s2. \LVFunc { c' } } HTH Urs
JMlaissezVibrer Le 14 déc. 2017 à 11:01, Davide Liessi <address@hidden> a écrit : 2017-12-14 10:50 GMT+01:00 Menu Jacques <address@hidden>:How can I get a slur on the last note of a staff, such as the attached?You can use \laissezVibrer and \shape: \version "2.18.2" { r2 r4 \shape #'((0 . 0) (0.5 . -0.1) (1 . -0.2) (1.5 . -0.2)) LaissezVibrerTie d'4\laissezVibrer } See http://lilypond.org/doc/v2.18/Documentation/notation/writing-rhythms#ties and http://lilypond.org/doc/v2.18/Documentation/notation/modifying-shapes . Best wishes. Davide _______________________________________________ lilypond-user mailing list address@hidden https://lists.gnu.org/mailman/listinfo/lilypond-user_______________________________________________ lilypond-user mailing list address@hidden https://lists.gnu.org/mailman/listinfo/lilypond-user
document.png
Description: PNG image
[Prev in Thread] | Current Thread | [Next in Thread] |