]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/letter-tablature-formatting.ly
Update snippets from today's LSR with changed makelsr.py
[lilypond.git] / Documentation / snippets / letter-tablature-formatting.ly
index c4e2df48f19b2e7dd47ea99a22d48290bab3c71d..4fa57241eb181076bb53a674a3bd3cafe39f7f5d 100644 (file)
@@ -1,7 +1,10 @@
-%% Do not edit this file; it is automatically
+%% DO NOT EDIT this file manually; it is automatically
 %% generated from LSR http://lsr.dsi.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.13.4"
+\version "2.14.2"
 
 \header {
   lsrtags = "staff-notation, fretted-strings"
@@ -13,15 +16,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 +29,7 @@ music = \relative c {
     \music
   }
   \new TabStaff \with {
-    tablatureFormat = #letter-tablature-format
+    tablatureFormat = #fret-letter-tablature-format
   }
   {
     \music