Thank you, Vaughan, for sharing this example.

*Vaughan McAlley wrote:*

> In the end, like Karl, I put the IPA and translation before the music.
>
> https://drive.google.com/file/d/0B0YNwfxb13ZcMFlBajJUU3MwQ2s/view?usp=drive_link&resourcekey=0-YIHrzLopSQrFBYNpoXQ8qg
>

(1) This is a very cool composition. I love counterpoint as well and look
forward to listening to your album Music from 4 to 40 Parts
<https://open.spotify.com/album/3WAUEMeaITGJSahlH4I36o>.

(2) Would you or @Karl be willing to share a snippet showing how you do
this kind of markup in which text and translation appear separately from
the music as vertically aligned columns? I think that would be a helpful
snippet for the Wiki, and I don’t currently see anything on Category:Editorial
annotations - LilyPond wiki
<https://wiki.lilypond.community/wiki/Category:Editorial_annotations>
or Category:Text
- LilyPond wiki <https://wiki.lilypond.community/wiki/Category:Text>.


*Lukas-Fabian Moser wrote:*

> When you want IPA only under certain lyric words, you can use a dedicated
> function provided an IPA Lyrics context is alive and well:


Here is a test of Lukas’s function and context approach. It is working
perfectly for me. Thank you, Lukas! If others have feedback on this, please
share it.
[image: image.png]

%%%  SNIPPET BEGINS

\version "2.24.4"

melody = \relative c' {
  \key bes \major \time 6/8
  f8.( g16) f8 d4. |
  f8. g16 f8 d4. |
  c'4 c8 a4. | bes4 bes8 f4. |
}










*%%  Helper function by Lukas-Fabian Moser:withIPA =#(define-music-function
(IPA word) (ly:music? ly:music?)   #{     <<       \context Lyrics = IPA {
#IPA }       #word     >>   #})*
german = \lyricmode {
  \set stanza = "1. "
  \withIPA ˈʃtɪ Stil -- \withIPA lə le Nacht,
  \withIPA ˈhaɪ̯ hei -- \withIPA lɪ li --
  \withIPA ɡə ge \withIPA naxt Nacht!
  Al -- les schläft,
  \withIPA ˈʔaɪ̯n ein -- \withIPA zam sam
  wacht
}

english = \lyricmode {
  \set stanza = "2. "
  Si -- lent night, ho -- _ ly night,
  all is calm, all is bright
}

\score {
  <<
    \new Voice = "sop" \melody
    \new Lyrics


*      % Reduce the vertical space between the German text and the IPA
transcription “stanza”:       \with { \override
VerticalAxisGroup.nonstaff-nonstaff-spacing.minimum-distance = 2 }*
\lyricsto "sop" \german


*    \new Lyrics = IPA       % Customize the typeface and font size of your
IPA as needed: *      \with {
        \override LyricText.font-name = "Times New Roman,"
        \override LyricText.font-size = #-1
      }

*      % If you like, add some extra space between the IPA and the next
verse: *      \with { \override
VerticalAxisGroup.nonstaff-nonstaff-spacing.minimum-distance = 3.5 }

*      \lyricsto "sop" { \repeat unfold #(length (music-pitches melody))
\skip 1 }*    \new Lyrics \lyricsto "sop" \english
  >>
}

%%%  SNIPPET ENDS

Reply via email to