]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/letter-tablature-formatting.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / letter-tablature-formatting.ly
index baf88fa35e4e8b977bc0d8b07fb7caf318911c6f..a5e86bb46927f04bfa541e6031f0b0b00e05104c 100644 (file)
@@ -1,26 +1,30 @@
-%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
-%% This file is in the public domain.
-\version "2.13.1"
+% 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.13.36
+\version "2.14.0"
 
 \header {
+%% Translation of GIT committish: 59caa3adce63114ca7972d18f95d4aadc528ec3d
+  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
@@ -33,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