%% Generated by lilypond-book.py
%% Options: [alt=[image of music],printfilename,indent=0\mm,texidoc,line-width=160\mm]
\include "lilypond-book-preamble.ly"







% ****************************************************************
% Start cut-&-pastable-section 
% ****************************************************************

\paper {
  #(define dump-extents #t)
  
  indent = 0\mm
  line-width = 160\mm
}

\layout {
  
}



% ****************************************************************
% ly snippet:
% ****************************************************************
\sourcefilename "instrument-name-hara-kiri.ly"

\header {

  texidoc = "@code{PianoStaff.instrument} and
@code{PianoStaff.instr} are removed when the staves are killed off.

In this example, the 2nd staff (marked by the barnumber 2) disappears
as does the instrument name.  "

}


        
  \new PianoStaff <<
    \new Staff {
      \override Staff.VerticalAxisGroup #'remove-empty = ##t  
      \set PianoStaff.instrument="up" 
      \set PianoStaff.instr="u"
      c'1\break R
    }
  >>



% ****************************************************************
% end ly snippet
% ****************************************************************
