Re: Remove empty staves from PianoStaff

2010-11-23 Thread Neil Puttock
On 22 November 2010 12:37, TaoCG wrote: > And since the slashes are Rests they get removed as well. > Is there a simple trick to keep specific measures with rests alive? You can create a slash directly, instead of hacking a Rest stencil: slash = #(define-music-function (parser location note) (l

Re: Remove empty staves from PianoStaff

2010-11-22 Thread Carl Sorensen
On 11/22/10 7:22 AM, "Jonas Müthing" wrote: > Hej, > > by using the following in your Staff, you can define which interfaces > decide whether a line is active or not. If you add the rest-interface > to the list, it should keep the lines alive. > > \set Staff.keepAliveInterfaces = #'( >

Re: Remove empty staves from PianoStaff

2010-11-22 Thread Jonas Müthing
f 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

Re: Remove empty staves from PianoStaff

2010-11-22 Thread TaoCG
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 -

Re: Remove empty staves from PianoStaff

2010-11-20 Thread Neil Puttock
On 20 November 2010 19:55, Tao Cumplido wrote: > I hope someone knows a solution. I guess you have the situation where one stave in the PianoStaff has notes, but the other has full-bar rests (for a full system). There's a recent bugfix which added an engraver to keep both staves alive in this c

Remove empty staves from PianoStaff

2010-11-20 Thread Tao Cumplido
Hi all, I am using 2.13.39 on Windows 7. I have a PianoStaff but I want only occasionally display both staves. I tried \Staff \RemoveEmptyStaves but this doesn't remove empty staves from PianoStaff and when I put \PianoStaff \RemoveEmptyStaves LilyPond crashes when compiling. I am pretty