Harm,

On Mon, Feb 29, 2016 at 1:27 PM, Thomas Morley-2 [via Lilypond] <
ml-node+s1069038n187894...@n5.nabble.com> wrote:

> 2016-02-29 20:57 GMT+01:00 Abraham Lee <[hidden email]
> <http:///user/SendEmail.jtp?type=node&node=187894&i=0>>:
> >
> > Any suggestions?
> >
> > - Abraham
> >
>
>
> Uhh, markup-mode
>
> #(define-markup-command (ezscore layout props mus) (ly:music?)
>   (interpret-markup layout props
>     #{
>       \markup {
>         \score {
>           \relative c'' { #mus }
>         }
>       }
>     #}))
>
> \markup { I'd like to do this: "\\ezscore { c8[ c] } }" }
>
> \markup { You can do this: \ezscore ##{ { c8[ c] } #} }
>
> mus = { c8[ c] }
> \markup { or this: \ezscore #mus }
>

(face-palm) Ah ha! I knew it was something obvious. Thank you, Harm.

By the way, did the syntax for define-markup-command get simplified like
define-music-function so the "layout props" args aren't necessary anymore?
Just curious.

Best,
Abraham




--
View this message in context: 
http://lilypond.1069038.n5.nabble.com/Using-score-in-define-markup-command-tp187892p187896.html
Sent from the User mailing list archive at Nabble.com.
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to