I am trying to create a custom command (let’s call it “\IPA”) that combines
three things in a markup block within lyrics:

(i) \vspace

(ii) \override of the font-name

(iii) tweak to \fontsize

The goal is to be able to write code like this:
  \markup \center-column
    { prayer
      *\IPA* /prɛː/
    }


I’m experimenting with writing a *custom function to create an \IPA command*
but failing. I would be grateful for assistance here!

Gabriel

%%% CODE (MWE) BEGINS

\version "2.24.4"

text = \lyricmode {
  \markup \center-column
    { prayer
      \vspace #-0.4
      \override #'(font-name . "Times New Roman,")
      \fontsize #-2
      /prɛː/
    }
  please
}

melody = \relative c' {
  f g
}

\score{
  <<
    \new Voice = "one" {
      \melody
    }
    \new Lyrics \lyricsto "one" \text
  >>
}

%%% CODE ENDS

Reply via email to