bug-lilypond
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Issue 1760 in lilypond: \RemoveEmptyStaves only works inside a \layo


From: Reinhold Kainhofer
Subject: Re: Issue 1760 in lilypond: \RemoveEmptyStaves only works inside a \layout block
Date: Wed, 13 Jul 2011 18:57:55 +0200
User-agent: KMail/1.13.6 (Linux/2.6.38-10-generic; KDE/4.6.4; i686; ; )

Am Mittwoch, 13. Juli 2011, 10:56:23 schrieb David Kastrup:
> address@hidden writes:
> > \RemoveEmptyStaves is defined inside engraver-init.ly, which renders
> > it inaccessible as an identifier outside a \layout block.
> > 
> > The following snippet causes the parser to emit two errors, and the
> > second bar isn't removed:
> > 
> > \version "2.15.5"
> > 
> > \new Staff \RemoveEmptyStaves {
> > 
> >   c'1 \break
> >   r1
> > 
> > }
> 
> Wouldn't that need to be
> \new Staff \with { \RemoveEmptyStaves } { ...

All the following three work:

mysettings = \with {...}
\new Staff \with { \mysettings } {...}
\new Staff \with \mysettings {...}
\new Staff \mysettings {...}

Cheers,
Reinhold
-- 
------------------------------------------------------------------
Reinhold Kainhofer, address@hidden, http://reinhold.kainhofer.com/
 * Financial & Actuarial Math., Vienna Univ. of Technology, Austria
 * http://www.fam.tuwien.ac.at/, DVR: 0005886
 * LilyPond, Music typesetting, http://www.lilypond.org



reply via email to

[Prev in Thread] Current Thread [Next in Thread]