]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/aligning-and-centering-instrument-names.ly
Add a TODO comment re grace note spacing.
[lilypond.git] / input / lsr / aligning-and-centering-instrument-names.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.35"
4
5 \header {
6   lsrtags = "text, paper-and-layout, titles"
7  texidoc = "
8 Instrument names are generally printed at the left side of the staves.
9 To align the names of several different intruments, you can put them in
10 a \\markup block and use one of the following possibilites:
11
12
13
14     Right-aligned instrument names: this is LilyPond's default behavior
15   
16
17     Center-aligned instrument names: with the \\hcenter-in #n syntax, you
18     can place the instrument names inside a padded box (n being the width
19     of the box)
20   
21
22     Left-aligned instrument names: you have to print the names on top of an
23     empty box, using the \\combine command
24     with a \\hspace #n object.
25   
26
27 " }
28 % begin verbatim
29 \paper{ 
30   indent = #0 
31   left-margin = #30
32   line-width = #160
33 }
34
35 \new StaffGroup \relative
36 <<
37   \new Staff {
38     \set Staff.instrumentName = "blabla"
39     c1^"default" c1 \break 
40     \set Staff.instrumentName = \markup { \hcenter-in #10 "blabla" }
41     c1^"centered" c1 \break 
42     \set Staff.instrumentName = \markup {\combine \hspace #8 "blabla" }
43     c1^"left-aligned" c1 
44     
45   } 
46   \new Staff {
47     \set Staff.instrumentName = "blo"
48     c1 c1 \break 
49     \set Staff.instrumentName = \markup { \hcenter-in #10 "blo" }
50     c1 c1 \break 
51     \set Staff.instrumentName = \markup {\combine \hspace #8 "blo" }
52     c1 c1 
53   } 
54   
55 >>