Jump to content

Chord glissando in tablature: Difference between revisions

From LilyPond wiki
No edit summary
m New category
Line 38: Line 38:


[[Category:Fretted strings]]
[[Category:Fretted strings]]
[[Category:Included in the official documentation]][[Category:Snippet]]
[[Category:Included in the official documentation]]
[[Category:Snippet]]

Revision as of 23:14, 21 November 2025

Slides for chords are indicated by default in both Staff and TabStaff.

String numbers may be necessary for TabStaff because automatic string calculations are different for chords and for single notes.

\version "2.24"

myMusic = \relative c' {
  <c e g>1 \glissando <f a c>
  <cis, eis gis>1 \glissando <f a c>
  <cis eis gis>1 \glissando <f a c\3>
}

\score {
  <<
    \new Staff {
      \clef "treble_8"
      \omit StringNumber
      \myMusic
    }
    \new TabStaff \myMusic
  >>
}

\score {
  <<
    \new Staff {
      \clef "treble_8"
      \omit StringNumber
      \myMusic
    }
    \new TabStaff \with { \override Glissando.style = #'none } {
      \myMusic
    }
  >>
}

\paper { tagline = ##f }