lilypond-user
[Top][All Lists]
Advanced

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

Re: Markup in a variable


From: Aaron Hill
Subject: Re: Markup in a variable
Date: Wed, 28 Apr 2021 23:13:03 -0700
User-agent: Roundcube Webmail/1.4.9

On 2021-04-28 10:43 pm, Mark Probert wrote:
Hi, all.

I'm getting myself confused. I have an include file -- foo.ily -- and I
want to define different instrument names for later use, like

 altoSax = { \markup { \fontsize #-2 {
  Alto Saxophone \concat { E { \raise #0.5 \teeny \flat }}}}}
 tenorSax = { \markup { \fontsize #-2 {
  Tenor Saxophone \concat { B { \raise #0.5 \teeny \flat }}}}}

but when I do this I get an error "markup outside of text script or
\lyricmode."

What is the correct way to do this kind of thing?

You have an extra pair of braces around your \markup.  Consider:

%%%%
\version "2.22.0"

foo = \markup { lorem ipsum }

\markup \bold \foo
\new Staff \with { instrumentName = \foo }
{ g'^\markup \italic \foo }
%%%%


-- Aaron Hill



reply via email to

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