bug-lilypond
[Top][All Lists]
Advanced

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

Re: Staff switch line (documentation?) bug


From: Mats Bengtsson
Subject: Re: Staff switch line (documentation?) bug
Date: Thu, 10 Feb 2005 10:16:14 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.5) Gecko/20041217

You can check the definition of the \showStaffSwitch macro
yourself if you look in the file
/usr/share/lilypond/2.4.2/ly/property-init.ly
(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.

   /Mats

Yuval Harel wrote:
Hi,

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
        c'1
    }




Thanks,
    Yuval





_______________________________________________
bug-lilypond mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-lilypon
d

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




reply via email to

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