Hello again,
I saw my code was damaged while copying and pasting to the mail, sorry!
So now I attach a file ...
regards Jan-Peter.
\version "2.12.2"
noten = \relative c'' {
\dynamicUp
d1\p\>
\tag #'print { c1 ~ c1 }
\tag #'lyrics { c2 ~ c8 c4. ~ c1 }
s1*0\! \bar "|."
}
notend = \relative c'' {
\dynamicUp
d1\p\>
c1\( c1\)\!
\bar "|."
}
text = \lyricmode {
a -- men __ "(n)" __
}
textb = \lyricmode {
a -- \markup { men \translate #'( 14 . 0 ) "(n)" } __
}
\score {
\new ChoirStaff
<<
% the lyrics rhythm
\new Staff <<
\new Voice="melodieA" { \keepWithTag #'lyrics \noten }
>>
\new Lyrics \lyricsto "melodieA" { \text }
% using a devnull context to align '(n)'
% melismas and ties are not supported, so no extenders are drawn
\new Staff <<
\new Devnull="melodie" { \keepWithTag #'lyrics \noten }
\new Voice { \keepWithTag #'print \noten }
>>
\new Lyrics \lyricsto "melodie" { \text }
% using markup translate to move the '(n)'
% trial and error to move to the right position and no extender between 'men' and '(n)'
\new Staff <<
\new Voice="melodieB" { \keepWithTag #'print \noten }
>>
\new Lyrics \lyricsto "melodieB" { \textb }
% using a voice with notes, slurs, ties and phrasingslurs hidden.
% if there are other objects in the voice, like text (e.g. c^schneller ), it has to be 'tagged out'.
% Otherwise those objects appear twice
\new Staff <<
\new Voice="melodieC" \with {
\override Slur #'stencil = ##f
\override Tie #'stencil = ##f
\override PhrasingSlur #'stencil = ##f
\override DynamicText #'stencil = ##f
\override Hairpin #'stencil = ##f
} { \hideNotes { \keepWithTag #'lyrics \noten } }
\new Voice { \keepWithTag #'print \noten }
>>
\new Lyrics \lyricsto "melodieC" { \text }
% using phrasing slurs if the position is next measure
% this only works, if the position of the '(n)' is on a tied note
% the extender is not extended very far to the '(n)'
% the phrasingSlur is *not* a tie and looks different!
\new Staff <<
\new Voice="melodieD" { \notend }
>>
\new Lyrics \lyricsto "melodieD" { \text }
%some random notes
\new Staff { \relative c'' { \repeat unfold 2 { g8 a bes c b bes b16 c d b } | c1 } }
>>
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user