]> git.donarmstrong.com Git - lilypond.git/blob - input/regression/breathing-sign.ly
Massive changes - see ChangeLog.
[lilypond.git] / input / regression / breathing-sign.ly
1 #(ly:set-option 'old-relative)
2 \version "1.9.0"
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   \notes \relative c' {
25     \key es \major \time 3/4
26
27 % this bar contains no \breathe
28     < \context Voice = two { \stemDown es4 bes es }
29       \context Voice = one { \stemUp g4 as g }
30     > |
31
32 % by default, \breathe uses the rcomma, just as if saying:
33 % \property Voice.BreathingSign \set #'text = #"scripts-rcomma"
34     < \context Voice = two { \stemDown es4 \breathe bes es }
35       \context Voice = one { \stemUp g4 as g }
36     > |
37
38 % rvarcomma and lvarcomma are variations of the default rcomma and lcomma
39     % N.B.: must use Staff context here, since we start a Voice below
40     \property Staff.BreathingSign \override #'text = #"scripts-rvarcomma"
41     < \context Voice = two { \stemDown es4 \breathe bes es }
42       \context Voice = one { \stemUp g4 as g }
43     > |
44
45 % wedge
46     \property Voice.BreathingSign \override #'text = #"scripts-upbow"
47     es8 d es f g8 \breathe f |
48
49 % caesura
50     \property Voice.BreathingSign \set #'text = #"scripts-caesura"
51      es8-[ d] \breathe  es-[ f g f] |
52     es2 r4 \bar "||" \break
53
54 %
55 % Gregorian stuff:
56 %
57
58 % we turn bars off for Gregorian stuff
59     \property Staff.BarLine \override #'transparent = ##t
60
61 % this bar contains no \breathe
62     < \context Voice = two { \stemDown es4 bes es }
63       \context Voice = one { \stemUp g4 as g }
64     > |
65
66 % \virgula applies rcomma, but in a smaller font
67     < \context Voice = two { \stemDown es4 \virgula bes es }
68       \context Voice = one { \stemUp g4 as g }
69     > |
70
71 % \caesura applies rvarcomma, but in a smaller font
72     < \context Voice = two { \stemDown es4 \caesura bes es }
73       \context Voice = one { \stemUp g4 as g }
74     > |
75
76 % \divisioMinima is a simple vertical stroke through the uppermost
77 % staffline, just like the original implementation of breathing signs.
78     < \context Voice = two { \stemDown es4 \divisioMinima bes es }
79       \context Voice = one { \stemUp g4 as g }
80     > |
81 % \divisio{maior,maxima} and \finalis look like bars and are vertically
82 % centered on the staff; the direction property has no effect
83     < \context Voice = two { \stemDown es4 \divisioMaior bes es }
84       \context Voice = one { \stemUp g4 as g }
85     > |
86     < \context Voice = two { \stemDown es4 \divisioMaxima bes es }
87       \context Voice = one { \stemUp g4 as g }
88     > |
89
90 % this one looks almost like a "||" type bar
91     \finalis
92   }
93 }