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
JM
laissezVibrer
Le 14 déc. 2017 à 11:01, Davide Liessi <[email protected]> a écrit :
2017-12-14 10:50 GMT+01:00 Menu Jacques <[email protected]>:
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
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user