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