Am 04.05.2011 10:57, schrieb Mario Moles:

In this file the function \tie don't work:

Why don't you use separate voices for the upper and the lower part?

It is easier to write, because you don't have to take the pich of the
upper voice into account when writing the lower parts, and the ties work:

\version "2.13.61"


\paper {

#(set-paper-size "a4" )

}


global = {

\key c \major

\time 4/4

}


classicalGuitar = \relative c' {

\global

% Qui segue la musica.

<<{b2\rest g'8 a c4~}\\{s2 <g,, g'>8[ <a a'>] <c c'>~}>>|

<<{c''8 b! c g c4. g8}\\{<c,, c'> ~ <c c'> <g g'> <c c'>4. <g g'>8}>>|

}

upper = \relative c' {
  b2\rest g'8 a c4 ~ c8 b! c g c4. g8
}

lower = \relative c'' {
  s2 <g,, g'>8[ <a a'>] <c c'> ~ <c c'> ~ <c c'> <g g'> <c c'>4. <g g'>8
}

\book {

\score {

\new Staff \with {

midiInstrument = "acoustic guitar (nylon)"

instrumentName = "Chit."

} { \clef "treble_8" \classicalGuitar }

\layout { }

\midi {

\context {

\Score

tempoWholesPerMinute = #(ly:make-moment 100 4)

}

}

}

\score {
  \new Staff <<
     \clef "treble_8"
     \new Voice { \voiceOne \upper }
     \new Voice { \voiceTwo \lower }
>>
}
}

HTH,

Marc

_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to