[icon]

GNU LilyPond

-- --

What is LilyPond
Home
Examples
Templates
Download
GNU/Linux binaries
Windows binaries
Source code
Documentation
Tutorial
Manual
Glossary
Index

Support
Mailing lists
Search
WikiWiki

External sites
lilypond.org/stable
lilypond.org/development
savannah.gnu.org
ftp.lilypond.org
Mutopia
Other music online

Automatic staff changes

Voices can switch automatically between the top and the bottom staff. The syntax for this is

             \autochange Staff \context Voice { ...music... }
     
The autochanger switches on basis of pitch (central C is the turning point), and it looks ahead skipping over rests to switch rests in advance. Here is a practical example:
     \score { \notes \context PianoStaff <
       \context Staff = "up" {
         \autochange Staff \context Voice = VA < \relative c' {
            g4 a  b c d r4 a g } > }
       \context Staff = "down" {
            \clef bass
            s1*2
     } > }
     
[picture of music]
Spacer rests are used to prevent the bottom staff from terminating too soon.
Go back to index of LilyPond.

Please send GNU LilyPond questions and comments to lilypond-user@gnu.org.

Please send comments on these web pages to (address unknown)

Copyright (c) 1997--2002 Han-Wen Nienhuys and Jan Nieuwenhuizen.

Verbatim copying and distribution of this entire article is permitted in any medium, provided this notice is preserved.


This page was built from LilyPond-1.7.14 (development-branch) by

Buchan Milne <(address unknown)>, Thu Mar 6 21:11:35 2003 CET.