]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/fretted-string-harmonics-in-tablature.ly
95a8240546ff6f343be84455b6ff90b653f66e40
[lilypond.git] / Documentation / snippets / fretted-string-harmonics-in-tablature.ly
1 % DO NOT EDIT this file manually; it is automatically
2 % generated from Documentation/snippets/new
3 % Make any changes in Documentation/snippets/new/
4 % and then run scripts/auxiliar/makelsr.py
5 %
6 % This file is in the public domain.
7 %% Note: this file works from version 2.13.49
8 \version "2.13.49"
9
10 \header {
11 %% Translation of GIT committish: 69d7781c6ab26df02bc81ff1eb294d47fa673491
12   texidoces = "
13 Armónicos sobre cuerdas pisadas (armónicos artificiales):
14 "
15   doctitlees = "Armónicos sobre cuerdas pisadas en tablatura"
16
17
18
19   lsrtags = "fretted-strings"
20   texidoc = "
21 Fretted-string harmonics:
22 "
23   doctitle = "Fretted-string harmonics in tablature"
24 } % begin verbatim
25
26
27 pinchedHarmonics = {
28    \textSpannerDown
29    \override TextSpanner #'bound-details #'left #'text =
30       \markup {\halign #-0.5 \teeny "PH" }
31       \override TextSpanner #'style =
32          #'dashed-line
33    \override TextSpanner #'dash-period = #0.6
34    \override TextSpanner #'bound-details #'right #'attach-dir = #1
35    \override TextSpanner #'bound-details #'right #'text =
36       \markup { \draw-line #'(0 . 1) }
37    \override TextSpanner #'bound-details #'right #'padding = #-0.5
38 }
39
40 harmonics = {
41   %artificial harmonics (AH)
42   \textLengthOn
43   <\parenthesize b b''\harmonic>4_\markup{ \teeny "AH 16" }
44   <\parenthesize g g''\harmonic>4_\markup{ \teeny "AH 17" }
45   <\parenthesize d' d'''\harmonic>2_\markup{ \teeny "AH 19" }
46   %pinched harmonics (PH)
47   \pinchedHarmonics
48   <a'\harmonic>2\startTextSpan
49   <g'\harmonic>4
50   <e'\harmonic>4\stopTextSpan
51   %tapped harmonics (TH)
52   <\parenthesize g\4 g'\harmonic>4_\markup{ \teeny "TH 17" }
53   <\parenthesize a\4 a'\harmonic>4_\markup{ \teeny "TH 19" }
54   <\parenthesize c'\3 c''\harmonic>2_\markup{ \teeny "TH 17" }
55   %touch harmonics (TCH)
56   a4( <e''\harmonic>2. )_\markup{ \teeny "TCH" }
57 }
58
59 frettedStrings = {
60   %artificial harmonics (AH)
61   \harmonicByFret #4 g4\3
62   \harmonicByFret #5 d4\4
63   \harmonicByFret #7 g2\3
64   %pinched harmonics (PH)
65   \harmonicByFret #7 d2\4
66   \harmonicByFret #5 d4\4
67   \harmonicByFret #7 a4\5
68   %tapped harmonics (TH)
69   \harmonicByFret #5 d4\4
70   \harmonicByFret #5 d4\4
71   \harmonicByFret #4 g2\3
72   %touch harmonics (TCH)
73   a4 \harmonicByFret #9 g2.\3
74 }
75
76 \score {
77   <<
78     \new Staff {
79       \new Voice {
80         \clef "treble_8"
81         \harmonics
82       }
83     }
84     \new TabStaff {
85       \new TabVoice {
86         \frettedStrings
87       }
88     }
89   >>
90 }