lilypond-user
[Top][All Lists]
Advanced

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

Re: Variables


From: Timothy Lanfear
Subject: Re: Variables
Date: Sun, 2 Jun 2019 20:43:43 +0100
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.7.0

The syntax of music functions has changed between version 2.18.2 and 2.19.83. I recommend using the newer version, but here is the old syntax.

\version "2.18.2"

dacapo =
#(define-music-function (parser location dc) (string?)
#{
  \once \override Score.RehearsalMark.break-visibility = #end-of-line-visible
  \once \override Score.RehearsalMark.self-alignment-X = #RIGHT
  \once \override Score.RehearsalMark.direction = #DOWN
  \once \override Score.RehearsalMark.Y-offset = -6
  \mark \markup \italic #dc
#}
)

<<
  \new Staff { \time 3/4 R2.*3 \appoggiatura e''4 d''2 r4\dacapo "Menuetto da capo" }
  \new Staff { \time 3/4 R2.*3 d'2 r4\dacapo "Menuetto da capo" }
>>


On 02/06/2019 20:28, Euler wrote:
Hello Timothy,

here is the compilation i got:  ( version 2.18.2)
# -*-compilation-*-
Traitement de
« E:/Users/christophe/CloudStation/cgyproduction/produits/Catalogue/Sources/JC
Bach/Sonate1-score.ly »
Analyse...
E:/Users/christophe/CloudStation/cgyproduction/produits/Catalogue/Sources/JC
Bach/Sonate1.ly:2:2: Erreur : GUILE a signalé une erreur pour l'expression
débutant ici
#
  (define-music-function (dc) (string?)

E:/Users/christophe/CloudStation/cgyproduction/produits/Catalogue/Sources/JC
Bach/Sonate1.ly:2:2: Erreur : syntax error, unexpected EVENT_IDENTIFIER
#
  (define-music-function (dc) (string?)

E:/Users/christophe/CloudStation/cgyproduction/produits/Catalogue/Sources/JC
Bach/Sonate1.ly:8:26: Erreur : GUILE a signalé une erreur pour l'expression
débutant ici
   \mark \markup \italic #
                          dc

E:/Users/christophe/CloudStation/cgyproduction/produits/Catalogue/Sources/JC
Bach/Sonate1.ly:8:25: Erreur : n'est pas un « markup »
   \mark \markup \italic
                         #dc

E:/Users/christophe/CloudStation/cgyproduction/produits/Catalogue/Sources/JC
Bach/Sonate1.ly:9:1: Erreur : syntax error, unexpected EVENT_IDENTIFIER

)

E:/Users/christophe/CloudStation/cgyproduction/produits/Catalogue/Sources/JC
Bach/Sonate1.ly:244:51: Erreur : chaîne non reconnue ; en dehors d'un script
textuel ou de \lyricmode
     \appoggiatura {e4} d2\dacapo "Menuetto da Capo
                                                   " r4  \bar ":|."| % 44

E:/Users/christophe/CloudStation/cgyproduction/produits/Catalogue/Sources/JC
Bach/Sonate1.ly:296:37: Erreur : chaîne non reconnue ; en dehors d'un script
textuel ou de \lyricmode
        d,2\dacapo "Menuetto da Capo
                                     " r4  \bar ":|."| % 44


very sorry but the Scripting is not my cup of tea

regards
christophe



--
Sent from: http://lilypond.1069038.n5.nabble.com/User-f3.html

_______________________________________________
lilypond-user mailing list
address@hidden
https://lists.gnu.org/mailman/listinfo/lilypond-user

--
Timothy Lanfear, Bristol, UK.




reply via email to

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