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