EVENT_IDENTIFIER using \grace

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

EVENT_IDENTIFIER using \grace

Christophe GODEFROY

Hello community,

 

I’ve some issues to compile the following  code

 

\relative c''

{

\set Staff.implicitTimeSignatureVisibility = #all-invisible

\context Voice { d8. [\grace e32 {d cis d}] (e16 \appoggiatura eis fis2}

}

 

The compilation output is the following :

 

# -*-compilation-*-

Traitement de « C:/Users/Christophe/OneDrive/Documents/test.ly »

Analyse...

C:/Users/Christophe/OneDrive/Documents/test.ly:11:43: Erreur : syntax error, unexpected EVENT_IDENTIFIER

\context Voice { d8. [\grace e32 {d cis d}

                                          ] (e16 \appoggiatura eis fis2}

C:/Users/Christophe/OneDrive/Documents/test.ly:8:1: Erreur : suite à des erreurs répétées, l'expression musicale sera ignorée

 

 

Is somebody can help ?

Thanks in advance

 

Christophe GODEFROY

 


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: EVENT_IDENTIFIER using \grace

David Kastrup
"Christophe GODEFROY" <[hidden email]> writes:

> I’ve some issues to compile the following  code
>
>  
>
> \relative c''
>
> {
>
> \set Staff.implicitTimeSignatureVisibility = #all-invisible
>
> \context Voice { d8. [\grace e32 {d cis d}] (e16 \appoggiatura eis fis2}
>
> }
>
>  
>
> The compilation output is the following :
>
>  
>
> # -*-compilation-*-
>
> Traitement de « C:/Users/Christophe/OneDrive/Documents/test.ly »
>
> Analyse...
>
> C:/Users/Christophe/OneDrive/Documents/test.ly:11:43: Erreur : syntax error,
> unexpected EVENT_IDENTIFIER
>
> \context Voice { d8. [\grace e32 {d cis d}
>
>                                           ] (e16 \appoggiatura eis fis2}
>
> C:/Users/Christophe/OneDrive/Documents/test.ly:8:1: Erreur : suite à des
> erreurs répétées, l'expression musicale sera ignorée
>
>  
>
>  
>
> Is somebody can help ?

So what is your intent here?  There is a spurious ] not attached to any
note.  And the way you space your input, it does not look like you
intend the respective beam to _start_ with d8. either.

Both [ and ] have to be written _after_ the note they are supposed to
belong to.

--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: EVENT_IDENTIFIER using \grace

Christophe GODEFROY
Thanks David for your message.

You are correct the issue was from the []. You point me to the issue
The correct code is

\context Voice { d8. ([\grace {e32 (d cis d)} e16]) \appoggiatura eis fis2}

Thanks for your help

christophe

-----Message d'origine-----
De : David Kastrup [mailto:[hidden email]]
Envoyé : samedi 27 mai 2017 15:25
À : Christophe GODEFROY <[hidden email]>
Cc : [hidden email]
Objet : Re: EVENT_IDENTIFIER using \grace

"Christophe GODEFROY" <[hidden email]> writes:

> I’ve some issues to compile the following  code
>
>  
>
> \relative c''
>
> {
>
> \set Staff.implicitTimeSignatureVisibility = #all-invisible
>
> \context Voice { d8. [\grace e32 {d cis d}] (e16 \appoggiatura eis
> fis2}
>
> }
>
>  
>
> The compilation output is the following :
>
>  
>
> # -*-compilation-*-
>
> Traitement de « C:/Users/Christophe/OneDrive/Documents/test.ly »
>
> Analyse...
>
> C:/Users/Christophe/OneDrive/Documents/test.ly:11:43: Erreur : syntax
> error, unexpected EVENT_IDENTIFIER
>
> \context Voice { d8. [\grace e32 {d cis d}
>
>                                           ] (e16 \appoggiatura eis
> fis2}
>
> C:/Users/Christophe/OneDrive/Documents/test.ly:8:1: Erreur : suite à
> des erreurs répétées, l'expression musicale sera ignorée
>
>  
>
>  
>
> Is somebody can help ?

So what is your intent here?  There is a spurious ] not attached to any note.  And the way you space your input, it does not look like you intend the respective beam to _start_ with d8. either.

Both [ and ] have to be written _after_ the note they are supposed to belong to.

--
David Kastrup


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: EVENT_IDENTIFIER using \grace

David Kastrup
"Christophe GODEFROY" <[hidden email]> writes:

> Thanks David for your message.
>
> You are correct the issue was from the []. You point me to the issue
> The correct code is
>
> \context Voice { d8. ([\grace {e32 (d cis d)} e16]) \appoggiatura eis fis2}

Again: the way you arrange your input makes it look like you expect ([
to apply to \grace ... rather than the preceding d8.  And

([...]) looks like the expectation that those constructs _nest_ in some
manner which they don't.  Written more in the manner in which it works
it would be

\new Voice { d8.([ \grace { e32( d cis d) } e16]) \appogiatura eis16 fis2 }

The results will be the same, of course.  But you are likely not doing
yourself a favor by formatting your input in a manner that matches your
sense of aesthetics better than the underlying realities: while it
doesn't make a difference to LilyPond, it may lead you to wrong
conclusions.  It may also make it harder for you to find "suitable"
input for constructs like

c( d)( e)

which you would likely then write as

c (d) (e)

which only looks more symmetric but isn't.  And does not behave well
when combined with other constructs, like you discovered.

--
David Kastrup

_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

RE: EVENT_IDENTIFIER using \grace

Christophe GODEFROY
Thanks david, I will try to adapt my  way of writing

Christophe

-----Message d'origine-----
De : David Kastrup [mailto:[hidden email]]
Envoyé : samedi 27 mai 2017 15:51
À : Christophe GODEFROY <[hidden email]>
Cc : [hidden email]
Objet : Re: EVENT_IDENTIFIER using \grace

"Christophe GODEFROY" <[hidden email]> writes:

> Thanks David for your message.
>
> You are correct the issue was from the []. You point me to the issue
> The correct code is
>
> \context Voice { d8. ([\grace {e32 (d cis d)} e16]) \appoggiatura eis
> fis2}

Again: the way you arrange your input makes it look like you expect ([ to
apply to \grace ... rather than the preceding d8.  And

([...]) looks like the expectation that those constructs _nest_ in some
manner which they don't.  Written more in the manner in which it works it
would be

\new Voice { d8.([ \grace { e32( d cis d) } e16]) \appogiatura eis16 fis2 }

The results will be the same, of course.  But you are likely not doing
yourself a favor by formatting your input in a manner that matches your
sense of aesthetics better than the underlying realities: while it doesn't
make a difference to LilyPond, it may lead you to wrong conclusions.  It may
also make it harder for you to find "suitable"
input for constructs like

c( d)( e)

which you would likely then write as

c (d) (e)

which only looks more symmetric but isn't.  And does not behave well when
combined with other constructs, like you discovered.

--
David Kastrup


_______________________________________________
lilypond-user mailing list
[hidden email]
https://lists.gnu.org/mailman/listinfo/lilypond-user
Loading...