]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/string-number-extender-lines.ly
Imported Upstream version 2.19.45
[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.di.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.19.22"
8
9 \header {
10   lsrtags = "editorial-annotations, fretted-strings, scheme-language, text, 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 (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 =
27         \markup { \circle \number $StringNumber }
28     #})
29
30
31 \relative c {
32   \clef "treble_8"
33   \stringNumberSpanner "5"
34   \textSpannerDown
35   a8\startTextSpan
36   b c d e f\stopTextSpan
37   \stringNumberSpanner "4"
38   g\startTextSpan a
39   bes4 a g2\stopTextSpan
40 }