lilypond-user
[Top][All Lists]
Advanced

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

Re: Slur on the last note of a staff


From: Jacques Menu Muzhic
Subject: Re: Slur on the last note of a staff
Date: Thu, 14 Dec 2017 12:06:15 +0100

Thanks Urs,

This fails to compile with 2.19.80, though:

Starting lilypond 2.19.80 [Untitled]...
Processing `/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T/frescobaldi-5ev0ysh2/tmp2gdtg16j/document.ly'
Parsing...
#mus
\laissezVibrer

\LVFunc { c' }

{
fatal error: failed files: "/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T/frescobaldi-5ev0ysh2/tmp2gdtg16j/document.ly"
Exited with return code 1.

JM

Le 14 déc. 2017 à 11:27, Urs Liska <address@hidden> a écrit :



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



reply via email to

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