]> git.donarmstrong.com Git - lilypond.git/blobdiff - input/test/ambitus-mixed.ly
Add scons cruft.
[lilypond.git] / input / test / ambitus-mixed.ly
index 9c2439fc0ffc709416a5e38700fc80e803baa127..c30b8cb4f663195a4c8c8431172dab11c345ff1a 100644 (file)
@@ -1,60 +1,29 @@
 
 \header {
-texidoc = "Ambituses can be switched off or translated by using
-applyoutput.
 
-If you want to mix per-voice and per-staff ambituses, then you have to
-define you have to declare a new context type derived from the
-@code{Voice} context or @code{Staff} context.  The derived context
-must consist of the @code{Ambitus_engraver} and it must be accepted by
-a proper parent context, in the below example the @code{Staff} context
-or @code{Score} context, respectively.  The original context and the
-derived context can then be used in parallel in the same score. (this is not demonstrated in this file).
-"
-}
-
-\version "2.1.26"
-
-#(define (kill-ambitus grob grob-context apply-context)
-  (if (memq 'ambitus-interface (ly:grob-property grob 'interfaces))
-   (ly:grob-suicide grob)
-  ))
-
-#(define ((shift-ambitus x) grob grob-context apply-context)
-  (if (memq 'ambitus-interface (ly:grob-property grob 'interfaces))
-   (ly:grob-translate-axis! grob x X)
-  ))
+    texidoc = "Ambits can be added per voice. In that case, the
+ambitus must be moved manually to prevent collisions."
 
+}
 
+\version "2.10.0"
 
-voiceA = \notes \relative c'' {
-  c4 a d e f2
-}
-voiceB = \notes \relative c' {
-  es4 f g as b2 
+\layout {
+    ragged-right = ##t
 }
-\score {
-  \context ChoirStaff <<
-    \new Staff <<
-       {
-          \applyoutput  #(shift-ambitus 1.0)
-           \voiceA
-          } \\
-       {
-          \voiceB
-       }
-    >>
-    \new Staff <<
-       {  \applyoutput #kill-ambitus \voiceA } \\
-       {  \applyoutput #kill-ambitus \voiceB }
-    >>
-  >>
-  \paper {
-    raggedright = ##t
 
-    \translator {
-       \VoiceContext
-      \consists Ambitus_engraver
+\new Staff <<
+    \new Voice \with {
+       \consists "Ambitus_engraver"
+    } \relative c'' {
+       \override Ambitus #'X-offset = #-1.0
+       \voiceOne
+       c4 a d e f2
     }
+    \new Voice \with {
+       \consists "Ambitus_engraver"
+    } \relative c' {
+       \voiceTwo
+       es4 f g as b2
     }
-}
+>>