]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/regression/ambitus.ly
* scripts/convert-ly.py (conv): remove \notes.
[lilypond.git] / input / regression / ambitus.ly
index 1fd50ff06f33759436a2c97eb5d6b5f9a67c64d7..f0f56d73c8b35afab6356c89ccdb729eef408938 100644 (file)
@@ -1,10 +1,60 @@
+
 \header {
-    texidoc = "Ambituses indicate pitch ranges for voices."
+    texidoc = "Ambituses indicate pitch ranges for voices.
+
+By default, the ambitus grob is put before the clef.  You can control
+this behaviour through the @code{breakAlignOrder} property of the score
+context by redefining the order.
+
+
+The shape of the note heads to use can be changed via the
+@code{note-head-style} property, which holds the glyph name of the
+note head.  The vertical line between the upper and lower head can be
+switched on or off via the @code{join-heads} property.
+
+"
 }
 
-\version "1.7.16"
+%{
+
+ tex chokes on #
 
-upper = \notes \relative c {
+, e.g. with the following addition to the
+paper block:
+
+@example
+\context @{
+  \Score
+\override BreakAlignment #'break-align-orders = #(make-vector 3 '(
+    instrument-name
+    left-edge
+    span-bar
+    breathing-sign
+    clef
+    ambitus
+    key-signature
+    staff-bar
+    time-signature
+    custos
+  ))
+@}
+@end example
+
+@example
+\context @{
+  \Voice
+  \consists Ambitus_engraver
+  Ambitus \set #'note-head-style = #'noteheads-2mensural
+  Ambitus \set #'join-heads = ##f
+@}
+@end example
+
+
+ %}
+\version "2.3.4"
+
+upper =  \relative c {
        \clef "treble"
        \key c \minor
        as'' c e bes f cis d e f g f e d f d e
@@ -12,7 +62,7 @@ upper = \notes \relative c {
        f d e e d f d e e d f d e e d f d e
 }
 
-lower = \notes \relative c {
+lower =  \relative c {
        \clef "treble"
        \key e \major
        e'2 b4 g a c es fis a cis b a g f e d
@@ -21,14 +71,14 @@ lower = \notes \relative c {
 }
 
 \score { \context ChoirStaff {
-       <
-               \context Staff = one { \upper }
-               \context Staff = three { \lower }
-       > }
+       <<
+               \new Staff { \upper }
+               \new Staff { \lower }
+       >> }
        \paper {
-              \translator {
-                       \ScoreContext
-                       breakAlignOrder = #'(
+              \context {
+                       \Score
+\override BreakAlignment #'break-align-orders = #(make-vector 3 '(
                                instrument-name
                                left-edge
                                ambitus
@@ -39,12 +89,12 @@ lower = \notes \relative c {
                                staff-bar
                                time-signature
                                custos
-                       )
+                       ))
                }
-               \translator {
-                       \VoiceContext
+               \context {
+                       \Voice
                        \consists Ambitus_engraver
                }
        }
 }
-%% new-chords-done %%
+