Guide, node Updating translation committishes..
@end ignore
-@c \version "2.14.0"
+@c \version "2.19.25"
@node Keyboard and other multi-staff instruments
@section Keyboard and other multi-staff instruments
@c @snippets
@c @lilypondfile[verbatim,quote,texidoc,doctitle]
@c {forcing-visibility-of-systems-with-multi-bar-rests-when-using-\RemoveEmptyStaffContext.ly}
-@c http://lsr.dsi.unimi.it/LSR/Item?u=1&id=312
+@c http://lsr.di.unimi.it/LSR/Item?u=1&id=312
@seealso
Learning Manual:
\new Staff = "up" {
\voiceOne
% Make space for fingering in the cross-staff voice
- \once\override DynamicLineSpanner #'staff-padding = #3.4
- e''2\p\< d''\> s1*0\!
+ \once\override DynamicLineSpanner.staff-padding = #4
+ e''2\p\< d''\>
+ c''1\!
}
\new Staff = "down" <<
{
\clef bass
s4. e,8\rest g,2\rest
+ c1
} \\ {
c8\( g c'
\change Staff = "up"
e' g' b'-3 a' g'\)
+ f'1
}
>>
>>
}
@end lilypond
+@noindent
+It is possible to specify other pitches for the turning point.
+If the staves are not instantiated explicitly, other clefs may be used.
+
+@lilypond[quote,verbatim]
+music = {
+ g8 b a c' b8 d' c'8 e'
+ d'8 r f' g' a'2
+}
+
+\autochange d' \music
+\autochange b \with { \clef soprano } \music
+\autochange d' \with { \clef alto } \with { \clef tenor } \music
+@end lilypond
+
@cindex relative music and autochange
@cindex autochange and relative music
\new Staff = "up" {
\new Voice = "melOne" {
\key g \major
- \autochange \relative c' {
+ \autochange \relative {
g8 b a c b d c e
d8 r fis, g a2
}
Whenever a voice switches to another staff, a line connecting the
notes can be printed automatically:
-@lilypond[quote,verbatim,relative=1]
+@lilypond[quote,verbatim]
\new PianoStaff <<
\new Staff = "one" {
\showStaffSwitch
- c1
+ c'1
\change Staff = "two"
b2 a
}
@cindex cross staff chords
@funindex Stem
-@funindex cross-staff
-@funindex length
-@funindex flag-style
+@funindex \crossStaff
+@funindex \autoBeamOff
+@funindex Span_stem_engraver
-Chords that cross staves may be produced:
+Chords that cross staves may be produced using the
+@code{Span_stem_engraver}. Care must be taken to ensure that
+automatic beams do not beam the notes on one staff when it’s not
+required on the other.
-@lilypond[verbatim,quote]
-\new PianoStaff <<
- \new Staff {
- \relative c' {
- f8 e4 d8 d f e4
- }
- }
- \new Staff {
- \relative c' {
- << {
- \clef bass
- % stems may overlap the other staff
- \override Stem #'cross-staff = ##t
- % extend the stems to reach the other staff
- \override Stem #'length = #12
- % do not print extra flags
- \override Flag #'style = #'no-flag
- % prevent beaming as needed
- a8 g4 f8 f bes\noBeam g4
- }
- \\
- {
- f,2 bes4 c
- } >>
- }
- }
->>
-@end lilypond
+@lilypondfile[verbatim,quote]
+{cross-staff-stems.ly}
+
+For the time being, this engraver can not be specified by its name in
+double quotes, but rather prefixing its name with a hash symbol
+@code{#}, due to the way it is implemented.
@snippets
@lilypondfile[verbatim,quote,texidoc,doctitle]
(@notation{sos.}), and @notation{una corda} (@notation{U.C.}).
Sustain pedals are also found on vibraphones and celestas.
-@lilypond[quote,verbatim,relative=2]
-c4\sustainOn d e g
-<c, f a>1\sustainOff
-c4\sostenutoOn e g c,
-<bes d f>1\sostenutoOff
-c4\unaCorda d e g
-<d fis a>1\treCorde
+@lilypond[quote,verbatim]
+\relative {
+ c''4\sustainOn d e g
+ <c, f a>1\sustainOff
+ c4\sostenutoOn e g c,
+ <bes d f>1\sostenutoOff
+ c4\unaCorda d e g
+ <d fis a>1\treCorde
+}
@end lilypond
@cindex pedal indication styles
The sustain pedal and the una corda pedal use the text style by default
while the sostenuto pedal uses mixed by default.
-@lilypond[quote,verbatim,relative=2]
-c4\sustainOn g c2\sustainOff
-\set Staff.pedalSustainStyle = #'mixed
-c4\sustainOn g c d
-d\sustainOff\sustainOn g, c2\sustainOff
-\set Staff.pedalSustainStyle = #'bracket
-c4\sustainOn g c d
-d\sustainOff\sustainOn g, c2
-\bar "|."
+@lilypond[quote,verbatim]
+\relative {
+ c''4\sustainOn g c2\sustainOff
+ \set Staff.pedalSustainStyle = #'mixed
+ c4\sustainOn g c d
+ d\sustainOff\sustainOn g, c2\sustainOff
+ \set Staff.pedalSustainStyle = #'bracket
+ c4\sustainOn g c d
+ d\sustainOff\sustainOn g, c2
+ \bar "|."
+}
@end lilypond
The placement of the pedal commands matches the physical movement of the
@snippets
@lilypondfile[verbatim,quote,texidoc,doctitle]
-{accordion-discant-symbols.ly}
+{accordion-register-symbols.ly}
@seealso
Snippets:
pedals are D, C, and B on the left and E, F, G, and A on the right.
The position of the pedals may be indicated with text marks:
-@lilypond[quote,verbatim,relative=2]
+@lilypond[quote,verbatim,fragment]
\textLengthOn
-cis1_\markup \concat \vcenter {
+cis''1_\markup \concat \vcenter {
[D \flat C \sharp B|E \sharp F \sharp G A \flat] }
-c!1_\markup \concat \vcenter {
+c''!1_\markup \concat \vcenter {
[ C \natural ] }
@end lilypond
or pedal diagrams:
-@lilypond[quote,verbatim,relative=2]
+@lilypond[quote,verbatim,fragment]
\textLengthOn
-cis1_\markup { \harp-pedal #"^v-|vv-^" }
-c!1_\markup { \harp-pedal #"^o--|vv-^" }
+cis''1_\markup { \harp-pedal #"^v-|vv-^" }
+c''!1_\markup { \harp-pedal #"^o--|vv-^" }
@end lilypond
The @code{\harp-pedal} command accepts a string of characters, where