Jump to content

Tablatures template: 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:
Here is a simple template for fretted strings instruments.
Here is a simple template for fretted strings instruments.


<lilypond version="2.24.0">
<lilypond version="2.24">
%% http://lsr.di.unimi.it/LSR/Item?id=634
%% http://lsr.di.unimi.it/LSR/Item?id=634



Revision as of 18:57, 16 November 2025

Here is a simple template for fretted strings instruments.

\version "2.24"

%% http://lsr.di.unimi.it/LSR/Item?id=634

upper= \relative c' {
  c4. g4 g  c
}

lower= \relative c {
  c4 e g, e'
}

\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 }
    >>
  >>
}