]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/string-number-extender-lines.ly
Docs: run convert-ly for 2.14.0.
[lilypond.git] / Documentation / snippets / string-number-extender-lines.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.dsi.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.14.0"
8
9 \header {
10   lsrtags = "editorial-annotations, text, fretted-strings, tweaks-and-overrides"
11
12   texidoc = "
13 Make an extender line for string number indications, showing that a
14 series of notes is supposed to be played all on the same string.
15
16 "
17   doctitle = "String number extender lines"
18 } % begin verbatim
19
20 stringNumberSpanner =
21 #(define-music-function (parser location StringNumber) (string?)
22   #{
23     \override TextSpanner #'style = #'solid
24     \override TextSpanner #'font-size = #-5
25     \override TextSpanner #'(bound-details left stencil-align-dir-y) = #CENTER
26     \override TextSpanner #'(bound-details left text) = \markup { \circle \number $StringNumber }
27   #})
28
29
30 \relative c {
31   \clef "treble_8"
32   \stringNumberSpanner "5"
33   \textSpannerDown
34   a8\startTextSpan
35   b c d e f\stopTextSpan
36   \stringNumberSpanner "4"
37   g\startTextSpan a
38   bes4 a g2\stopTextSpan
39 }
40