]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/ambitus.ly
* lily/beam-engraver.cc: move new-beam-event to beam-event
[lilypond.git] / input / regression / ambitus.ly
1
2 \header {
3     texidoc = "Ambituses indicate pitch ranges for voices.
4
5 By default, the ambitus grob is put before the clef.  You can control
6 this behaviour through the @code{breakAlignOrder} property of the score
7 context by redefining the order.
8
9
10 The shape of the note heads to use can be changed via the
11 @code{note-head-style} property, which holds the glyph name of the
12 note head.  The vertical line between the upper and lower head can be
13 switched on or off via the @code{join-heads} property.
14
15 "
16 }
17
18 %{
19
20  tex chokes on #
21
22 , e.g. with the following addition to the
23 paper block:
24
25 @example
26 \translator @{
27   \ScoreContext
28   breakAlignOrder = #'(
29     instrument-name
30     left-edge
31     span-bar
32     breathing-sign
33     clef
34     ambitus
35     key-signature
36     staff-bar
37     time-signature
38     custos
39   )
40 @}
41 @end example
42
43  
44 @example
45 \translator @{
46   \VoiceContext
47   \consists Ambitus_engraver
48   Ambitus \set #'note-head-style = #'noteheads-2mensural
49   Ambitus \set #'join-heads = ##f
50 @}
51 @end example
52
53
54  %}
55 \version "1.9.1"
56
57 upper = \notes \relative c {
58         \clef "treble"
59         \key c \minor
60         as'' c e bes f cis d e f g f e d f d e
61         f d e e d f d e e d f d e e d f d e
62         f d e e d f d e e d f d e e d f d e
63 }
64
65 lower = \notes \relative c {
66         \clef "treble"
67         \key e \major
68         e'2 b4 g a c es fis a cis b a g f e d
69         f e d e f g f e d e f g f e d e f g
70         f e d e f g f e d e f g f e d e f g
71 }
72
73 \score { \context ChoirStaff {
74         <
75                 \context Staff = one { \upper }
76                 \context Staff = three { \lower }
77         > }
78         \paper {
79                \translator {
80                         \ScoreContext
81                         breakAlignOrder = #'(
82                                 instrument-name
83                                 left-edge
84                                 ambitus
85                                 span-bar
86                                 breathing-sign
87                                 clef
88                                 key-signature
89                                 staff-bar
90                                 time-signature
91                                 custos
92                         )
93                 }
94                 \translator {
95                         \VoiceContext
96                         \consists Ambitus_engraver
97                 }
98         }
99 }
100