I'm not sure why you'd want that, but oh well...

%%% Start
\version "2.19.83"

words = \lyricmode {
  One, two and three four
}

melody = \relative c'' {
  \time 3/4
  g2. |
  g8 a f2 ~ |
  2. |
  e2.
  \bar "|."
}

harmony = \relative c' {
  \time 3/4
  \voiceOne
  s2. |
  <d b>2. _~ |
  2. |
  s2.
  \bar "|."
}

\score {
  <<
    \new Staff = "upper" {
      <<
        \new Voice = "lead" {
          \melody
        }
        \new Voice = "harmony" {
          \harmony
        }
      >>
    }
    \new Lyrics \with { alignAboveContext = "staff" } {
      \lyricsto "lead" { \words }
    }
  >>
  \layout {
  }
}
%%% End

At some magnifications, the stems don't seem exactly aligned.  Maybe
someone else can fix that.
---
Knute Snortum
(via Gmail)


On Mon, Sep 30, 2019 at 3:40 PM Flaming Hakama by Elaine <
[email protected]> wrote:

>
>
> On Mon, Sep 30, 2019 at 7:57 AM Knute Snortum <[email protected]> wrote:
>
>> Here's one way to do it:
>>
>> %%% Start
>> \version "2.19.83"
>>
>> words = \lyricmode {
>>   One, two and three four
>> }
>>
>> melody = \relative c'' {
>>   \time 3/4
>>   g2. |
>>   g8 a f2 ~ |
>>   2. |
>>   e2.
>>   \bar "|."
>> }
>>
>> harmony = \relative c' {
>>   \time 3/4
>>   \voiceTwo
>>   s2. |
>>   <d b>2. ~ |
>>   2. |
>>   s2.
>>   \bar "|."
>> }
>>
>> \score {
>>   <<
>>     \new Staff = "upper" {
>>       <<
>>         \new Voice = "lead" {
>>           \melody
>>         }
>>         \new Voice = "harmony" {
>>           \harmony
>>         }
>>       >>
>>     }
>>     \new Lyrics \with { alignAboveContext = "staff" } {
>>       \lyricsto "lead" { \words }
>>     }
>>   >>
>>   \layout {
>>   }
>> }
>> %%% End
>>
>> ---
>> Knute Snortum
>> (via Gmail)
>>
>>
>
> Thanks for the help.
>
> This approach puts the melody and harmony voices into different columns,
> with different stems.
> Is there any way to get them to become realigned, and share stems?
>
>
> Elaine Alt
> 415 . 341 .4954                                           "*Confusion is
> highly underrated*"
> [email protected]
> Producer ~ Composer ~ Instrumentalist ~ Educator
>
> -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
>
_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to