X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fletter-tablature-formatting.ly;h=d08607014dcb769bd13aa89b3ca2b3d7b6371401;hb=e1ce25d2f8182442eec316e33b085922c6a9dcae;hp=baf88fa35e4e8b977bc0d8b07fb7caf318911c6f;hpb=3d8089a42af6304edb8dad56220e845c84832bb2;p=lilypond.git diff --git a/Documentation/snippets/letter-tablature-formatting.ly b/Documentation/snippets/letter-tablature-formatting.ly index baf88fa35e..d08607014d 100644 --- a/Documentation/snippets/letter-tablature-formatting.ly +++ b/Documentation/snippets/letter-tablature-formatting.ly @@ -1,26 +1,21 @@ -%% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it +%% 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.1" +\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 @@ -33,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