lilypond-user
[Top][All Lists]
Advanced

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

Re: Difference between #music and \music?


From: Thomas Morley
Subject: Re: Difference between #music and \music?
Date: Wed, 20 Sep 2017 10:17:12 +0200

2017-09-20 6:52 GMT+02:00 David F. <address@hidden>:
> The following code runs without error:
>
> %%%%
> \version "2.19"
>
> #(define-markup-command (myMarkup layout props music)
>   (ly:music?)
>     % Code to generate markup based on music goes here—elided for simplicity
>     (interpret-markup layout props "myMarkup"))
>
> music = { c'1 }
>
> \markup \myMarkup #music
>
> \ music
> %%%%
>
> However, if I replace #music with \music as the argument to \myMarkup, I get 
> the following error:
>
> document.ly:9:19: error: syntax error, unexpected MUSIC_IDENTIFIER, expecting 
> LOOKUP_IDENTIFIER or SCM_FUNCTION or SCM_IDENTIFIER or SCM_TOKEN
> \markup \myMarkup
>                   \music
>
> Can anyone shed some light on the difference between #music and \music?
>
> Thanks,
> David



Markup-mode is strange in various regards.
Anway, your example works with recent master.

Cheers,
  Harm



reply via email to

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