Jump to content

Polyphony in tablature: Difference between revisions

From LilyPond wiki
m Replace version="2.24.0" with version="2.24" now that the LilyWiki extension supports auto-selecting the latest release in a stable series
mNo edit summary
 
(2 intermediate revisions by the same user not shown)
Line 16: Line 16:


\score {
\score {
   <<
   \new StaffGroup = "tab with traditional" <<
    \new StaffGroup = "tab with traditional" <<
    \new Staff = "guitar traditional" <<
      \new Staff = "guitar traditional" <<
      \clef "treble_8"
        \clef "treble_8"
      \new Voice = "upper" \upper
        \new Voice = "upper" \upper
      \new Voice = "lower" \lower
        \new Voice = "lower" \lower
    >>
      >>
 
      \new TabStaff = "guitar tab" <<
    \new TabStaff = "guitar tab" <<
        \new TabVoice = "upper" \upper
      \new TabVoice = "upper" \upper
        \new TabVoice = "lower" \lower
      \new TabVoice = "lower" \lower
      >>
     >>
     >>
   >>
   >>
Line 34: Line 33:
[[Category:Fretted strings]]
[[Category:Fretted strings]]
[[Category:Included in the official documentation]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Latest revision as of 06:19, 15 December 2025

Polyphony is created the same way in a TabStaff as in a regular staff.

\version "2.24"

upper = \relative c' {
  \time 12/8
  \key e \minor
  \voiceOne
  r4. r8 e, fis g16 b g e e' b c b a g fis e
}

lower = \relative c {
  \key e \minor
  \voiceTwo
  r16 e d c b a g4 fis8 e fis g a b c
}

\score {
  \new StaffGroup = "tab with traditional" <<
    \new Staff = "guitar traditional" <<
      \clef "treble_8"
      \new Voice = "upper" \upper
      \new Voice = "lower" \lower
    >>

    \new TabStaff = "guitar tab" <<
      \new TabVoice = "upper" \upper
      \new TabVoice = "lower" \lower
    >>
  >>
}