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...
/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T/frescobaldi-5ev0ysh2/tmp2gdtg16j/document.ly:9:11
 <applewebdata://B5F8C183-B93F-45D6-992A-E8080F66A77F/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
 <applewebdata://B5F8C183-B93F-45D6-992A-E8080F66A77F/1>: error: error in #{ 
... #}
\LVFunc { c' }
/var/folders/jc/xrpy67_x6_vcjfzpzds_9_6m0000gn/T/frescobaldi-5ev0ysh2/tmp2gdtg16j/document.ly:12:1
 <applewebdata://B5F8C183-B93F-45D6-992A-E8080F66A77F/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"
Exited with return code 1.

JM

> Le 14 déc. 2017 à 11:27, Urs Liska <[email protected]> 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
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to