On 2016-12-26 01:01, Alexander Kobel wrote:
On 2016-12-26 00:38, Trevor Daniels wrote:I attach a recent example - very Christmassy!Nice one, thanks. Note that, due to the fixed voice association to soprano in the SATB template, you should manually left-align the syllables where the bass has 8.( 16). And I love the fact that lyrics assigned to a Staff instead of a Voice (news around 2.19.50) easily allow to align the { King. __ } and { mould. __ } to the left e' note of the alto instead of the shifted one in soprano... Sorry, I meant to write { King. } and { mould. }, of course. ;-)
Oh well, it's late. I didn't spot measure 7, with the 8( 8) in alto. Same there. And, of course, you should have an extender there in the second verse, and you should have extenders in measure 1 (was/was/shall) an measure 9 (shall/shall/was); but that's a limitation of the satb-template (or, rather, a lack of voice assignment) that's beyond this patch to correct.
In fact, to solve this, one would need a simultaneous assignment of the lyrics to all four voices they apply to. Basically, a \addlyrics \lyricsto ChoirStaff.
... Wait, wasn't there recent news that the "\addlyrics function now works with *arbitrary contexts* incuding Staff" [emphasis mine]?!
Unfortunately: see the attached version.Yes, \lyricsto ChoirStaff actually works to some degree - however, no extenders at all are printed with this construct. Extenders /are/ shown when lyrics are assigned to a Staff; not sure what the difference is, and what needs to be adjusted internally to make it work. Note that the automatic extender patch is not the culprit; output is similar in 2.19.50 except for tiny extenders that are deleted due to collapse-length.
Too late now to condense this to a proper bug report - good night...(Note 1 to whom it may concern, including myself: once this works, the satb and ssaattbb templates should be changed to associate the Verse* lyrics with the entire ChoirStaff, and *Lyrics with the corresponding Staff per default.)
(Note 2 to whom it may concern, including myself: we should have auto extender regtests for \lyricsto ctx = name, for at least ctx = Voice, Staff, ChoirStaff.)
Cheers, Alexander
\version "2.19.54" #(set-global-staff-size 17) \header { title = "As Joseph was A-Walking" subtitle = "" subsubtitle = "" composer = "Trad." arranger = "arr. R.R.Terry" poet = "" revisionDate = \markup { "4 Dec 2016" % first draft } } TwoVoicesPerStaff = ##t SopranoMidiInstrument = "voice oohs" AltoMidiInstrument = "voice oohs" TenorMidiInstrument = "choir aahs" BassMidiInstrument = "choir aahs" sd = \once \slurDashed td = \once \tieDashed Time = { \set melismaBusyProperties = #'() % turn off auto-melismata \time 6/8 \key ees \major \tempo "Andante" 4. = 56 \repeat volta 2 { \partial 8 s8 | s2.*7 | s4. s4 } \break \repeat volta 2 { s8 | s2.*7 | s4. s4 } } SopranoMusic = \relative { ees'8 | g4 bes8 c4 d8 | \sd ees4\=1(\=2( bes8\=1) g4\=2) bes8 | c4 ees8 d4 c8 | bes4.~ 4 c16( d) | \sd ees4( d8) c( d) ees | \sd bes4\=1(\=2( g8\=1) ees4\=2) f8 | \sd g8\=1(\=2( f\=1) ees\=2) \sd bes'4( g8) | ees4.~ 4 ees8 | g4 bes8 c4 d8 | \sd ees4( bes8) g4 bes8 | c4 ees8 d4 c8 | bes4.~ 4 c16( d) | \sd ees4( d8) c( d) ees | \sd bes4\=1(\=2( g8\=1) ees4\=2) f8 | \sd g8\=1(\=2( f\=1) ees\=2) \sd bes'4( g8) | ees4.~ 4 } AltoMusic = \relative { bes8 | ees4 8 4 f8 | \sd g4\=1(\=2( f8\=1) ees4\=2) 8 | ees4 8 aes4 8 | aes4.( g4) ees8 | \td ees4~ 8 ees( f) g | \sd f4\=1(\=2( d8\=1) ees4\=2) 8 | \td ees4~ 8 \sd d\=1(\=2( c\=1) d\=2) | ees4( c8 bes4) bes8 | ees4 8 4 f8 | \sd g4( f8) ees4 8 | ees4 8 aes4 8 | aes4.( g4) ees8 | \td ees4~ 8 ees( f) g | \sd f4\=1(\=2( d8\=1) ees4\=2) 8 | \td ees4~ 8 \sd d\=1(\=2( c\=1) d\=2) | ees4( c8 bes4) } TenorMusic = \relative { g8 | bes4 8 aes 4 8 | \td bes4~ 8 4 g8 | aes4 g8 aes4 c8 | f8.( d16 bes8 ees4) c8 | \td bes4~ 8 aes4 bes8 | \sd \td bes4~( 8 g4) c8 | \sd bes4( g8) \sd aes4( bes8) | g4( aes8 g4) g8 | bes4 8 aes 4 8 | \td bes4~ 8 4 g8 | aes4 g8 aes4 c8 | f8.( d16 bes8 ees4) c8 | \td bes4~ 8 aes4 bes8 | \sd \td bes4~( 8 g4) c8 | \sd bes4( g8) \sd aes4( bes8) | g4( aes8 g4) } BassMusic = \relative { ees8 | ees8.( f16) g8 aes8.( g16) f8 | \sd ees4( d8) ees4 8 | aes,4 c8 f4 ees8 | d4.( ees4) aes8 | \td g4~ 8 aes4 ees8 | \sd d4\=1(\=2( bes8\=2) c4\=1) aes8 | \sd bes4( c8) \td bes4~ 8 | c8.( bes16 aes8 ees'4) ees8 | ees8.( f16) g8 aes8.( g16) f8 | \sd ees4( d8) ees4 8 | aes,4 c8 f4 ees8 | d4.( ees4) aes8 | \td g4~ 8 aes4 ees8 | \sd d4\=1(\=2( bes8\=2) c4\=1) aes8 | \sd bes4( c8) \td bes4~ 8 | c8.( bes16 aes8 ees'4) } VerseOne = \lyricmode { \set stanza = "1. All" As Jo -- _ seph was __ _ a -- walk -- _ ing, He heard an an -- gel sing, __ _ _ _ This __ _ night __ _ shall __ _ be born __ _ _ Our hea -- _ ven -- ly __ _ _ King. __ _ _ _ \set stanza = "4. All" He nei -- _ ther shall __ _ be ro -- _ cked In sil -- ver or in gold, __ _ _ _ But __ _ in a woo -- _ den cra -- _ dle That rocks __ _ _ on __ _ the mould. __ _ _ } VerseTwo = \lyricmode { \set stanza = "2. Men" He nei -- _ ther shall _ be born __ _ _ In hous -- sen nor in hall, __ _ _ _ Nor __ in the place __ of Pa -- ra -- dise, But in __ an ox 's stall. __ _ _ _ \set stanza = "5. Men" He nei -- _ ther shall __ _ be chri -- sten -- ed In white wine or in red, __ _ _ _ But __ in the fair __ spring wa -- _ ter As we __ were chri -- sten -- ed. __ _ _ _ } VerseThree = \lyricmode { \set stanza = "3." He nei -- ther shall be clo -- _ thed In pur -- ple nor in pall, __ _ But _ all __ _ in __ _ fair li -- _ nen As wear __ _ _ ba -- bies all. __ _ \set stanza = "(1." As Jo -- seph was a -- walk -- _ ing, He heard an an -- gel sing, __ _ This _ __ night __ _ shall _ be born __ _ _ Our hea -- _ ven -- ly __ _ King.) __ _ } \paper { indent = 0 top-margin = 10 bottom-margin = 5 left-margin = 25 right-margin = 15 ragged-bottom = ##f ragged-last-bottom = ##f print-page-number = ##t top-markup-spacing.basic-distance = 10 markup-system-spacing.basic-distance = 15 system-system-spacing.basic-distance = 22 top-system-spacing.basic-distance = 15 last-bottom-spacing.basic-distance = 25 } \score { << \new Devnull \Time \new ChoirStaff = "Choir" << \new Staff = "WomenDivided" << \Time \new Voice << \voiceOne \SopranoMusic >> \new Voice << \voiceTwo \AltoMusic >> >> \context Staff = "MenDivided" << \Time \clef bass \new Voice << \voiceOne \TenorMusic >> \new Voice << \voiceTwo \BassMusic >> >> >> \new Lyrics \with { alignAboveContext = "MenDivided" } \lyricsto ChoirStaff = "Choir" \VerseOne \new Lyrics \with { alignAboveContext = "MenDivided" } \lyricsto Staff = "MenDivided" \VerseTwo >> }
As Joseph was A-Walking.pdf
Description: Adobe PDF document
_______________________________________________ lilypond-devel mailing list lilypond-devel@gnu.org https://lists.gnu.org/mailman/listinfo/lilypond-devel