lilypond-user
[Top][All Lists]
Advanced

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

Using \score in define-markup-command


From: Abraham Lee
Subject: Using \score in define-markup-command
Date: Mon, 29 Feb 2016 12:57:39 -0700

All,

I'm trying to utilize the \score markup command within a custom define-markup-command that accepts a music _expression_, but I can't figure out how. I'm probably missing something obvious, but here's a minimal example:

%%%%%%%%%%%%

\version "2.19.36"

\markup {
  I know I can do this:
  \score {
    \relative c'' { c8[ c] }
  }
}

#(define-markup-command (ezscore layout props mus) (ly:music?)
  (interpret-markup layout props
    #{
      \markup {
        \score {
          \relative c'' { #mus }
        }
      }
    #}))

\markup { But I'd like to do this: \ezscore { c8[ c] } }

%%%%%%%%%%%%

Any suggestions?

- Abraham

reply via email to

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