Re: Baroque NoteHeads won't merge without \new Voice

David Poon <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.bugs
Message-ID <CA+Fepaah2X-t_vo72PJMjMHNX0Ff2Ss=DRUhyZZCEFwfZB+wqQ@mail.gmail.com>
Thank you so much for the speedy and clear response. I didn't consider that
it was because the notehead styles were different! Glad for the
understanding.

-David

On Fri, 4 Nov 2022 at 10:27, Jean Abou Samra <[email protected]> wrote:

> Le 04/11/2022 à 18:14, David Poon a écrit :
> > When I use Baroque NoteHeads, noteheads in (temporary) different voices
> > refuse to merge--unless I specifically create a new voice context for
> both
> > voices (not just one as in the Temporary polyphonic passages example
> >
> https://lilypond.org/doc/v2.22/Documentation/notation/multiple-voices#single_002dstaff-polyphony
> > ).
> >
> > -----
> > \version "2.20.0"
> >
> > \new Voice { \relative c'' {
> > \override NoteHead #'style = #'baroque
> > <<
> > % \new Voice
> > { \voiceOne a b c }
> >
> > \new Voice
> > { \voiceTwo a g c }
> > } }
> > -----
> >
> > I.e., commenting out Baroque NoteHeads OR uncommenting \new Voice will
> both
> > give the desired output, but the code as-is duplicates noteheads.
>
>
> The problem is that your second voice created with \new Voice
> does not actually have baroque note heads, as you can see if
> you add a \breve note. This is because you use
>
>    \override NoteHead.style = #'baroque
>
> (N.B. this is the newer syntax, NoteHead #'style is deprecated
> with recent versions), and this overrides NoteHead.style in the
> current Voice, not in other Voice contexts you create. If you
> want to override the style more generally than in the current
> Voice, you need to tell this to LilyPond with, for example,
>
>    \override Staff.NoteHead.style = #'baroque
>
> Giving
>
> \version "2.22.2"
>
> \new Voice {
>    \relative c'' {
>      \override Staff.NoteHead.style = #'baroque
>      <<
>        { \voiceOne a b c }
>        \new Voice { \voiceTwo a g c c }
>      >>
>    }
> }
>
>
> It "works" with an extra \new Voice because then both voices
> have default (non-baroque) heads, whereas without that
> \new Voice, the voice you started at the beginning continues
> into the << >> construct. Then you have note heads with different
> styles, which is the reason why LilyPond refuses to merge them.
>
> Best,
> Jean
>
>
>
>
_______________________________________________
bug-lilypond mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-lilypond
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.