X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;ds=sidebyside;f=Documentation%2Fsnippets%2Fstring-number-extender-lines.ly;h=726e69b778ac901b19d6f6c8e7e59d995fa4dc7b;hb=a2f44bbf0e76840f333f4d8a8f0db6689239f7fb;hp=661c8570bbb3ecc4cad0da7e08a89ff6eeae1062;hpb=248b82c3b9dcecf96351ad5f22540325fa54ad88;p=lilypond.git diff --git a/Documentation/snippets/string-number-extender-lines.ly b/Documentation/snippets/string-number-extender-lines.ly index 661c8570bb..726e69b778 100644 --- a/Documentation/snippets/string-number-extender-lines.ly +++ b/Documentation/snippets/string-number-extender-lines.ly @@ -1,10 +1,14 @@ -%% 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.10" +% DO NOT EDIT this file manually; it is automatically +% generated from Documentation/snippets/new +% Make any changes in Documentation/snippets/new/ +% and then run scripts/auxiliar/makelsr.py +% +% This file is in the public domain. +%% Note: this file works from version 2.17.6 +\version "2.17.6" \header { - lsrtags = "editorial-annotations, text, fretted-strings, tweaks-and-overrides" + lsrtags = "editorial-annotations, text, fretted-strings, tweaks-and-overrides, scheme-language" texidoc = " Make an extender line for string number indications, showing that a @@ -14,13 +18,14 @@ series of notes is supposed to be played all on the same string. doctitle = "String number extender lines" } % begin verbatim + stringNumberSpanner = #(define-music-function (parser location StringNumber) (string?) #{ - \override TextSpanner #'style = #'solid - \override TextSpanner #'font-size = #-5 - \override TextSpanner #'(bound-details left stencil-align-dir-y) = #CENTER - \override TextSpanner #'(bound-details left text) = \markup { \circle \number $StringNumber } + \override TextSpanner.style = #'solid + \override TextSpanner.font-size = #-5 + \override TextSpanner.bound-details.left.stencil-align-dir-y = #CENTER + \override TextSpanner.bound-details.left.text = \markup { \circle \number #StringNumber } #}) @@ -34,4 +39,3 @@ stringNumberSpanner = g\startTextSpan a bes4 a g2\stopTextSpan } -