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