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