]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/open-string-harmonics-in-tablature.ly
lilypond-manuals.css: edit color scheme and some spacing
[lilypond.git] / Documentation / snippets / open-string-harmonics-in-tablature.ly
index 4469dbc2d8a4ce9422a7851db23db118d6fcbf4f..019a68bccaca5d648dd81f343b4c665d7bcbc098 100644 (file)
@@ -1,76 +1,84 @@
-% DO NOT EDIT this file manually; it is automatically
-% generated from Documentation/snippets/new
-% Make any changes in Documentation/snippets/new/
-% and then run scripts/auxiliar/makelsr.py
-%
-% This file is in the public domain.
-%% Note: this file works from version 2.14.0
-\version "2.14.0"
+%% DO NOT EDIT this file manually; it is automatically
+%% generated from LSR http://lsr.di.unimi.it
+%% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
+%% and then run scripts/auxiliar/makelsr.py
+%%
+%% This file is in the public domain.
+\version "2.18.0"
 
 \header {
-%% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c
-  texidoces = "
-Referencia para armónicos sobre cuerdas al aire (armónicos naturales):
-
-"
-  doctitlees = "Referencia para armónicos sobre cuerdas al aire"
-
-%% Translation of GIT committish: f86f00c1a8de0f034ba48506de2801c074bd5422
-  texidocde = "
-Referenz für Flageolett von offenen Saiten:
-"
-  doctitlede = "Referenz für Flageolett von offenen Saiten"
-
   lsrtags = "fretted-strings"
+
   texidoc = "
-Reference for open-string harmonics:
+This snippet demonstrates open-string harmonics
+
 "
-  doctitle = "Reference for open-string harmonics"
+  doctitle = "Open string harmonics in tablature"
 } % begin verbatim
 
-
 openStringHarmonics = {
+  \textSpannerDown
+  \override TextSpanner.staff-padding = #3
+  \override TextSpanner.dash-fraction = #0.3
+  \override TextSpanner.dash-period = #1
+
   %first harmonic
-  \harmonicByFret #12 e,2\6_\markup{"1st harm."}
-  \harmonicByRatio #1/2 e,\6
+  \override TextSpanner.bound-details.left.text = \markup\small "1st harm. "
+  \harmonicByFret #12 e,2\6\startTextSpan
+  \harmonicByRatio #1/2 e,\6\stopTextSpan
+
   %second harmonic
-  \harmonicByFret #7 e,\6_\markup{"2nd harm. - - - -"}
+  \override TextSpanner.bound-details.left.text = \markup\small "2nd harm. "
+  \harmonicByFret #7 e,\6\startTextSpan
   \harmonicByRatio #1/3 e,\6
   \harmonicByFret #19 e,\6
-  \harmonicByRatio #2/3 e,\6
+  \harmonicByRatio #2/3 e,\6\stopTextSpan
   %\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. - - - -"}
+  \override TextSpanner.bound-details.left.text = \markup\small "3rd harm. "
+  \harmonicByFret #5 e,\6\startTextSpan
   \harmonicByRatio #1/4 e,\6
   \harmonicByFret #24 e,\6
-  \harmonicByRatio #3/4 e,\6
+  \harmonicByRatio #3/4 e,\6\stopTextSpan
   \break
+
   %fourth harmonic
-  \harmonicByFret #4 e,\6_\markup{"4th harm. - - - - - - - - - - - - -"}
+  \override TextSpanner.bound-details.left.text = \markup\small "4th harm. "
+  \harmonicByFret #4 e,\6\startTextSpan
   \harmonicByRatio #1/5 e,\6
   \harmonicByFret #9 e,\6
   \harmonicByRatio #2/5 e,\6
   \harmonicByFret #16 e,\6
-  \harmonicByRatio #3/5 e,\6
+  \harmonicByRatio #3/5 e,\6\stopTextSpan
+
   %fifth harmonic
-  \harmonicByFret #3 e,\6_\markup{"5th harm."}
-  \harmonicByRatio #1/6 e,\6
+  \override TextSpanner.bound-details.left.text = \markup\small "5th harm. "
+  \harmonicByFret #3 e,\6\startTextSpan
+  \harmonicByRatio #1/6 e,\6\stopTextSpan
   \break
+
   %sixth harmonic
-  \harmonicByFret #2.7 e,\6_\markup{"6th harm."}
-  \harmonicByRatio #1/7 e,\6
+  \override TextSpanner.bound-details.left.text = \markup\small "6th harm. "
+  \harmonicByFret #2.7 e,\6\startTextSpan
+  \harmonicByRatio #1/7 e,\6\stopTextSpan
+
   %seventh harmonic
-  \harmonicByFret #2.3 e,\6_\markup{"7th harm."}
-  \harmonicByRatio #1/8 e,\6
+  \override TextSpanner.bound-details.left.text = \markup\small "7th harm. "
+  \harmonicByFret #2.3 e,\6\startTextSpan
+  \harmonicByRatio #1/8 e,\6\stopTextSpan
+
   %eighth harmonic
-  \harmonicByFret #2 e,\6_\markup{"8th harm."}
-  \harmonicByRatio #1/9 e,\6
+  \override TextSpanner.bound-details.left.text = \markup\small "8th harm. "
+  \harmonicByFret #2 e,\6\startTextSpan
+  \harmonicByRatio #1/9 e,\6\stopTextSpan
 }
 
 \score {
   <<
-    \new Staff {
+    \new Staff
+    \with { \omit StringNumber } {
       \new Voice {
         \clef "treble_8"
         \openStringHarmonics