lilypond-user
[Top][All Lists]
Advanced

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

RE: once again with a header, tie into polyphony question


From: Trevor Daniels
Subject: RE: once again with a header, tie into polyphony question
Date: Wed, 21 Nov 2007 11:44:04 -0000

Ole

Notes in different voices cannot be tied together.  The
notes in your first chord are in the default voice whereas
the second d is in the voice called "1".  As the d and fis
in the second bar have different durations yet start at the
same time they cannot be placed in the same voice.  So you
have to place the notes in the first chord in different
voices too.  If the polyphony is of short duration this is
the easiest way:

\new Staff <<
  \time 3/4
  \relative c' {
    r4
    << { fis2~ }      \\ { d2~ } >> |
    << { fis8. d'16 } \\ { d,4 } >>
    r2 |
  }
>>

but if the polyphony is much longer it may be better to
explicitly instantiate the voices:

\new Staff <<
  \time 3/4
  \new Voice = "1" {
     \voiceOne
     \relative c' {
       r4 fis2~ |
       fis8. d'16 r2 |
     }
  }
  \new Voice = "2" {
    \voiceTwo
    \relative c' {
      s4 d2~ |
      d4 s2 |
    }
  }
>>

(note the different octave specification on the d4 as the
relative positions in the input are different in the two
approaches)

Both of these methods cause the stems on the first d2 to
point down.  This can be fixed if you really want them up.

Trevor D

> -----Original Message-----
> From: address@hidden
> [mailto:lilypond-user-bounces+t.daniels=treda.co.u
> address@hidden Behalf Of
> Ole Schmidt
> Sent: 21 November 2007 00:59
> To: address@hidden
> Subject: once again with a header, tie into
> polyphony question
>
>
>
>
> Dear all,
>
> I want to have both of the first two notes tied
> -the d and the f-
> sharp. How do I achieve that?
> Thanks for a hint
>
> ole
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
> \version "2.10.15"
>
>   \new Staff {
>   \time 3/4
>
>   \relative c' {
>
> r4 <d~ fis~ >2| \voiceOne
>
> << { fis8. d'16 }  \new Voice = "1" { \voiceTwo
> d,4  }  >> \oneVoice
> r2 |
>
>   } }
>
> %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
>
>
> _______________________________________________
> lilypond-user mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/lilypond-user
>






reply via email to

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