lilypond-user
[Top][All Lists]
Advanced

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

Re: Staff Changes


From: Mats Bengtsson
Subject: Re: Staff Changes
Date: Mon, 11 Oct 2004 10:18:53 +0200
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913

I don't understand what you tried, the following example is
equivalent to your example and uses variables.

rh= \context Staff = RH \notes {
                g \change Staff=LH f
            }

\score {
    \notes \transpose c c' {
        \context PianoStaff = PS <<
            \context Staff = RH {}
            \context Staff = LH {}
            \rh
        >>
    }
}



Yuval Harel wrote:
Hello,

I've been trying to move a voice across staffs. I looked at the documentation at: http://lilypond.org/doc/v2.2/Documentation/user/out-www/lilypond/Manual-staff-switches.html#Manual%20staff%20switches
but couldn't get that to work.
Even before getting to the staff change itself, I couldn't get the staffs defined before they are used, unless
they're in the same \score block.

What I did manage to get to work is this:

\score {
    \notes \transpose c c' {
        \context PianoStaff = PS <<
            \context Staff = RH {}
            \context Staff = LH {}
            \context Staff = RH {
                g \change Staff=LH f
            }
        >>
    }
}


But then I can't put the music inside variables before the score, because it uses \change.
How do I make this work? Is there any example of this?

Thanks,
    Yuval



_______________________________________________
lilypond-user mailing list
address@hidden
http://lists.gnu.org/mailman/listinfo/lilypond-use
r

--
=============================================
        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]