lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Bug with missing 16th lines


From: Wilbert Berendsen
Subject: Re: Bug with missing 16th lines
Date: Fri, 6 Feb 2009 13:23:47 +0100
User-agent: KMail/1.11.0 (Linux/2.6.27-7-generic; KDE/4.2.0; i686; ; )

Op donderdag 05 februari 2009, schreef Maarten Deen:
> I'm posting this bug here because the bug posting to
> gmane.comp.gnu.lilypond.bugs is broken (it says that I'm top-posting with
> the message below and will not post it).

This is not a bug ....

> If you render the following snippet to PDF, the 16th lines connecting the
> fis16 to the e16 are not rendered, making the fis16 look like a f4.
> I've tested this in lilypond 2.10 and the latest 2.12.2-1, on Windows XP.
> I have my rendering attached.
>
> \paper {
>    ragged-right = ##t
> }
>
> \layout {
>
> }
> \new Score <<
>       \new Staff
>       <<      \set Staff.instrumentName="Strange things"
>               {       \voiceOne
>                       \relative c'' {as2~ as2}
>               }
>               {       \voiceTwo
>                       \relative c' {fis16 e16 d16 e16~ e4~ e2}
>               }
>       >>
> >>

There is a small mistake in your input syntax. When you want two voices to be 
polyphonic, you should either at least instantiate (one of) them as a \new 
Voice, or use the \\ voice separator. The first way looks like this:

\new Score <<
        \new Staff
        <<      \set Staff.instrumentName="Strange things"
                \new Voice {
                        \voiceOne
                        \relative c'' {as2~ as2}
                }
                \new Voice {
                        \voiceTwo
                        \relative c' {fis16 e16 d16 e16~ e4~ e2}
                }
        >>
>>

And the second way (which I often use when possible) (I'd also remove the \new 
Score and rather use the \score { } construct:

\score {
        \new Staff <<
                \relative c'' {as2~ as2}
                \\
                \relative c' {fis16 e16 d16 e16~ e4~ e2}
        >>
}

The \voiceOne and \voiceTwo commands are not necessary in this case, as the \\ 
voice separator creates this automatically. See:
http://lilypond.org/doc/v2.12/Documentation/user/lilypond/Multiple-voices

best regards,
Wilbert Berendsen

-- 
Frescobaldi, LilyPond editor for KDE: http://www.frescobaldi.org/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]