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
<http://document.ly>'
Parsing...
/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T/frescobaldi-5ev0ysh2/tmp2gdtg16j/document.ly:9:11
<0>: error: syntax error, unexpected EVENT_IDENTIFIER
#mus
\laissezVibrer
/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T/frescobaldi-5ev0ysh2/tmp2gdtg16j/document.ly:16:3
<1>: error: error in #{ ... #}
\LVFunc { c' }
/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T/frescobaldi-5ev0ysh2/tmp2gdtg16j/document.ly:12:1
<2>: error: errors found, ignoring music expression
{
fatal error: failed files:
"/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T/frescobaldi-5ev0ysh2/tmp2gdtg16j/document.ly
<http://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 <li...@openlilylib.org
<mailto:li...@openlilylib.org>> 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
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user