1\version "2.16.0"
2
3\header {
4  texidoc =
5
6      " Hara-kiri staves are suppressed if they are empty.  This
7example really contains three tab staves, but as it progresses, empty ones
8are removed: this example has three staves, but some of them
9disappear: note how the 2nd line only has the bar number 2. (That the
10bar number is printed might be considered a bug, however, the scenario
11of all staves disappearing does not happen in practice.)"
12
13}
14
15\layout {
16  ragged-right= ##t
17  \context {
18    \TabStaff
19    \RemoveEmptyStaves
20  }
21}
22
23
24\new GrandStaff <<
25  \new TabStaff {
26    c4 c c c \break
27    s1 \break
28    c4 c c c \break
29    c c c c
30  }
31  \new TabStaff {
32    d4 d d d
33    s1
34    s1
35    s1
36  }
37  \new TabStaff {
38    e4 e e e
39    s1
40    e4 e e e
41    s1
42  }
43>>
44
45