]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/new/open-string-harmonics-in-tablature.ly
Imported Upstream version 2.14.2
[lilypond.git] / Documentation / snippets / new / open-string-harmonics-in-tablature.ly
diff --git a/Documentation/snippets/new/open-string-harmonics-in-tablature.ly b/Documentation/snippets/new/open-string-harmonics-in-tablature.ly
new file mode 100644 (file)
index 0000000..46a833c
--- /dev/null
@@ -0,0 +1,64 @@
+\version "2.14.0"
+
+\header {
+  lsrtags = "fretted-strings"
+  texidoc = "
+Reference for open-string harmonics:
+"
+  doctitle = "Reference for open-string harmonics"
+}
+
+openStringHarmonics = {
+  %first harmonic
+  \harmonicByFret #12 e,2\6_\markup{"1st harm."}
+  \harmonicByRatio #1/2 e,\6
+  %second harmonic
+  \harmonicByFret #7 e,\6_\markup{"2nd harm. - - - -"}
+  \harmonicByRatio #1/3 e,\6
+  \harmonicByFret #19 e,\6
+  \harmonicByRatio #2/3 e,\6
+  %\harmonicByFret #19 < e,\6 a,\5 d\4 >
+  %\harmonicByRatio #2/3 < e,\6 a,\5 d\4 >
+  %third harmonic
+  \harmonicByFret #5 e,\6_\markup{"3rd harm. - - - -"}
+  \harmonicByRatio #1/4 e,\6
+  \harmonicByFret #24 e,\6
+  \harmonicByRatio #3/4 e,\6
+  \break
+  %fourth harmonic
+  \harmonicByFret #4 e,\6_\markup{"4th harm. - - - - - - - - - - - - -"}
+  \harmonicByRatio #1/5 e,\6
+  \harmonicByFret #9 e,\6
+  \harmonicByRatio #2/5 e,\6
+  \harmonicByFret #16 e,\6
+  \harmonicByRatio #3/5 e,\6
+  %fifth harmonic
+  \harmonicByFret #3 e,\6_\markup{"5th harm."}
+  \harmonicByRatio #1/6 e,\6
+  \break
+  %sixth harmonic
+  \harmonicByFret #2.7 e,\6_\markup{"6th harm."}
+  \harmonicByRatio #1/7 e,\6
+  %seventh harmonic
+  \harmonicByFret #2.3 e,\6_\markup{"7th harm."}
+  \harmonicByRatio #1/8 e,\6
+  %eighth harmonic
+  \harmonicByFret #2 e,\6_\markup{"8th harm."}
+  \harmonicByRatio #1/9 e,\6
+}
+
+\score {
+  <<
+    \new Staff {
+      \new Voice {
+        \clef "treble_8"
+        \openStringHarmonics
+      }
+    }
+    \new TabStaff {
+      \new TabVoice {
+        \openStringHarmonics
+      }
+    }
+  >>
+}