Thanks Neil, that did the trick. Now I got another problem however. I am using this snippet to create rhythmic slashes: http://lsr.dsi.unimi.it/LSR/Item?id=332
And since the slashes are Rests they get removed as well. Is there a simple trick to keep specific measures with rests alive? Currently as a workaround I reduced the duration of the slash by half, followed by a hidden note. But I'd prefer something more elegant. Regards, Tao -- View this message in context: http://old.nabble.com/Remove-empty-staves-from-PianoStaff-tp30267705p30278109.html Sent from the Gnu - Lilypond - User mailing list archive at Nabble.com. _______________________________________________ lilypond-user mailing list lilypond-user@gnu.org http://lists.gnu.org/mailman/listinfo/lilypond-user