1 @c -*- coding: utf-8; mode: texinfo; -*-
3 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
5 When revising a translation, copy the HEAD committish of the
6 version that you are working on. See TRANSLATION for details.
11 @node Fretted string instruments
12 @section Fretted string instruments
14 @lilypondfile[quote]{fretted-headword.ly}
16 This section discusses several aspects of music notation that are unique
17 to fretted string instruments.
20 @cindex guitar tablature
23 * Common notation for fretted strings::
28 @node Common notation for fretted strings
29 @subsection Common notation for fretted strings
31 This section discusses common notation that is unique
32 to fretted string instruments.
35 * References for fretted strings::
36 * String number indications::
37 * Default tablatures::
39 * Fret diagram markups::
40 * Predefined fret diagrams::
41 * Automatic fret diagrams::
42 * Right-hand fingerings::
45 @node References for fretted strings
46 @unnumberedsubsubsec References for fretted strings
48 Music for fretted string instruments is normally notated on
49 a single staff, either in traditional music notation or in
50 tablature. Sometimes the two types are combined, and it is
51 especially common in popular music to use chord diagrams above
52 a staff of traditional notation. The guitar and the banjo are
53 transposing instruments, sounding an octave lower than written.
54 Scores for these instruments should use the @code{"treble_8"} clef.
55 Some other elements pertinent to fretted string instruments
56 are covered elsewhere:
59 @item Fingerings are indicated with @ref{Fingering instructions}.
61 @item Instructions for @notation{Laissez vibrer} ties
62 as well as ties on arpeggios and tremolos is described in
65 @item Instructions on handling multiple voices is described
66 in @ref{Collision resolution}.
73 @ref{Fingering instructions},
75 @ref{Collision resolution},
76 @ref{Instrument names},
77 @ref{Writing music in parallel},
79 @ref{List of articulations},
82 @node String number indications
83 @unnumberedsubsubsec String number indications
85 @cindex String numbers
87 The string on which a note should be played may be indicated by
88 appending @code{\@var{number}} to a note inside a chord construct
91 @warning{String numbers @strong{must} be defined inside a chord
92 construct even if there is only a single note.}
94 @lilypond[verbatim,quote,relative=0]
100 When fingerings and string indications are used together, their
101 placement is controlled by the order in which the two items appear
104 @lilypond[verbatim,quote,relative=1]
112 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
113 {controlling-the-placement-of-chord-fingerings.ly}
115 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
116 {allowing-fingerings-to-be-printed-inside-the-staff.ly}
121 @ref{Fingering instructions}.
124 @rlsr{Fretted strings}.
127 @rinternals{StringNumber},
128 @rinternals{Fingering}.
131 @node Default tablatures
132 @unnumberedsubsubsec Default tablatures
133 @cindex Tablatures, basic
134 @cindex Tablatures, default
136 Tablature notation is used for notating music for plucked string
137 instruments. Pitches are not denoted with note heads, but by
138 numbers indicating on which string and fret a note must be played.
139 LilyPond offers limited support for tablature.
141 The string number associated with a note is given as a backslash
142 followed by a number. By default, string 1 is the highest,
143 and the tuning defaults to the standard guitar tuning (with 6 strings).
144 The notes are printed as tablature, by using @code{TabStaff} and
145 @code{TabVoice} contexts
147 @lilypond[quote,ragged-right,fragment,verbatim]
154 @funindex minimumFret
158 When no string is specified for a note, the note is assigned to
159 the lowest string that can generate the note with a fret number
160 greater than or equal to the value of @code{minimumFret}.
161 The default value for @code{minimumFret} is 0.
164 @lilypond[quote,ragged-right,verbatim]
166 \new Staff \relative c {
171 \new TabStaff \relative c {
173 \set TabStaff.minimumFret = #5
179 Harmonic indications and slides can be added to tablature
182 @lilypond[fragment, verbatim, quote, relative=1]
185 <c g'\harmonic> d\2\glissando e\2
193 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
194 {stem-and-beam-behavior-in-tablature.ly}
196 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
197 {polyphony-in-tablature.ly}
205 @rlsr{Fretted strings}.
208 @rinternals{TabNoteHead},
209 @rinternals{TabStaff},
210 @rinternals{TabVoice},
215 Chords are not handled in a special way, and hence the automatic
216 string selector may easily select the same string for two notes in
219 In order to handle @code{\partcombine}, a @code{TabStaff} must use
220 specially-created voices:
222 @lilypond[quote,ragged-right,verbatim]
223 melodia = \partcombine { e4 g g g }{ e4 e e e }
226 \new TabVoice = "one" s1
227 \new TabVoice = "two" s1
228 \new TabVoice = "shared" s1
229 \new TabVoice = "solo" s1
235 Guitar special effects are limited to harmonics and slides.
237 @node Custom tablatures
238 @unnumberedsubsubsec Custom tablatures
239 @cindex Tablatures, custom
241 LilyPond tabulature automatically calculates the fret for
242 a note based on the string to which the note is assigned.
243 In order to do this, the tuning of the strings must be
244 specified. The tuning of the strings is given in the
245 @code{StringTunings} property.
247 LilyPond comes with predefined string tunings for banjo, mandolin,
248 guitar and bass guitar. Lilypond automatically sets the correct
249 transposition for predefined tunings. The following example is
250 for bass guitar, which sounds an octave lower than written.
252 @lilypond[quote,ragged-right,verbatim]
261 \set TabStaff.stringTunings = #bass-tuning
269 The default string tuning is @code{guitar-tuning}, which
270 is the standard EADGBE tuning. Some other predefined tunings are
271 @code{guitar-open-g-tuning}, @code{mandolin-tuning} and
272 @code{banjo-open-g-tuning}. The predefined string tunings
273 are found in @code{scm/output-lib.scm}.
275 A string tuning is a Scheme list of string pitches,
276 one for each string, ordered by string number from 1 to N,
277 where string 1 is at the top of the tablature staff and
278 string N is at the bottom. This ordinarily results in ordering
279 from highest pitch to lowest pitch, but some instruments
280 (e.g. ukulele) do not have strings ordered by pitch.
282 A string pitch in a string tuning list is the pitch difference
283 of the open string from middle C measured in semitones. The
284 string pitch must be an integer. Lilypond calculates the actual
285 pitch of the string by adding the string tuning pitch to the
286 actual pitch for middle C.
288 LilyPond automatically calculates the number of strings in the
289 @code{TabStaff} as the number of elements in @code{stringTunings}.
291 Any desired string tuning can be created. For example, we can
292 define a string tuning for a four-string instrument with pitches
293 of @code{a''}, @code{d''}, @code{g'}, and @code{c'}:
296 @lilypond[quote,verbatim]
308 \set TabStaff.stringTunings = #'(21 14 7 0)
317 @file{scm/output-lib.scm}.
320 @rlsr{Fretted strings}.
323 @rinternals{Tab_note_heads_engraver}.
326 @node Fret diagram markups
327 @unnumberedsubsubsec Fret diagram markups
328 @cindex fret diagrams
329 @cindex chord diagrams
331 Fret diagrams can be added to music as a markup to the desired
332 note. The markup contains information about the desired fret
333 diagram. There are three different fret-diagram markup
334 interfaces: standard, terse, and verbose. The three interfaces
335 produce equivalent markups, but have varying amounts of
336 information in the markup string. Details about the markup
337 interfaces are found at @ref{Text markup commands}.
339 The standard fret diagram markup string indicates the string
340 number and the fret number for each dot to be placed on the string.
341 In addition, open and unplayed (muted) strings can be indicated.
343 @lilypond[quote, verbatim]
345 \context ChordNames {
352 < c e g c' e' > 1 ^\markup
353 \fret-diagram #"6-x;5-3;4-2;3-o;2-1;1-o;"
354 < d a d' f'> ^\markup
355 \fret-diagram #"6-x;5-x;4-o;3-2;2-3;1-1;"
360 Barre indications can be added to the diagram from
361 the fret-diagram markup string.
363 @lilypond[quote, verbatim]
365 \context ChordNames {
372 < f, c f a c' f'>1 ^\markup
373 \fret-diagram #"c:6-1-1;6-1;5-3;4-3;3-2;2-1;1-1;"
374 < g, b, d g b' g'> ^\markup
375 \fret-diagram #"c:6-1-3;6-3;5-5;4-5;3-4;2-3;1-3;"
380 The size of the fret diagram, and the number of frets in the diagram
381 can be changed in the fret-diagram markup string.
383 @lilypond[quote, verbatim]
385 \context ChordNames {
392 < f, c f a c' f'>1 ^\markup
393 \fret-diagram #"s:1.5;c:6-1-1;6-1;5-3;4-3;3-2;2-1;1-1;"
394 < g, b, d g b' g'> ^\markup
395 \fret-diagram #"h:6;6-3;5-2;4-o;3-o;2-o;1-3;"
400 The number of strings in a fret diagram can be changed to accomodate
401 different instruments such as banjos and ukeleles with the fret-diagram
404 @lilypond[quote, verbatim]
406 \context ChordNames {
412 %% A chord for ukelele
413 a'1 ^\markup \fret-diagram #"w:4;4-2-2;3-1-1;2-o;1-o;"
418 Fingering indications can be added, and the location of fingering labels
419 can be controlled by the fret-diagram markup string.
421 @lilypond[quote, verbatim]
423 \context ChordNames {
430 < c e g c' e' > 1 ^\markup
431 \fret-diagram #"f:1;6-x;5-3-3;4-2-2;3-o;2-1-1;1-o;"
432 < d a d' f'> ^\markup
433 \fret-diagram #"f:2;6-x;5-x;4-o;3-2-2;2-3-3;1-1-1;"
438 Dot radius and dot position can be controlled with the fret-diagram
441 @lilypond[quote, verbatim]
443 \context ChordNames {
450 < c e g c' e' > 1 ^\markup
451 \fret-diagram #"d:0.35;6-x;5-3;4-2;3-o;2-1;1-o;"
452 < d a d' f'> ^\markup
453 \fret-diagram #"p:0.2;6-x;5-x;4-o;3-2;2-3;1-1;"
458 The fret-diagram-terse markup string omits string numbers; the string
459 number is implied by the presence of semicolons. There is one semicolon
460 for each string in the diagram. The first semicolon corresponds to the
461 highest string number and the last semicolon corresponds to the first string.
462 Mute strings, open strings, and fret numbers can be indicated.
464 @lilypond[quote, verbatim]
466 \context ChordNames {
473 < c e g c' e' > 1 ^\markup
474 \fret-diagram-terse #"x;3;2;o;1;o;"
475 < d a d' f'> ^\markup
476 \fret-diagram-terse #"x;x;o;2;3;1;"
481 Barre indicators can be included in the fret-diagram-terse markup string.
483 @lilypond[quote, verbatim]
485 \context ChordNames {
492 < f, c f a c' f'>1 ^\markup
493 \fret-diagram-terse #"1-(;3;3;2;1;1-);"
494 < g, b, d g b' g'> ^\markup
495 \fret-diagram-terse #"3-(;5;5;4;3;3-);"
500 Fingering indications can be included in the fret-diagram-terse markup string.
502 @c Need to use override to enable fingerings to show this -- can we do so?
503 @lilypond[quote, verbatim]
505 \context ChordNames {
511 \override Voice.TextScript
512 #'fret-diagram-details #'finger-code = #'below-string
514 < c e g c' e' > 1 ^\markup
515 \fret-diagram-terse #"x;3-3;2-2;o;1-1;o;"
516 < d a d' f'> ^\markup
517 \fret-diagram-terse #"x;x;o;2-2;3-3;1-1;"
522 Other fret diagram properties must be adjusted using @code{\override} when using
523 the fret-diagram-terse markup.
525 The fret-diagram-verbose markup string is in the format of a Scheme list. Each
526 element of the list indicates an item to be placed on the fret diagram.
528 @lilypond[quote, verbatim]
529 << \context ChordNames {
536 < c e g c' e' > 1 ^\markup
537 \fret-diagram-verbose #'(
545 < d a d' f'> ^\markup
546 \fret-diagram-verbose #'(
558 Fingering indications and barres can be included in a
559 fret-diagram-verbose markup string.
561 @c \override is necessary to make fingering visible
562 @lilypond[quote, verbatim]
564 \context ChordNames {
571 \override Voice.TextScript
572 #'fret-diagram-details #'finger-code = #'below-string
574 < f, c f a c' f'>1 ^\markup
575 \fret-diagram-verbose #'(
584 < g, b, d g b' g'> ^\markup
585 \fret-diagram-verbose #'(
597 All other fret diagram properties must be adjusted using @code{\override}
598 when using the fret-diagram-verbose markup.
601 The following example shows the three fret-diagram markup
602 interfaces, along with examples of common tweaks. For example,
603 the size of the verbose fret diagram is reduced to 0.75, and the
604 finger indications are specified to appear below the diagram. The
605 terse diagram includes tweaks to specify placement of finger code
608 @lilypond[verbatim,ragged-right,quote]
611 d^\markup \fret-diagram #"6-x;5-x;4-o;3-2;2-3;1-2;"
613 fis^\markup \override #'(size . 0.75) {
614 \override #'(finger-code . below-string) {
615 \fret-diagram-verbose #'((place-fret 6 2 1) (barre 6 1 2)
624 c^\markup \override #'(dot-radius . 0.35) {
625 \override #'(finger-code . in-dot) {
626 \override #'(dot-color . white) {
627 \fret-diagram-terse #"x;3-1-(;5-2;5-3;5-4;3-1-);"
636 The graphical layout of a fret diagram can be customized according to
637 user preference through the properties of the @code{fret-diagram-interface}.
638 Details are found at @rinternals{fret-diagram-interface}. For a fret diagram
639 markup , the interface properties belong to @code{Voice.TextScript}.
643 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
644 {customizing-markup-fret-diagrams.ly}
650 @ref{Text markup commands}.
653 @rlsr{Fretted strings}.
656 @rinternals{fret-diagram-interface}.
658 @node Predefined fret diagrams
659 @unnumberedsubsubsec Predefined fret diagrams
660 @cindex fret diagrams
661 @cindex chord diagrams
663 Fret diagrams can be displayed using the @code{FretBoards} context. By
664 default, the @code{FretBoards} context will display fret diagrams that
665 are stored in a lookup table:
667 @lilypond[verbatim, ragged-right, quote]
668 \include "predefined-guitar-fretboards.ly"
669 \context FretBoards {
676 The default predefined fret diagrams are contained in the file
677 @code{predefined-guitar-fretboards.ly}. Fret diagrams are
678 stored based on the pitches of a chord and the value of
679 @code{stringTunings} that is currently in use.
680 @code{predefined-guitar-fretboards.ly} contains predefined
681 fret diagrams only for @code{guitar-tuning}. Predefined fret
682 diagrams can be added for other instruments or other tunings
683 by following the examples found in
684 @code{predefined-guitar-fretboards.ly}.
686 Chord pitches can be entered
687 either as simultaneous music or using chord mode (see
688 @ref{Chord mode overview}).
690 @lilypond[verbatim, ragged-right,quote]
691 \include "predefined-guitar-fretboards.ly"
692 \context FretBoards {
698 It is common that both chord names and fret diagrams are displayed together.
699 This is achieved by putting a @code{ChordNames} context in parallel with
700 a @code{FretBoards} context and giving both contexts the same music.
702 @lilypond[verbatim, ragged-right, quote]
703 \include "predefined-guitar-fretboards.ly"
704 mychords = \chordmode{
709 \context ChordNames {
712 \context FretBoards {
718 Predefined fret diagrams are transposable, as long as a diagram for the
719 transposed chord is stored in the fret diagram table.
721 @lilypond[verbatim, ragged-right, quote]
722 \include "predefined-guitar-fretboards.ly"
723 mychords = \chordmode{
729 \transpose c e { \mychords}
732 \context ChordNames {
735 \context FretBoards {
742 The predefined fret diagram table contains seven chords (major, minor,
743 augmented, diminished, dominant seventh, major seventh, minor seventh)
744 for each of 17 keys. A complete list of the predefined fret diagrams is
745 shown in @ref{Predefined fretboard diagrams}. If there is no entry in
746 the table for a chord, the FretBoards engraver will calculate a
747 fret-diagram using the automatic fret diagram functionality described in
748 @ref{Automatic fret diagrams}.
750 @lilypond[verbatim, ragged-right, quote]
751 \include "predefined-guitar-fretboards.ly"
752 mychords = \chordmode{
757 \context ChordNames {
760 \context FretBoards {
766 Fret diagrams can be added to the fret diagram table. To add a diagram,
767 you must specify the chord for the diagram, the tuning to be used, and the
768 fret-diagram-terse definition string for the diagram.
770 @lilypond[verbatim, ragged-right, quote]
771 \include "predefined-guitar-fretboards.ly"
773 \storePredefinedDiagram \chordmode {c:9}
775 #"x;3-2;2-1;3-3;3-4;x;"
777 mychords = \chordmode{
782 \context ChordNames {
785 \context FretBoards {
791 Different fret diagrams for the same chord name can be stored using different
794 @lilypond[verbatim, ragged-right, quote]
795 \include "predefined-guitar-fretboards.ly"
797 \storePredefinedDiagram \chordmode {c'}
799 #(offset-fret 2 (chord-shape 'bes))
801 mychords = \chordmode{
806 \context ChordNames {
809 \context FretBoards {
815 In addition to fret diagrams, LilyPond stores an internal list of chord
816 shapes. The chord shapes are fret diagrams that can be shifted along
817 the neck to different posistions to provide different chords. Chord
818 shapes can be added to the internal list and then used to define
819 predefined fret diagrams.
821 @lilypond[verbatim, ragged-right, quote]
822 \include "predefined-guitar-fretboards.ly"
824 % add a new chord shape
826 \addChordShape #'powerf #"1-1;3-3;3-4;x;x;x;"
828 % add some new chords based on the power chord shape
830 \storePredefinedDiagram \chordmode {f'}
832 #(chord-shape 'powerf)
833 \storePredefinedDiagram \chordmode {g'}
835 #(offset-fret 2 (chord-shape 'powerf))
837 mychords = \chordmode{
842 \context ChordNames {
845 \context FretBoards {
851 The graphical layout of a fret diagram can be customized according to
852 user preference through the properties of the @code{fret-diagram-interface}.
853 Details are found at @rinternals{fret-diagram-interface}. For a
854 predefined fret diagram, the interface properties belong to
855 @code{FretBoards.FretBoard}.
859 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
860 {customizing-fretboard-fret-diagrams.ly}
866 @ref{Custom tablatures},
867 @ref{Automatic fret diagrams},
868 @ref{Chord mode overview},
869 @ref{Predefined fretboard diagrams}.
872 @file{ly/predefined-guitar-fretboards.ly}.
875 @rlsr{Fretted strings}.
878 @rinternals {fret-diagram-interface}.
881 @node Automatic fret diagrams
882 @unnumberedsubsubsec Automatic fret diagrams
883 @cindex fret diagrams
884 @cindex chord diagrams
886 Fret diagrams can be automatically created from entered notes using the
887 @code{FretBoards} context. If no predefined diagram is available for
888 the entered notes in the active @code{stringTunings}, this context
889 calculates strings and frets that can be used to play the notes.
891 @lilypond[quote,ragged-right,verbatim]
893 \context ChordNames {
898 \context FretBoards {
910 As no predefined diagrams are loaded by default, automatic calculation
911 of fret diagrams is the default behavior. Once default diagrams are
912 loaded, automatic calculation can be enabled and disabled with predefined
915 @lilypond[quote,ragged-right,verbatim]
917 \storePredefinedDiagram <c e g c' e'>
919 #"x;3-1-(;5-2;5-3;5-4;3-1-1);"
921 \context ChordNames {
926 \context FretBoards {
928 \predefinedFretboardsOff
930 \predefinedFretboardsOn
944 Sometimes the fretboard calculator will be unable to find
945 an accceptable diagram. This can often be remedied by
946 manually assigning a note to a string. In many cases, only one
947 note need be manually placed on a string; the rest of
948 the notes will then be placed appropriately by the @code{FretBoards}
951 @lilypond[quote,ragged-right,verbatim]
953 \context ChordNames {
958 \context FretBoards {
970 Fingerings can be added to FretBoard fret diagrams.
972 @lilypond[quote, verbatim]
974 \context ChordNames {
979 \context FretBoards {
980 < c-3 e-2 g c'-1 e' > 1
991 The minimum fret to be used in calculating strings and frets for
992 the FretBoard context can be set with the @code{minimumFret}
995 @lilypond[quote, verbatim]
997 \context ChordNames {
1002 \context FretBoards {
1004 \set FretBoards.minimumFret = #5
1015 The strings and frets for the @code{FretBoards} context depend
1016 on the @code{stringTunings} property, which has the same meaning
1017 as in the TabStaff context. See @ref{Custom tablatures} for
1018 information on the @code{stringTunings} property.
1020 The graphical layout of a fret diagram can be customized according to
1021 user preference through the properties of the @code{fret-diagram-interface}.
1022 Details are found at @rinternals{fret-diagram-interface}. For a
1023 @code{FretBoards} fret diagram, the interface properties belong to
1024 @code{FretBoards.FretBoard}.
1027 @code{\predefinedFretboardsOff},
1028 @code{\predefinedFretboardsOn}.
1033 @ref{Custom tablatures}.
1036 @rlsr{Fretted strings}.
1038 Internals Reference:
1039 @rinternals {fret-diagram-interface}.
1042 @node Right-hand fingerings
1043 @unnumberedsubsubsec Right-hand fingerings
1045 Right-hand fingerings @var{p-i-m-a} must be entered within a
1046 chord construct @code{<>} for them to be printed in the score,
1047 even when applied to a single note.
1049 @warning{There @strong{must} be a hyphen after the note and a space
1050 before the closing @code{>}.}
1052 @lilypond[quote,verbatim,relative=0]
1054 <c-\rightHandFinger #1 >4
1055 <e-\rightHandFinger #2 >
1056 <g-\rightHandFinger #3 >
1057 <c-\rightHandFinger #4 >
1058 <c,-\rightHandFinger #1 e-\rightHandFinger #2 g-\rightHandFinger #3 c-\rightHandFinger #4 >1
1061 For convenience, you can abbreviate @code{\rightHandFinger} to something
1062 short, for example @code{RH},
1065 #(define RH rightHandFinger)
1068 @cindex fingerings, right hand, for guitar
1069 @cindex right hand fingerings for guitar
1073 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
1074 {placement-of-right-hand-fingerings.ly}
1076 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
1077 {fingerings,-string-indications,-and-right-hand-fingerings.ly}
1082 @rlsr{Fretted strings}.
1084 Internals Reference:
1085 @rinternals{StrokeFinger}.
1091 Most of the notational issues associated with guitar music are
1092 covered sufficiently in the general fretted strings section, but there
1093 are a few more worth covering here. Occasionally users want to
1094 create songbook-type documents having only lyrics with chord
1095 indications above them. Since Lilypond is a music typesetter,
1096 it is not recommended for documents that have no music notation
1097 in them. A better alternative is a word processor, text editor,
1098 or, for experienced users, a typesetter like GuitarTeX.
1101 * Indicating position and barring::
1102 * Indicating harmonics and dampened notes::
1105 @node Indicating position and barring
1106 @unnumberedsubsubsec Indicating position and barring
1108 This example demonstrates how to include guitar position and
1109 barring indications.
1111 @lilypond[quote,ragged-right,fragment,verbatim,relative=0]
1115 \override TextSpanner #'bound-details #'left #'text = #"XII "
1117 b16 e g e b g\stopTextSpan
1124 @ref{Text spanners}.
1127 @rlsr{Fretted strings},
1128 @rlsr{Expressive marks}.
1130 @node Indicating harmonics and dampened notes
1131 @unnumberedsubsubsec Indicating harmonics and dampened notes
1133 Special note heads can be used to indicate dampened notes or
1134 harmonics. Harmonics are normally further explained with a
1137 @lilypond[quote,ragged-right,fragment,verbatim]
1140 \override Staff.NoteHead #'style = #'cross
1142 \override Staff.NoteHead #'style = #'harmonic-mixed
1143 d^\markup { \italic { \fontsize #-2 { "harm. 12" }}} <g b>1
1150 @rlsr{Fretted strings}.
1153 @ref{Special note heads},
1154 @ref{Note head styles}.
1160 * Banjo tablatures::
1163 @node Banjo tablatures
1164 @unnumberedsubsubsec Banjo tablatures
1165 @cindex Banjo tablatures
1167 LilyPond has basic support for the five-string banjo. When making tablatures
1168 for five-string banjo, use the banjo tablature format function to get
1169 correct fret numbers for the fifth string:
1171 @c due to crazy intervals of banjo music, absolute pitch is recommended
1173 @lilypond[quote,ragged-right,fragment,verbatim]
1175 \set TabStaff.tablatureFormat = #fret-number-tablature-format-banjo
1176 \set TabStaff.stringTunings = #banjo-open-g-tuning
1179 g8 d' g'\5 a b g e d' |
1180 g4 d''8\5 b' a'\2 g'\5 e'\2 d' |
1186 A number of common tunings for banjo are predefined in LilyPond:
1187 @code{banjo-c-tuning} (gCGBD), @code{banjo-modal-tuning} (gDGCD),
1188 @code{banjo-open-d-tuning} (aDF#AD) and @code{banjo-open-dm-tuning}
1191 These tunings may be converted to four-string banjo tunings using the
1192 @code{four-string-banjo} function:
1195 \set TabStaff.stringTunings = #(four-string-banjo banjo-c-tuning)
1201 @rlsr{Fretted strings}.
1203 The file @file{scm/@/output@/-lib@/.scm} contains predefined banjo tunings.