Re: Standalone lyrics part
I will try and solve this by adding an optional NullVoice to my part generator. What I was hoping for before was : \groupBook #(groupPart `( ,(vocalPartCombinePart 'choirSA 'choirSoprano 'choirAlto choirSopranoVxSA choirAltoVxSA choirSopranoLyricsSA choirAltoLyricsSA structure '((inAGroup . #t))) ,(nullLyricsPart 'SA-TB choirCommonNullMusic choirCommonNullLyrics structure) ,(vocalPartCombinePart 'choirTB 'choirTenor 'choirBass choirTenorVxTB choirBassVxTB choirTenorLyricsTB choirBassLyricsTB structure '((inAGroup . #t))) ) 'choirSA-TB '((choirStaff . #t))) "choeur-SA-TB" choirSA-TB I could add this flag '((inAGroup . #t) (extraNullLyrics . #t)) and supply the music to the function. Thank you very much Jean, Carl, and David (& al. obviously). Your help and insights means everything to this list. -- Pierre-Luc Gauthier
Re: Standalone lyrics part
> Le 30 août 2023 à 18:27, Pierre-Luc Gauthier a > écrit : > > Exactly this with the correct ties and slurs interpretation or lyrics. > > music = \repeat unfold 50 { c'4(~ 1) d'8 e' } > > words = \repeat unfold 100 \lyricmode { a b c } > > << > \new Devnull = "2" \music > \new Lyrics \lyricsto "2" \words Truth to be told, this is not really possible simply. What is however supported is attaching your NullVoice to an existing staff (that you want to print anyway). There are examples on https://lilypond.org/doc/v2.24/Documentation/notation/techniques-specific-to-lyrics.fr.html#polyphony-with-shared-lyrics
Re: Standalone lyrics part
> Le 30 août 2023 à 04:21, David Wright a écrit : > > Internals Reference says: > > "2.1.6 Devnull > Silently discards all musical information given to this context." > > so I'm guessing all that's left is the note columns. Not even note columns. A DevNull simply creates *nothing at all*. As simple as that. However, it does, like all contexts, forward the events it receives to its parent contexts. For example, this makes it very useful for "structure" hidden parts with \time and \break commands. Those won't be interpreted on a Voice or Staff level (there will be no extra time signature displayed, for example), but they will still get interpreted on Score level. For the OP's purpose, DevNull is not the right tool. Jean
Re: Standalone lyrics part
Le mar. 29 août 2023, à 22 h 20, David Wright a écrit : > But I'm not really sure what you're after exactly. Exactly this with the correct ties and slurs interpretation or lyrics. music = \repeat unfold 50 { c'4(~ 1) d'8 e' } words = \repeat unfold 100 \lyricmode { a b c } << \new Devnull = "2" \music \new Lyrics \lyricsto "2" \words >> Maybe I could just Hide the staff completely. I've never done that before... I'll give it a try. -- Pierre-Luc Gauthier
Re: Standalone lyrics part
On Tue 29 Aug 2023 at 18:00:47 (-0400), Pierre-Luc Gauthier wrote: > Le mar. 29 août 2023, à 17 h 33, Carl Sorensen a écrit : > > On Tue, Aug 29, 2023 at 3:12 PM Pierre-Luc Gauthier wrote: > >> > >> I need some standalone rhythmically correct lyrics that I place around > >> scores. Devnull seems perfect since it does not create a Staff. Yet, > >> ties and slurs are not taken into account when placing otherwise > >> correct lyrics. Why? Internals Reference says: "2.1.6 Devnull Silently discards all musical information given to this context." so I'm guessing all that's left is the note columns. > >> Take the following MnWE. > >> > >> music = { c'4(~ 2) d'4 } > >> > >> words = \lyricmode { a b c } > >> > >> << > >> \new Staff \new Voice = "1" \music > >> \new Lyrics \lyricsto "1" \words > >> \new Devnull = "2" \music > >> \new Lyrics \lyricsto "2" \words > >> >> > >> > > Use NullVoice instead of Devnull. > > But, doesn't NullVoice create a Staff ? > I am trying to set the lyrics to float in between some random parts. > > music = { c'4(~ 2) d'4 } > > words = \lyricmode { a b c } > > << > \new Staff << > \new Voice = "1" \music > \new Lyrics \lyricsto "1" \words > >> > << % said null part > \new NullVoice = "2" \music > \new Lyrics \lyricsto "2" \words > >> > >> I assume that "standalone" and "float" mean that the position on the x-axis is constrained by the staff above, but not on the y-axis. So you could try: music = { c'4(~ 2) d'4 } words = \lyricmode { a b c } << \new Staff << \new Voice = "1" \music \new Lyrics \lyricsto "1" \words >> \new Lyrics \lyricsto "1" { \once \override LyricText.font-size = #-19 ‧ } \new Lyrics \lyricsto "1" { \once \override LyricText.font-size = #-19 ‧ } \new Lyrics \lyricsto "1" { this floats } \new Lyrics \lyricsto "1" { \once \override LyricText.font-size = #-19 ‧ } \new Lyrics \lyricsto "1" { \once \override LyricText.font-size = #-19 ‧ } >> \new Staff << \new Voice { c'2 d' e' f' } \addlyrics { next score comes here } >> I've cheated with the y-axis spacing; there are better ways I'm sure. But I'm not really sure what you're after exactly. Cheers, David.
Re: Standalone lyrics part
But, doesn't NullVoice create a Staff ? I am trying to set the lyrics to float in between some random parts. music = { c'4(~ 2) d'4 } words = \lyricmode { a b c } << \new Staff << \new Voice = "1" \music \new Lyrics \lyricsto "1" \words >> << % said null part \new NullVoice = "2" \music \new Lyrics \lyricsto "2" \words >> >> Le mar. 29 août 2023, à 17 h 33, Carl Sorensen a écrit : > > > > On Tue, Aug 29, 2023 at 3:12 PM Pierre-Luc Gauthier > wrote: >> >> Hi there, >> >> I need some standalone rhythmically correct lyrics that I place around >> scores. Devnull seems perfect since it does not create a Staff. Yet, >> ties and slurs are not taken into account when placing otherwise >> correct lyrics. Why? Take the following MnWE. >> >> music = { c'4(~ 2) d'4 } >> >> words = \lyricmode { a b c } >> >> << >> \new Staff \new Voice = "1" \music >> \new Lyrics \lyricsto "1" \words >> \new Devnull = "2" \music >> \new Lyrics \lyricsto "2" \words >> >> >> > Use NullVoice instead of Devnull. > > HTH, > > Carl > -- Pierre-Luc Gauthier
Re: Standalone lyrics part
On Tue, Aug 29, 2023 at 3:12 PM Pierre-Luc Gauthier < p.luc.gauth...@gmail.com> wrote: > Hi there, > > I need some standalone rhythmically correct lyrics that I place around > scores. Devnull seems perfect since it does not create a Staff. Yet, > ties and slurs are not taken into account when placing otherwise > correct lyrics. Why? Take the following MnWE. > > music = { c'4(~ 2) d'4 } > > words = \lyricmode { a b c } > > << > \new Staff \new Voice = "1" \music > \new Lyrics \lyricsto "1" \words > \new Devnull = "2" \music > \new Lyrics \lyricsto "2" \words > >> > > Use NullVoice instead of Devnull. HTH, Carl
Standalone lyrics part
Hi there, I need some standalone rhythmically correct lyrics that I place around scores. Devnull seems perfect since it does not create a Staff. Yet, ties and slurs are not taken into account when placing otherwise correct lyrics. Why? Take the following MnWE. music = { c'4(~ 2) d'4 } words = \lyricmode { a b c } << \new Staff \new Voice = "1" \music \new Lyrics \lyricsto "1" \words \new Devnull = "2" \music \new Lyrics \lyricsto "2" \words >> Am-I using it correctly ? Thanks for any pointers -- Pierre-Luc Gauthier