]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/fretted-string-harmonics-in-tablature.ly
Docs: run convert-ly for 2.14.0.
[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.14.0"
9
10 \header {
11 %% Translation of GIT committish: 59caa3adce63114ca7972d18f95d4aadc528ec3d
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 %% Translation of GIT committish: f86f00c1a8de0f034ba48506de2801c074bd5422
20   texidocde = "
21 Flageolett für Bundinstrumente:
22 "
23   doctitlede = "Flageolett von Bundinstrumenten in einer Tabulatur"
24
25   lsrtags = "fretted-strings"
26   texidoc = "
27 Fretted-string harmonics:
28 "
29   doctitle = "Fretted-string harmonics in tablature"
30 } % begin verbatim
31
32
33 pinchedHarmonics = {
34    \textSpannerDown
35    \override TextSpanner #'bound-details #'left #'text =
36       \markup {\halign #-0.5 \teeny "PH" }
37       \override TextSpanner #'style =
38          #'dashed-line
39    \override TextSpanner #'dash-period = #0.6
40    \override TextSpanner #'bound-details #'right #'attach-dir = #1
41    \override TextSpanner #'bound-details #'right #'text =
42       \markup { \draw-line #'(0 . 1) }
43    \override TextSpanner #'bound-details #'right #'padding = #-0.5
44 }
45
46 harmonics = {
47   %artificial harmonics (AH)
48   \textLengthOn
49   <\parenthesize b b''\harmonic>4_\markup{ \teeny "AH 16" }
50   <\parenthesize g g''\harmonic>4_\markup{ \teeny "AH 17" }
51   <\parenthesize d' d'''\harmonic>2_\markup{ \teeny "AH 19" }
52   %pinched harmonics (PH)
53   \pinchedHarmonics
54   <a'\harmonic>2\startTextSpan
55   <g'\harmonic>4
56   <e'\harmonic>4\stopTextSpan
57   %tapped harmonics (TH)
58   <\parenthesize g\4 g'\harmonic>4_\markup{ \teeny "TH 17" }
59   <\parenthesize a\4 a'\harmonic>4_\markup{ \teeny "TH 19" }
60   <\parenthesize c'\3 c''\harmonic>2_\markup{ \teeny "TH 17" }
61   %touch harmonics (TCH)
62   a4( <e''\harmonic>2. )_\markup{ \teeny "TCH" }
63 }
64
65 frettedStrings = {
66   %artificial harmonics (AH)
67   \harmonicByFret #4 g4\3
68   \harmonicByFret #5 d4\4
69   \harmonicByFret #7 g2\3
70   %pinched harmonics (PH)
71   \harmonicByFret #7 d2\4
72   \harmonicByFret #5 d4\4
73   \harmonicByFret #7 a4\5
74   %tapped harmonics (TH)
75   \harmonicByFret #5 d4\4
76   \harmonicByFret #5 d4\4
77   \harmonicByFret #4 g2\3
78   %touch harmonics (TCH)
79   a4 \harmonicByFret #9 g2.\3
80 }
81
82 \score {
83   <<
84     \new Staff {
85       \new Voice {
86         \clef "treble_8"
87         \harmonics
88       }
89     }
90     \new TabStaff {
91       \new TabVoice {
92         \frettedStrings
93       }
94     }
95   >>
96 }