Thanks!
NullVoice was exactly what I was looking for.

Le mer. 10 févr. 2021 à 17:56, Xavier Scheuer <x.sche...@gmail.com> a
écrit :

> On Wed, 10 Feb 2021 at 08:50, Kuredant Kuredant <kured...@gmail.com>
> wrote:
> >
> > Hi,
> >
> > Given the following example:
> >
> > (snip)
> >
> > I would like to hide the "melody" staff, while keeping the lyrics
> aligned to it (i.e. keep only "song" and "songLyrics" in \score).
> > Is that possible? I've been looking through
> https://lilypond.org/doc/v2.22/Documentation/notation/vocal-music, but it
> seems that the melody staff is always displayed in the examples.
>
> Hello,
>
> Well, you can put your "melody" in a NullVoice, as explained in NR 2.1.2
> Techniques specific to lyrics > Polyphony with shared lyrics
>
> https://lilypond.org/doc/v2.22/Documentation/notation/techniques-specific-to-lyrics.html#polyphony-with-shared-lyrics
>
> You might also want to use melismata and manually beamed notes, cf. NR
> 2.1.1 Common notation for vocal music > Multiple notes to one syllable
>
> https://lilypond.org/doc/v2.22/Documentation/notation/common-notation-for-vocal-music.html#multiple-notes-to-one-syllable
>
> Which gives:
>
> melody = \relative c'' {
>   \time 3/4
>   \autoBeamOff
>   f4 g8[ f e f] |
>   e2.
> }
>
> songLyrics = \lyricmode {
>   Ky -- ri -- e __
> }
>
> song = \relative c' {
>   \time 3/4
>   c4 c c |
>   c8 c c2 |
> }
>
> \score {
>   \new StaffGroup <<
>     \new Staff = "music" {
>       <<
>         \new Voice = "song" {
>           \song
>         }
>         \new NullVoice = "melody" {
>           \melody
>         }
>       >>
>     }
>     \new Lyrics \lyricsto "melody" {
>       \songLyrics
>     }
>   >>
>   \layout {}
> }
>
> Cheers,
> Xavier
>
> --
> Xavier Scheuer <x.sche...@gmail.com>
>
>

Reply via email to