The reason is exactly the same as the reason that you cannot do
mynote = c
\score{{\mynote ^"text" }}
See the section on "Adding articulation to notes (example)" for more
information on how to solve the problem.

  /Mats

Frédéric Chiasson wrote:
Hi,

I tried to program a function to put a slash at a given offset on a note, but the line with the ^\markup doesn't work.

Here is the code :

Slash = #(define-music-function (parser location xy note)
            (pair? ly:music?)
            #{
                \once \override TextScript #'extra-offset = #$xy
                $note ^\markup{\musicglyph #"flags.ugrace"}
            #})


\version " 2.11.1"

\relative {
 \Slash #'(1.1 . -3.2) c4
}


Here are the errors :

<string>:3:45: ERREUR : syntax error, unexpected '^'
                \lilyvartmpd
^\markup{\musicglyph #" flags.ugrace"} <string>:3:54: ERREUR : cha^ine d''echappement inconnue (Unknown escape string): << \musicglyph >>
                \lilyvartmpd ^\markup{
\musicglyph #" flags.ugrace"}

Thanks,

Frédéric

------------------------------------------------------------------------

_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
       Fax:   (+46) 8 790 7260
        Email: [EMAIL PROTECTED]
        WWW: http://www.s3.kth.se/~mabe
=============================================



_______________________________________________
lilypond-user mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to