bug-lilypond
[Top][All Lists]
Advanced

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

Re: PianoStaff names


From: Erik Sandberg
Subject: Re: PianoStaff names
Date: Fri, 21 Oct 2005 19:55:36 +0200
User-agent: KMail/1.8.3

On Friday 21 October 2005 16.37, Edward Neeman wrote:
> Hi all,
> When PianoStaves are hidden in a system, the
> Instrument names seem to behave in weird ways.  In the
> following example the PianoStaff.instrument titles are
> superimposed on each other, and the PianoStaff.instr
> titles both appear even where there is only one
> PianoStaff visible.  I've tried it in 2.6.3 and
> 2.7.12. Haven't figured out a workaround.

Thanks, added to bug CVS as hara-kiri-pianostaff-instr.ly.

A workaround is to
- set PianoStaff.instrument to "" for affected staves.
- set PianoStaff.instr to "" temporarily whenever the problem occurs, like

%%%%%%%%%%%%%%%
\set PianoStaff.instr="d"
R1\break
\set PianoStaff.instr=""
 R1 % problematic line
 \break 
\unset PianoStaff.instr
c'1
%%%%%%%%%%%%%%%

%
%Edward Neeman

\version "2.6.3"

\header { texidoc = "@code{PianoStaff.instrument} and
@code{PianoStaff.instr} aren't removed when a piano staff is removed
by a @code{\\RemoveEmptyStaffContext}"

reportedin = "2.6.3"
}


<<
\override Score.RemoveEmptyVerticalGroup
#'remove-first = ##t
\new PianoStaff \new Staff {\set PianoStaff.instrument="up"
\set PianoStaff.instr="u"
c'1\break c'\break c'}
\new PianoStaff \new Staff {\set PianoStaff.instrument="down"
\set PianoStaff.instr="d"

R1\break R1 \break c'1}

>>
\layout { \context { \RemoveEmptyStaffContext } raggedright=##t }

-- 
Erik Sandberg
Maintainer of the Lilypond bug CVS archive,
http://savannah.gnu.org/cgi-bin/viewcvs/lilypond/lily-bugs/bugs/
http://lilypond.org/bugs/v2.6/




reply via email to

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