--- /dev/null
+\version "2.19.26"
+
+\header {
+ texidoc = "@code{OneStaff} contexts can be used for letting several
+contexts use the same vertical position. This example shows chords being
+placed in a staff and immediately following it."
+}
+
+\layout {
+ ragged-right = ##t
+}
+
+\new OneStaff
+{
+ << % First element in <<>> so that it is not kept alive spuriously
+ \new Staff
+ {
+ c'4 d' e' f'
+ \chords \with { \override ChordName.Y-offset = -1 }
+ { d1:m7 b1:min7.5- }
+ }
+ >>
+ \chords \with { \override ChordName.Y-offset = -1 }
+ { d1:m7 b1:min7.5- }
+}
\accepts "FiguredBass"
\accepts "GrandStaff"
\accepts "Lyrics"
+ \accepts "OneStaff"
\accepts "PianoStaff"
\accepts "RhythmicStaff"
\accepts "Staff"
\accepts "FretBoards"
\accepts "GrandStaff"
\accepts "Lyrics"
+ \accepts "OneStaff"
\accepts "PianoStaff"
\accepts "RhythmicStaff"
\accepts "Staff"
a collection of staves, with a bracket in front and spanning bar lines."
}
+\context {
+ \type "Engraver_group"
+ \name "OneStaff"
+ \accepts "ChordNames"
+ \accepts "DrumStaff"
+ \accepts "Dynamics"
+ \accepts "FiguredBass"
+ \accepts "FretBoards"
+ \accepts "GregorianTranscriptionStaff"
+ \accepts "KievanStaff"
+ \accepts "Lyrics"
+ \accepts "MensuralStaff"
+ \accepts "NoteNames"
+ \accepts "PetrucciStaff"
+ \accepts "RhythmicStaff"
+ \accepts "Staff"
+ \accepts "TabStaff"
+ \accepts "VaticanaStaff"
+ \defaultchild "Staff"
+ \consists "Axis_group_engraver"
+
+ \description "Provides a common axis for the contained staves,
+making all of them appear in the same vertical space. This can be
+useful for typesetting staves of different types in immediate succession
+or for temporarily changing the character of one staff or overlaying
+it with a different one. Often used with @code{\\stopStaff} and
+@code{\\startStaff} for best results."
+}
+
\context {
\type "Engraver_group"
\name "Dynamics"
\accepts "Lyrics"
\accepts "MensuralStaff"
\accepts "NoteNames"
+ \accepts "OneStaff"
\accepts "PetrucciStaff"
\accepts "PianoStaff"
\accepts "RhythmicStaff"
\accepts MensuralStaff
\accepts NoteNames
\accepts NullVoice
+ \accepts OneStaff
\accepts PetrucciStaff
\accepts PianoStaff
\accepts RhythmicStaff
\accepts DrumStaff
\accepts GrandStaff
\accepts Lyrics
+ \accepts OneStaff
\accepts PianoStaff
\accepts RhythmicStaff
\accepts Staff
\accepts FretBoards
\accepts GrandStaff
\accepts Lyrics
+ \accepts OneStaff
\accepts PianoStaff
\accepts RhythmicStaff
\accepts Staff
\defaultchild Staff
}
+\context {
+ \type "Performer_group"
+ \name "OneStaff"
+ \accepts "ChordNames"
+ \accepts "DrumStaff"
+ \accepts "Dynamics"
+ \accepts "FiguredBass"
+ \accepts "FretBoards"
+ \accepts "GregorianTranscriptionStaff"
+ \accepts "KievanStaff"
+ \accepts "Lyrics"
+ \accepts "MensuralStaff"
+ \accepts "NoteNames"
+ \accepts "PetrucciStaff"
+ \accepts "RhythmicStaff"
+ \accepts "Staff"
+ \accepts "TabStaff"
+ \accepts "VaticanaStaff"
+ \defaultchild "Staff"
+}
+
\context {
\Staff
\name RhythmicStaff