Jump to content

Polyphony in tablature: Difference between revisions

From LilyPond wiki
Import snippet from LSR
 
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
Line 1: Line 1:
Polyphony is created the same way in a <code>TabStaff</code> as in a regular staff.
Polyphony is created the same way in a <code>TabStaff</code> as in a regular staff.


<lilypond version="2.24.0">
<lilypond version="2.24">
upper = \relative c' {
upper = \relative c' {
   \time 12/8
   \time 12/8

Revision as of 18:50, 16 November 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
      >>
    >>
  >>
}