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