lilypond-user
[Top][All Lists]
Advanced

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

Re: instantiating voices


From: Federico Bruni
Subject: Re: instantiating voices
Date: Thu, 26 Nov 2009 09:29:48 +0100
User-agent: Mozilla-Thunderbird 2.0.0.22 (X11/20090706)

Hugh Myers wrote:
On a related note (:;) this piece is a mixture of polyphony and
monophony. Is there an example of the two with tablature?

--hsm

If you use mainly polyphony, the following template should help you. Actually, you can use it also for a mixture of polyphony and monophony, just add a spacer note if you want a voice to be silent.

The advantage of esplicitly instantiate the voices for both staves is that you can easily change some default behaviour of LilyPond that you may dislike.


%% Begin template
\version "2.13.7"

\header {
}

\paper {
}

upper=  \relative c' {

}

lower=  \relative c {

}


  \score {
    \new StaffGroup <<
      \new Staff = "guitar" <<
        \context Voice = "upper guitar" { \clef "G_8" \voiceOne  \upper }
        \context Voice = "lower guitar" { \clef "G_8" \voiceTwo  \lower }
      >>
      \new TabStaff = "tab" <<
\context TabVoice = "upper tab" { \clef "moderntab" \voiceOne \upper } \context TabVoice = "lower tab" { \clef "moderntab" \voiceTwo \lower }
      >>
    >>
  }
%% End template

--
http://gnurag.net/blog/
http://fsfe.org/
http://groups.fsf.org/wiki/LibrePlanetItalia





reply via email to

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