]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/letter-tablature-formatting.ly
Change stringTunings from list of semitones to list of pitches
[lilypond.git] / Documentation / snippets / letter-tablature-formatting.ly
index c4e2df48f19b2e7dd47ea99a22d48290bab3c71d..226e34f53c9e584026cb016cf46d006d2d47d707 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.4"
+% 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.36
+\version "2.13.46"
 
 \header {
+%% Translation of GIT committish: a874fda3641c9e02f61be5c41b215b8304b8ed00
+  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