On Mon, Jan 07, 2013 at 10:43:51PM -0800, H. S. Teoh wrote:
> On Mon, Jan 07, 2013 at 10:28:58PM -0800, H. S. Teoh wrote:
> > On Mon, Jan 07, 2013 at 02:26:39PM -0500, D. Michael McIntyre wrote:
> [...]
> > > I knocked together a new option and set it up so inserting this
> > > snippet in the layout block is the new default behavior. You don't
> > > have to do anything to turn it on, but if you really want to print all
> > > the empty staves, you can suppress the new behavior by turning a
> > > checkbox on.
> > >
> > > I banged this out in a hurry and did only extremely minimal testing.
> > > There could be lots of problems, and it would be extremely helpful if
> > > you could put it through its paces and reassure me that it's
> > > reasonably robust and predictable.
> >
> > I'll get back to you once I try it out. Thanks!
> [...]
>
> OK, rosegarden compiled faster than I expected, so I gave it a run. I
> think there's a slight mistake, it should be:
>
> \context { \Staff \RemoveEmptyStave }
>
> But right now it generates:
>
> \context { \GrandStaff \RemoveEmptyStave }
>
> which doesn't have the expected effect.
[...]
OK, here's a diff to fix this (see attached).
T
--
Public parking: euphemism for paid parking. -- Flora
Index: src/document/io/LilyPondExporter.cpp
===================================================================
--- src/document/io/LilyPondExporter.cpp (revision 13170)
+++ src/document/io/LilyPondExporter.cpp (working copy)
@@ -1801,7 +1801,7 @@
// write \layout block
str << indent(col++) << "\\layout {" << std::endl;
if (!m_exportEmptyStaves) {
- str << indent(col) << "\\context { \\GrandStaff \\RemoveEmptyStaves }"
<< std::endl;
+ str << indent(col) << "\\context { \\Staff \\RemoveEmptyStaves }" <<
std::endl;
}
if (m_chordNamesMode) {
str << indent(col) << "\\context { \\GrandStaff \\accepts
\"ChordNames\" }" << std::endl;
------------------------------------------------------------------------------
Master SQL Server Development, Administration, T-SQL, SSAS, SSIS, SSRS
and more. Get SQL Server skills now (including 2012) with LearnDevNow -
200+ hours of step-by-step video tutorials by Microsoft MVPs and experts.
SALE $99.99 this month only - learn more at:
http://p.sf.net/sfu/learnmore_122512
_______________________________________________
Rosegarden-user mailing list
[email protected] - use the link below to unsubscribe
https://lists.sourceforge.net/lists/listinfo/rosegarden-user