]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/breathing-sign.ly
Doc-de: update of wind.itely
[lilypond.git] / input / regression / breathing-sign.ly
index cf0021f992ea2f172438ee3a1502e7491e5bedeb..181a67656d341bf7b553efaf474f8b7c609ad93e 100644 (file)
@@ -1,32 +1,55 @@
-\version "1.7.6"
+\version "2.11.51"
 \header{
-texidoc="
-Breathing signs, also used for phrasing, do normally not influence
-global spacing -- only if space gets tight, notes are shifted to make
-room for the breathing sign. Breathing signs break beams running
-through their voice. In the following example, the notes in the first
-two measures all have the same distance from each other:
-"
+  texidoc="
+Breathing signs are available in different tastes: commas (default),
+ticks, vees and `railroad tracks' (caesura)."
 }
 
 
+{
+  %% Modern notation:
+  \new Staff {
+    \relative c'' {
+      \key es \major \time 3/4
 
+      %% this bar contains no \breathe
+      <<
+       { g4 as g } \\
+       { es4 bes es }
+      >> |
 
-\score {
-  \notes \relative c' {
-    \key es \major \time 3/4
-    < \context Voice = two { \stemDown es4 bes es }
-      \context Voice = one { \stemUp g4 as g }
-    > |
-    < \context Voice = two { \stemDown es4 \breathe bes es }
-      \context Voice = one { \stemUp g4 as g }
-    > |
-% Change to wedge:
-    \property Voice.BreathingSign \override #'text = #"scripts-upbow"
-    es8 d es f g8 \breathe f |
-% Revert to old layout:
-    \property Voice.BreathingSign \override #'molecule-callback = #Breathing_sign::brew_molecule
-    es8 d \breathe es f g f |
-    es2 r4 \bar "||"
+      %% by default, \breathe uses the rcomma, just as if saying:
+      %% \override BreathingSign  #'text =
+                               %       #(make-musicglyph-markup "scripts.rcomma")
+      <<
+       { g4 as g } \\
+       { es4 \breathe bes es }
+      >> |
+
+      %% rvarcomma and lvarcomma are variations of the default rcomma
+      %% and lcomma
+
+      %% N.B.: must use Staff context here, since we start a Voice below
+      \override Staff.BreathingSign  #'text =
+      #(make-musicglyph-markup "scripts.rvarcomma")
+      <<
+       { g4 as g } \\
+       { es4 \breathe bes es }
+      >> |
+
+      %% wedge
+      \override BreathingSign  #'text =
+      #(make-musicglyph-markup "scripts.upbow")
+      es8 d es f g8 \breathe f |
+
+      %% caesurae
+      \override BreathingSign  #'text =
+      #(make-musicglyph-markup "scripts.caesura.curved.curved")
+      es8[ d] \breathe
+      \override BreathingSign  #'text =
+      #(make-musicglyph-markup "scripts.caesura.curved.straight")
+                       es[ f] \breathe g[ f] |
+      es2 r4 \bar "||" \break
+    }
   }
 }