I hope you know that you can click on every example in the
on-line documentation, to see the corresponding LilyPond code.
For example, the second example in Section "7.5.2 Tablatures basic"
seems very similar to what you want to do, right?


I modified your example a bit and included only the music in your
variables/definitions and put all the context related code
directly into \score{...}. I find it easier to understand the
full structure of the piece to do it that way, but you may
have other preferences. Anyway, after my modifications, the
code looks like this:

Melodie =  {
        \set Staff.midiInstrument = "acoustic guitar (nylon)"
        \time 2/4
        \key g \major
        d'16-3 fis'-2 e'-0 c''-4 d' fis' e' c'' |
}

Basse = {
%!Nonprimary Voice
        \set Staff.midiInstrument = "acoustic guitar (nylon)"
        \time 2/4
        \key g \major
        \clef "G_8"
        d'4 d' |

}


\score {
  <<
    \context Staff = MelodieStaff <<
      \clef "G_8"
      \context Voice = Melodie {\voiceOne \Melodie}
      \context Voice = Basse {\voiceTwo \Basse}
    >>
    \context TabStaff = MelodieTab \Melodie
  >>
        \layout {
        }
        \midi {
                \tempo 4 = 80
        }
}


   /Mats


laurent ducos wrote:
Hi
i'm a french user of lilypond (my english is bad, sorry).
I would like that the partition is presented in this manner Partition with two voice (i arrived there) an below the tablature of the
\Melodie voice (in spite of my research in documentation I do not arrive
there )
Thanks to help me
-----------------------------------------------------------------

\version "2.6.0"
blanknotes = {
\override Voice.NoteHead
        #'transparent = ##t
\override Voice.Stem
#'transparent = ##t }
unblanknotes = {\revert Voice.NoteHead #'transparent
\revert Voice.Stem #'transparent }
\header{
        title = "Brasileirinho"
        subtitle = ""
        poet = ""
        composer = "Joao Pernambuco"
        meter = ""
        opus = ""
        arranger = "Laurent Ducos"
        instrument = ""
        dedication = ""
        piece = ""
        head = ""
        copyright = "Gnu General Public Licence"
        footer = ""
        tagline = ""
}

#(set-global-staff-size 20)
Melodie =  \context Voice = Melodie {
        \set Staff.midiInstrument = "acoustic guitar (nylon)"
        \time 2/4
        \key g \major
        \clef "G_8"
        \stemUp
        d'16-3 fis'-2 e'-0 c''-4 d' fis' e' c'' |
}
Basse =  \context Voice = Basse {
%!Nonprimary Voice
        \set Staff.midiInstrument = "acoustic guitar (nylon)"
        \time 2/4
        \key g \major
        \clef "G_8"
        \stemDown
        d'4 d' |

}

MelodieStaff = \context Staff = MelodieStaff <<
        \Melodie
        \Basse


\score {
        <<
                \MelodieStaff
        >>
        \layout {
        }
        \midi {
                \tempo 4 = 80
        }
}



------------------------------------------------------------------------

_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

--
=============================================
        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Sweden
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: [EMAIL PROTECTED]
        WWW: http://www.s3.kth.se/~mabe
=============================================


_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
http://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to