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: Urs Liska
Subject: Re: Slur on the last note of a staff
Date: Thu, 14 Dec 2017 12:20:00 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.4.0

Hi Jacques,


Am 14.12.2017 um 12:06 schrieb Jacques Menu Muzhic:
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


Hm. I see that the same happens with 2.19.60.
Initially I compiled it with some (not-so-current) build from the 2.21 branch.

It seems to be related to the way how the music variable is actually processed within the music function.
I'm sorry, but I can't help with that.
But you can try out at least the other approach by removing the invocation of \LVFunc.

HTH (anyway)
Urs

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]