[Top][All Lists]

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

Re: Staff switch line (documentation?) bug

From: Graham Percival
Subject: Re: Staff switch line (documentation?) bug
Date: Tue, 15 Feb 2005 00:36:01 -0800

Sorry, I don't understand.  Yuval's example looks like a bug to
me -- at least, I can't imagine why you'd ever want that extra line
to appear in a piece, so it doesn't make sense for
PianoStaff.followVoice=##t  to have that effect.

Despite that, is there something I should change in the docs?

- Graham

On 10-Feb-05, at 1:16 AM, Mats Bengtsson wrote:

You can check the definition of the \showStaffSwitch macro
yourself if you look in the file
(or wherever LilyPond is installed on your machine).

It seems that the manual is wrong and that the property should only
be set in the current Voice context.


Yuval Harel wrote:
I noticed that in some situations \showStaffSwitch works where {\set PianoStaff.followVoice = ##t} produces seemingly-buggy results. Are they expected to produce the same behavior? The documentation (http://lilypond.org/doc/v2.5/Documentation/user/out-www/lilypond/ Staff-switch-lines.html) appears to hint they are the same (though this is not written explicitly) and shows an example using {\set PianoStaff.followVoice = ##t}, which as far as I can see, is not usable. The following example demonstrates the issue: in addition to the expected staff-switch line, a redundant one is produced is the right hand staff, although that voice does not cross staves. Using \showStaffSwitch instead of {\set PianoStaff.followVoice = ##t} produces the expected behavior.
\version "2.4.2"
\new PianoStaff <<
    \context Staff=RH { c'1 | \voiceOne c'1 }
    \context Staff=LH {
        \clef bass
        c1 |
        \set PianoStaff.followVoice = ##t
        \change Staff=RH \voiceTwo

bug-lilypond mailing list

        Mats Bengtsson
        Signal Processing
        Signals, Sensors and Systems
        Royal Institute of Technology
        SE-100 44  STOCKHOLM
        Phone: (+46) 8 790 8463                         
        Fax:   (+46) 8 790 7260
        Email: address@hidden
        WWW: http://www.s3.kth.se/~mabe

bug-lilypond mailing list

reply via email to

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