On 16/03/13 15:15, Mark Stephen Mrotek wrote:
Ivan:

When I write polyphony for the piano I use  << { %here pitches for top voice
} \\ { %here pitches for bottom voice} >>. Lilypond seems to take care of
the stem directions.

I reset you example using this format. Some notes of the voices might need
to be adjusted.

\version "2.16.0"
\include "english.ly"
\score {
   <<
   \new Staff = "voice"
   {
     \clef "treble"
     \time 3/4
     \stemDown
     c''2             c''4
     d''2            e''4
     e''8 d''8 c''8 b'4  a'8
     b'2  r4
   }
   \new Staff = "guitar"
   {
     \clef "treble_8"
     \time 3/4
     <<{ c'2 c'4 | b2 a4 | c'8 d'8 e'4 f'4 | e'4 d'2 }
     \\
     { c2 c4 | g2 c'4 | r4 g'4 d'4 | g'4. fs'4.}
     >>
   }
   >>
} % score

Mark

-----Original Message-----
From: lilypond-user-bounces+carsonmark=ca.rr....@gnu.org
[mailto:lilypond-user-bounces+carsonmark=ca.rr....@gnu.org] On Behalf Of
ivan.k.kuznet...@gmail.com
Sent: Friday, March 15, 2013 8:52 PM
To: lilypond-user@gnu.org
Subject: stem directions in music for voice and guitar


Attached is the beginning of an arrangement for voice and guitar.  The
guitar part is two part counterpoint in which I would like to control where
the steps go up or down.

(1) In the guitar part, even though I have \voiceOne marked with \stemUp and
\voiceTwo marked with \stemDown, why do the stems go down in both voices?

(2) Is this snippet considered an example of "best practice", or how might
others structure a file for such a group of instruments?

Thank you for your help.


\version "2.16.0"
\include "english.ly"


\score {

   <<
   \new Staff = "voice"
   {
     \clef "treble"
     \time 3/4

     \stemDown
     c''2             c''4
     d''2            e''4
     e''8 d''8 c''8 b'4  a'8
     b'2  r4
   }


   \new Staff = "guitar"
   {
     \clef "treble_8"
     \time 3/4
     <<
     \voiceOne
     {
      \stemUp
       c'2     c'4
       b2      a4
       c'8 d'8 e'4 f'4
       e'4 d'2
     }
     \voiceTwo
     {
      \stemDown
       c2   c4
       g2   c'4
       r4   g'4  d'4
       g'4.   fs'4.
     }
     >>
   }
   >>

} % score

I think it's better to use named voices. And in single staff polyphony, the stem direction is taken care of by the voices without having to explicitly set it - voiceOne and voiceThree default to stemUp, voiceTwo and voiceFour to stemDown.

\version "2.16.0"

\include "english.ly"

vocal = {
  c''2 c''4 |
  d''2 e''4 |
  e''8 d''8 c''8 b'4 a'8 |
  b'2 r4 |
}

guitarUpper = {
  c'2 c'4 |
  b2 a4 |
  c'8 d'8 e'4 f'4 |
  e'4 d'2
}

guitarLower = {
  c2 c4 |
  g2 c'4 |
  r4 g'4 d'4 |
  g'4. fs'4.
}

\score {
  <<
    \new Staff = "voice"
    {
      \clef "treble"
      \time 3/4
      \new Voice { \stemDown \vocal }
    }
    \new Staff = "guitar"
    {
      \clef "treble_8"
      \time 3/4
      <<
        \new Voice { \voiceOne \guitarUpper }
        \new Voice { \voiceTwo \guitarLower }
      >>
    }
  >>
} % score
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to