]> git.donarmstrong.com Git - lilypond.git/blobdiff - Documentation/snippets/letter-tablature-formatting.ly
NR: 1.4.1 Replaced deprecated snippet w\ @lilypond
[lilypond.git] / Documentation / snippets / letter-tablature-formatting.ly
index c3baf70353b5f49afcdc5825aa55d3294ba91d66..d08607014dcb769bd13aa89b3ca2b3d7b6371401 100644 (file)
@@ -1,10 +1,13 @@
-%% 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.10"
+\version "2.16.0"
 
 \header {
-  lsrtags = "staff-notation, fretted-strings"
+  lsrtags = "fretted-strings, staff-notation"
 
   texidoc = "
 Tablature can be formatted using letters instead of numbers.
@@ -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