]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/adding-markups-in-a-tablature.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / adding-markups-in-a-tablature.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.18.0"
8
9 \header {
10   lsrtags = "editorial-annotations, fretted-strings, text, tweaks-and-overrides"
11
12   texidoc = "
13 By default markups does not show in a tablature. To make them appear,
14 simply use the command @code{\\revert TabStaff.TextScript.stencil}
15
16 "
17   doctitle = "Adding markups in a tablature"
18 } % begin verbatim
19
20 %% http://lsr.di.unimi.it/LSR/Item?id=919
21 % by P.P.Schneider on June 2014
22
23 high  = { r4 r8 <g c'> q r8 r4 }
24
25 low = { c4 r4 c8 r8 g,8 b, }
26
27 pulse = { s8^"1" s^"&" s^"2" s^"&" s^"3" s^"&" s^"4" s^"&" }
28
29 \score {
30  \new TabStaff {
31    \repeat unfold 2 << \high \\ \low \\ \pulse >>
32   }
33   \layout {
34     \context {
35       \TabStaff
36       \clef moderntab
37       \revert TextScript.stencil
38       \override TextScript.font-series = #'bold
39       \override TextScript.font-size = #-2
40       \override TextScript.color = #red
41
42     }
43     \context {
44       \Score
45       proportionalNotationDuration = #(ly:make-moment 1/8)
46     }
47   }
48 }