lilypond-user
[Top][All Lists]
Advanced

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

Re: Scarlatti, polyphony within a keyboard score


From: Neil Puttock
Subject: Re: Scarlatti, polyphony within a keyboard score
Date: Sun, 1 Jul 2007 21:23:30 +0100

Hi David,

On 7/1/07, David Fedoruk <address@hidden > wrote:

\version 2.11.27

\include " english.ly "

Sonata_Emajor_K530.ly
     \version "2.10.25"


     upper = \relative c'' {
        \clef treble
        \key e \major
        \time 3/4

        e b fs  r4 r8 \bar "||"                         % Bar 20

        \key e \minor r8  b''8 \grace a16 g8  fs e d | % Bar 21
\override Staff.NoteCollision # merge-differently-dotted = ##t
        << {       c,2 \stemUp a'4 | } >> \\          % bar 22
        \grace b16 c2.  |
         }

    lower = \relative c {
        \clef bass
        \key e \major
        \time 3/4

        r4  r8 e' b fs \bar "||"                                % Bar 20

        \key e \minor e4 r4 r  |                                        % Bar 21
        r8 a''8 fs8 ds  cs b |                                  % Bar 22



     }

     \score {
        \new PianoStaff <<
           \set PianoStaff.instrumentName = "Piano  "
           \new Staff = "upper" \upper
           \new Staff = "lower" \lower
        >>
        \layout { }

        \midi { }

     }

------------------ end Score -------------

This renders, but not as it is supposed to. The right hand should have
a second voice joining and the dotted half c and half note c should be
the same note with stems going both up and down. Instead it renders as
if it were new bars of consecutive score,

The basic syntax for a polyphonic section is as follows:

<< { musicA } \\ { musicB } >>

So for your problem section, you'd change it to this:

<< {       c,2 a'4 | }  \\          % bar 22
       {  \grace b16 c2.  }  >>

You don't need the \stemUp switch, since the first polyphonic voice automatically becomes \voiceOne and has its stems placed up.


I also get this Guile error: error:

--------- snip -----

GUILE signaled an error for the _expression_ beginning here
\override Staff.NoteCollision #
                                merge-differently-dotted = ##t
Unbound variable: merge-differently-dotted

----- snip ----

The line breeaks in the error are as they appear when I invoke
lilypond in the shell.


There's an apostrophe missing from the override, i.e.

\override Staff.NoteCollision #'merge-differently-dotted = ##t


Here's my suggested corrected snippet, with some changes to a few note pitches. Is this what you're after?

\version "2.10.25"

\include "english.ly"
upper = \relative c'' {
    \clef treble
    \key e \major
          \time 3/4
    e8 b fs  r4 r8 \bar "||"       % Bar 20
       \key e \minor r8  b'8 \grace a16 g8  fs e d | % Bar 21
       \override Staff.NoteCollision #'merge-differently-dotted = ##t
       << { c2  a'4 | } \\          % bar 22
       {\grace b,16 c2. }
       >>
}

lower = \relative c {
     \clef bass
           \key e \major
           \time 3/4
    r4  r8 e' b fs \bar "||"                                % Bar 20
         \key e \minor e4 r4 r  |                                        % Bar 21
           r8 a'8 fs8 ds  cs b |                                  % Bar 22
}

\score {
    \new PianoStaff <<
    \set PianoStaff.instrumentName = "Piano  "
           \new Staff = "upper" \upper
        \new Staff = "lower" \lower
           >>
    \layout { }
    \midi { }
}

Regards,
Neil


reply via email to

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