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
=============================================
_______________________________________________
bug-lilypond mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/bug-lilypond