On 01/19/2012 01:32 PM, m...@apollinemike.com wrote:
On Jan 19, 2012, at 10:19 PM, Benedict Singer wrote:
Hi all,
I've been away from Lilypond for a while (I used it as a composer to set my
pieces, and composition has taken a back seat for a few years). I just want to
say that looking at the new features in 2.14 (and in 2.12 before that), it's
incredible what everyone has done, so much thanks!
Welcome back!
Alternatively, do I need to play games with stopping/starting staffs and
reprinting clefs/key signatures? If so, how do I make it look exactly like the
start of a new system (brackets, possibly instrument names, etc)?
This is a fairly difficult job for lilypond to do - I'm not sure if there's an
issue on our isuse tracker open for this, but it's worth e-mailing the bug list
just to check.
A quick idea (you'd have to make it un-ugly, but the functionality is there):
I had considered this idea, but forgotten that you can have full score
blocks inside markups, and that instrument names could be full markups.
With your example, it all came back to me, and so far it works fine.
I'll have to manually tweak the indents to get each one correct, so it's
not completely automatic, but I think this approach should suffice,
since the prefaces are all short and simple. For the curious who come
after me, I've attached a rework of my previous example in the new style
showing what this looks like.
Thanks!
Ben
\version "2.14.0"
global = {
\key c \major
\time 4/4
}
priestNotesOne = \relative c' { g1 }
priestLyricsOne = \lyricmode { "O Lord open thou our lips" }
sopNotesOne = \relative c'' { c4 c c c c c c c }
sopLyricsOne = \lyricmode { And our mouths shall show forth thy praise }
altoNotesOne = \relative c' { e4 e e e e e e e }
tenorNotesOne = \relative c' { g4 g g g g g g g }
bassNotesOne = \relative c { c4 c c c c c c c }
preface = \markup {
\general-align #Y #CENTER {
\score {
\new Staff = "p" << \new Voice = "priest" { \clef bass \voiceOne << \global \priestNotesOne >> }
\new Lyrics \lyricsto "priest" \priestLyricsOne >>
\layout {}
}
\hspace #'5
}
}
\score {
\new ChoirStaff <<
\new Staff = "sa" <<
\new Voice = "sopranos" { \voiceOne << \global \sopNotesOne >> }
\new Voice = "altos" { \voiceTwo << \global \altoNotesOne >> }
>>
\new Lyrics \with { alignAboveContext = #"sa" } \lyricsto "sopranos" \sopLyricsOne
\new Lyrics \with { alignBelowContext = #"sa" } \lyricsto "altos" \sopLyricsOne
\new Staff = "tb" \with { instrumentName = \preface } <<
\clef bass
\new Voice = "tenors" { \voiceOne << \global \tenorNotesOne >> }
\new Voice = "basses" { \voiceTwo << \global \bassNotesOne >> }
>>
\new Lyrics \with { alignAboveContext = #"tb" } \lyricsto "tenors" \sopLyricsOne
\new Lyrics \with { alignBelowContext = #"tb" } \lyricsto "basses" \sopLyricsOne
>>
\layout { indent = 90 }
}
priestNotesTwo = \relative c { e4 g g a g g g }
priestLyricsTwo = \lyricmode { O God make speed to save us }
sopNotesTwo = \relative c'' { c4 c c c c c c }
sopLyricsTwo = \lyricmode { O Lord make haste to help us }
altoNotesTwo = \relative c' { e4 e e e e e e }
tenorNotesTwo = \relative c' { g4 g g g g g g }
bassNotesTwo = \relative c { c4 c c c c c c }
prefaceTwo = \markup {
\general-align #Y #CENTER {
\score {
\new Staff = "p" << \new Voice = "priest" { \clef bass \voiceOne << \global \priestNotesTwo >> }
\new Lyrics \lyricsto "priest" \priestLyricsTwo >>
\layout {}
}
\hspace #'5
}
}
\score {
\new ChoirStaff <<
\new Staff = "sa" <<
\new Voice = "sopranos" { \voiceOne << \global \sopNotesTwo >> }
\new Voice = "altos" { \voiceTwo << \global \altoNotesTwo >> }
>>
\new Lyrics \with { alignAboveContext = #"sa" } \lyricsto "sopranos" \sopLyricsTwo
\new Lyrics \with { alignBelowContext = #"sa" } \lyricsto "altos" \sopLyricsTwo
\new Staff = "tb" \with { instrumentName = \prefaceTwo } <<
\clef bass
\new Voice = "tenors" { \voiceOne << \global \tenorNotesTwo >> }
\new Voice = "basses" { \voiceTwo << \global \bassNotesTwo >> }
>>
\new Lyrics \with { alignAboveContext = #"tb" } \lyricsto "tenors" \sopLyricsTwo
\new Lyrics \with { alignBelowContext = #"tb" } \lyricsto "basses" \sopLyricsTwo
>>
\layout { indent = 90 }
}
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user