|
From: | Mats Bengtsson |
Subject: | Re: Manual Staff switches don't appear to work |
Date: | Fri, 08 Dec 2006 15:02:36 +0100 |
User-agent: | Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.8) Gecko/20060926 Debian/1.7.8-1sarge7.3.1 |
This is a bug in the documentation. What happens is that the command \new puts more emphasis on the meaning of the word "new" than the fact that you have specified an explicit name of the context. So, the second \new Staff = down will not result in the already defined Staff context with the name "down". However, if you say \context Staff = down { \new Voice {g a b c \change Staff = up d e fis g } } it should work. See "Creating contexts" in the manual for more details. /Mats Sandy Scott wrote:
Not quite sure what the ettiquite for posting a bug that is quite probably my incompetence, but I'll just straight to it:This is the code from the Manual Staff Switches Page, with a few very small changes (added the version comment and also put some notes in the voice) to make it produce some output:******************************************* \version "2.10.0" << \new Staff = "up" { \skip 1 * 10 % keep staff alive } \new Staff = "down" { \skip 1 * 10 % idem } (insert two "greater-than" signs here*) \new Staff = down \new Voice {g a b c \change Staff = up d e fis g } *******************************************However, contrary to my expectations, this produces 3 staves, not 2 - the top two are blank and the third contains the notes, but obviously without any staff changes.Is this a bug, a problem with the Docs, or just me being stupid? Sandy Scott *PS. Is there a tidier way of getting round the top-posting filter? _______________________________________________ bug-lilypond mailing list address@hidden http://lists.gnu.org/mailman/listinfo/bug-lilypond
-- ============================================= 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 =============================================
[Prev in Thread] | Current Thread | [Next in Thread] |