[prev in list] [next in list] [prev in thread] [next in thread] 

List:       lilypond-user
Subject:    Re: Stem in double division
From:       David Kastrup <dak () gnu ! org>
Date:       2019-05-28 13:31:58
Message-ID: 87muj6zovl.fsf () fencepost ! gnu ! org
[Download RAW message or body]

Thomas Morley <thomasmorley65@gmail.com> writes:

> The << ... \\ ... >> construct creates two Voices named "1" and "2"
> While you do << << .. \\ ... >> \\  ... >> the second \\ will still
> have a Voice called "2". It's content will be added to the first
> created Voice called "2".
> So LilyPond tries to stem togehter 1/2 and 1/8. Ofcourse this does not work.
> You could try << .. \\ .. \\ .. >>, but for complex situations it's
> preferable to explicitely spell out the Voices. leading to:
>
> \relative c {
>    \clef bass
>    <<
>         \new Voice { \voiceOne r4 d'4. c8 }
>         \new Voice { \voiceTwo s4 bes2 }
>      \new Voice { \voiceTwo <c,,, c'>4~q8 r r4}
>    >>
> }

The second(!) one should be \voiceThree or \voiceFour, depending on
whether you want it to have stems up or down.  Generally, you should use
\voiceOne for the topmost voice, \voiceTwo for the lowest, \voiceThree
for the second from the top, \voiceFour for the second from the bottom
and so on.  That's a bit peculiar, particularly with << \\ \\ >>, but
that's how things developed.  At least you can change this nowadays with

\voices 1,3,2 << \\ \\ >>

and thus write the voices in top-to-bottom order even when having more
than two voices.

-- 
David Kastrup

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic