]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/letter-tablature-formatting.ly
Doc: NR 989 - accidental-tie-overriden.ly
[lilypond.git] / Documentation / snippets / letter-tablature-formatting.ly
index c3baf70353b5f49afcdc5825aa55d3294ba91d66..12adcb3b89c18350aa2cc806a661abf48f34de3a 100644 (file)
@@ -1,9 +1,18 @@
-%% Do not edit this file; it is automatically
-%% generated from LSR http://lsr.dsi.unimi.it
-%% This file is in the public domain.
-\version "2.13.10"
+% Do not edit this file; it is automatically
+% generated from Documentation/snippets/new
+% This file is in the public domain.
+%% Note: this file works from version 2.13.10
+\version "2.13.20"
 
 \header {
+%% Translation of GIT committish: 0b55335aeca1de539bf1125b717e0c21bb6fa31b
+  texidoces = "
+La tablatura se puede formatear utilizando letras en lugar de nĂºmeros.
+
+"
+
+  doctitlees = "Formateado de tablaturas con letras"
+
   lsrtags = "staff-notation, fretted-strings"
 
   texidoc = "
@@ -13,15 +22,6 @@ Tablature can be formatted using letters instead of numbers.
   doctitle = "Letter tablature formatting"
 } % begin verbatim
 
-#(define (letter-tablature-format str context event)
-  (let ((tuning (ly:context-property context 'stringTunings))
-        (pitch (ly:event-property event 'pitch)))
-    (make-whiteout-markup
-     (make-vcenter-markup
-      (string (integer->char
-         (+ (char->integer #\a)
-            (- (ly:pitch-semitones pitch)
-            (list-ref tuning (- str 1))))))))))
 
 music = \relative c {
   c4 d e f
@@ -35,7 +35,7 @@ music = \relative c {
     \music
   }
   \new TabStaff \with {
-    tablatureFormat = #letter-tablature-format
+    tablatureFormat = #fret-letter-tablature-format
   }
   {
     \music