[icon]

GNU LilyPond

-- --

What is LilyPond
Home
Examples
Templates
Download
GNU/Linux binaries
Windows binaries
Source code
Documentation
Tutorial
Manual
Glossary
Index

Support
Mailing lists
Search
WikiWiki

External sites
lilypond.org/stable
lilypond.org/development
savannah.gnu.org
ftp.lilypond.org
Mutopia
Other music online

Hara kiri staves

In orchestral scores, staff lines that only have rests are usually removed. This saves some space. LilyPond also supports this through the hara kiri1 staff. This staff commits suicide when it finds itself to be empty after the line-breaking process. It will not disappear when it contains normal rests, you must use multi measure rests.

The hara kiri staff is specialized version of the Staff

context. It is available as the context identifier \HaraKiriStaffContext. Observe how the second staff in this example disappears in the second line.

     \score  {
       \notes \relative c' <
         \context Staff = SA { e4 f g a \break c1 }
         \context Staff = SB { c4 d e f \break R1 }
       >
       \paper {
         linewidth = 6.\cm
         \translator { \HaraKiriStaffContext }
       }
     }
     
[picture of music]

Footnotes

  1. Hara kiri, also called Seppuku, is the ritual suicide of the Japanese Samourai warriors.


Go back to index of LilyPond.

Please send GNU LilyPond questions and comments to lilypond-user@gnu.org.

Please send comments on these web pages to (address unknown)

Copyright (c) 1997--2002 Han-Wen Nienhuys and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from LilyPond-1.7.14 (development-branch) by

Buchan Milne <(address unknown)>, Thu Mar 6 21:11:35 2003 CET.