]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/breathing-sign.ly
35cbe66591b728b347a9eaa646a70468846686c0
[lilypond.git] / input / regression / breathing-sign.ly
1 #(ly:set-option 'old-relative)
2 \version "1.9.2"
3 \header{
4 texidoc="
5 Breathing signs, also used for phrasing, do normally not influence
6 global spacing -- only if space gets tight, notes are shifted to make
7 room for the breathing sign. Breathing signs break beams running
8 through their voice. In the following example, the notes in the first
9 two measures all have the same distance from each other.
10
11 Breathing signs are available in different tastes: commas (default),
12 ticks, vees and `railroad tracks' (caesura).
13
14 Gregorian chant notation sometimes also uses commas and ticks, but in
15 smaller font size (we call it 'virgula' and 'caesura').  However, the
16 most common breathing signs are divisio minima/maior/maxima and
17 finalis, the latter three looking similar to bar glyphs.
18
19 " }
20
21 \include "gregorian-init.ly"
22
23 \score {
24   {
25     %
26     % Modern notation:
27     %
28     \context Staff {
29       \notes \relative c' {
30         \key es \major \time 3/4
31
32         % this bar contains no \breathe
33         <
34           { g4 as g } \\
35           { es4 bes es }
36         > |
37
38         % by default, \breathe uses the rcomma, just as if saying:
39         % \property Voice.BreathingSign \set #'text =
40         %       #(make-musicglyph-markup "scripts-rcomma")
41         <
42           { g4 as g } \\
43           { es4 \breathe bes es }
44         > |
45
46         % rvarcomma and lvarcomma are variations of the default rcomma
47         % and lcomma
48
49         % N.B.: must use Staff context here, since we start a Voice below
50         \property Staff.BreathingSign \set #'text =
51                 #(make-musicglyph-markup "scripts-rvarcomma")
52         <
53           { g4 as g } \\
54           { es4 \breathe bes es }
55         > |
56
57         % wedge
58         \property Voice.BreathingSign \set #'text =
59                  #(make-musicglyph-markup "scripts-upbow")
60         es8 d es f g8 \breathe f |
61
62         % caesura
63         \property Voice.BreathingSign \set #'text =
64                  #(make-musicglyph-markup "scripts-caesura")
65         es8[ d] \breathe  es[ f g f] |
66         es2 r4 \bar "||" \break
67       }
68     }
69
70     %
71     % Gregorian notation:
72     %
73     \context VaticanaStaff {
74       \notes \relative c' {
75
76         % we turn bars off for Gregorian stuff
77         \property Staff.BarLine \override #'transparent = ##t
78
79         % here is no \breathe
80         c g c
81
82         % \virgula applies rcomma, but in a smaller font
83         c \virgula g c
84
85         % \caesura applies rvarcomma, but in a smaller font
86         c \caesura g c
87
88         % \divisioMinima is a simple vertical stroke through the
89         % uppermost staffline, just like the original implementation
90         % of breathing signs.
91         c \divisioMinima g c
92
93         % \divisio{maior,maxima} and \finalis look like bars and are
94         % vertically centered on the staff; the direction property has
95         % no effect
96         c \divisioMaior g c
97         c \divisioMaxima g c
98
99         % this one looks almost like a "||" type bar
100         \finalis
101       }
102     }
103   }
104 }