lilypond-user
[Top][All Lists]
Advanced

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

Re: Using \score in define-markup-command


From: tisimst
Subject: Re: Using \score in define-markup-command
Date: Mon, 29 Feb 2016 13:57:20 -0700 (MST)

Harm,

On Mon, Feb 29, 2016 at 1:27 PM, Thomas Morley-2 [via Lilypond] <[hidden email]> wrote:
2016-02-29 20:57 GMT+01:00 Abraham Lee <[hidden email]>:
>
> 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: Re: Using \score in define-markup-command
Sent from the User mailing list archive at Nabble.com.

reply via email to

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