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