]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/new/open-string-harmonics-in-tablature.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / new / open-string-harmonics-in-tablature.ly
1 \version "2.14.0"
2
3 \header {
4   lsrtags = "fretted-strings"
5   texidoc = "
6 Reference for open-string harmonics:
7 "
8   doctitle = "Reference for open-string harmonics"
9 }
10
11 openStringHarmonics = {
12   %first harmonic
13   \harmonicByFret #12 e,2\6_\markup{"1st harm."}
14   \harmonicByRatio #1/2 e,\6
15   %second harmonic
16   \harmonicByFret #7 e,\6_\markup{"2nd harm. - - - -"}
17   \harmonicByRatio #1/3 e,\6
18   \harmonicByFret #19 e,\6
19   \harmonicByRatio #2/3 e,\6
20   %\harmonicByFret #19 < e,\6 a,\5 d\4 >
21   %\harmonicByRatio #2/3 < e,\6 a,\5 d\4 >
22   %third harmonic
23   \harmonicByFret #5 e,\6_\markup{"3rd harm. - - - -"}
24   \harmonicByRatio #1/4 e,\6
25   \harmonicByFret #24 e,\6
26   \harmonicByRatio #3/4 e,\6
27   \break
28   %fourth harmonic
29   \harmonicByFret #4 e,\6_\markup{"4th harm. - - - - - - - - - - - - -"}
30   \harmonicByRatio #1/5 e,\6
31   \harmonicByFret #9 e,\6
32   \harmonicByRatio #2/5 e,\6
33   \harmonicByFret #16 e,\6
34   \harmonicByRatio #3/5 e,\6
35   %fifth harmonic
36   \harmonicByFret #3 e,\6_\markup{"5th harm."}
37   \harmonicByRatio #1/6 e,\6
38   \break
39   %sixth harmonic
40   \harmonicByFret #2.7 e,\6_\markup{"6th harm."}
41   \harmonicByRatio #1/7 e,\6
42   %seventh harmonic
43   \harmonicByFret #2.3 e,\6_\markup{"7th harm."}
44   \harmonicByRatio #1/8 e,\6
45   %eighth harmonic
46   \harmonicByFret #2 e,\6_\markup{"8th harm."}
47   \harmonicByRatio #1/9 e,\6
48 }
49
50 \score {
51   <<
52     \new Staff {
53       \new Voice {
54         \clef "treble_8"
55         \openStringHarmonics
56       }
57     }
58     \new TabStaff {
59       \new TabVoice {
60         \openStringHarmonics
61       }
62     }
63   >>
64 }