X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=inline;f=Documentation%2Fsnippets%2Fletter-tablature-formatting.ly;h=d08607014dcb769bd13aa89b3ca2b3d7b6371401;hb=e1ce25d2f8182442eec316e33b085922c6a9dcae;hp=d82e1b1fd360977c4bf63767cfe3b11b89595311;hpb=70ff1f9ec002479b4b34e6e470c0e479d6060a57;p=lilypond.git diff --git a/Documentation/snippets/letter-tablature-formatting.ly b/Documentation/snippets/letter-tablature-formatting.ly index d82e1b1fd3..d08607014d 100644 --- a/Documentation/snippets/letter-tablature-formatting.ly +++ b/Documentation/snippets/letter-tablature-formatting.ly @@ -1,27 +1,21 @@ -%% 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.16.0" \header { - lsrtags = "staff-notation, fretted-strings" + lsrtags = "fretted-strings, staff-notation" 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 +28,8 @@ music = \relative c { \clef "G_8" \music } - \new TabStaff \with { - tablatureFormat = #letter-tablature-format + \new TabStaff \with { + tablatureFormat = #fret-letter-tablature-format } { \music