1

I am trying to specify instrumentName like this:

       instrumentName = \markup {
          "Oboe"
          \center-column {
            \line { "I" }
            \line { "II" }
          }
        }

Which looks like this: instrument name

But I want the word "Oboe" vertically centered. How do I do that?

philhanna
  • 73
  • 1
  • 6

2 Answers2

1

Maybe not the perfect solution, but it works:

    \markup {
      \column {
        \vspace #0.5
        "Oboe"
      }
      \center-column {
        \line { "I" }
        \line { "II" }
      }
    }
ksnortum
  • 2,809
  • 4
  • 27
  • 36
1

As pointed out by @OleV.V. in the comments above, the best way of handling this is using the \vcenter command. See example below:

\new Staff \with {
    instrumentName = \markup {
        \vcenter
        "Oboe"
        \center-column {
            \line { "I" }
            \line { "II" }
        }
    }
}
{
    c'4 d'4 e'4 f'4
}

Producing:

enter image description here

gilbertohasnofb
  • 1,984
  • 16
  • 28