]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/letter-tablature-formatting.ly
Merge branch 'master' of git://git.savannah.gnu.org/lilypond.git
[lilypond.git] / Documentation / snippets / letter-tablature-formatting.ly
index d82e1b1fd360977c4bf63767cfe3b11b89595311..db67212b65ebc6b6a6901dad8e980cee56a04af1 100644 (file)
@@ -1,27 +1,30 @@
-%% 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.4"
+% 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"
 
 \header {
+%% Translation of GIT committish: 70f5f30161f7b804a681cd080274bfcdc9f4fe8c
+  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 = "
-Tablature can be formatted using letters instead of numbers. 
+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
@@ -34,8 +37,8 @@ music = \relative c {
     \clef "G_8"
     \music
   }
-  \new TabStaff \with { 
-    tablatureFormat = #letter-tablature-format
+  \new TabStaff \with {
+    tablatureFormat = #fret-letter-tablature-format
   }
   {
     \music