On Sun 28 Feb 2016 at 13:11:44 (+1100), Andrew Bernard wrote:
> Experimenting further, adding this in the layout section seems to work:
>
> \context{
> \Lyrics
> \consists Bar_engraver
> }
>
> Could sombody explain what this is actually doing?You can read my Postponed emails!? "But sometimes I find the examples a little confusing. For example, Learning 2.19.36 A3.3.3 on p161 shows how to put lyrics into a piano staff. But why does it add \consists "Bar_engraver" to the Lyrics context? I can't see any difference in the score when I remove this line." So it's documented but not explained. Here's my example where it appears to make no difference. Do you have an example where it does? Cheers, David.
\version "2.19.36"
upper = \relative c'' {
\clef treble
\key c \major
\time 4/4
a4 b c d
a4 b c d
a4 b c d
}
lower = \relative c {
\clef bass
\key c \major
\time 4/4
a2 c
a2 c
a2 c
}
text = \lyricmode {
Aaa Bee Cee Dee
A word is veryverylongindeed
a tiny little bit.
}
\score {
\new GrandStaff <<
\new Staff = upper { \new Voice = "singer" \upper }
\new Lyrics \lyricsto "singer" \text
\new Staff = lower { \lower }
>>
\layout {
\context {
\GrandStaff
\accepts "Lyrics"
}
\context {
\Lyrics
%%\consists "Bar_engraver"
}
}
\midi { }
}
learning-2.19-p161.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-user mailing list [email protected] https://lists.gnu.org/mailman/listinfo/lilypond-user
