1 @c -*- coding: utf-8; mode: texinfo; -*-
3 Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
5 When revising a translation, copy the HEAD committish of the
6 version that you are working on. See TRANSLATION for details.
11 @node Keyboard and other multi-staff instruments
12 @section Keyboard and other multi-staff instruments
14 @lilypondfile[quote]{keyboard-headword.ly}
16 This section discusses several aspects of music notation that are
17 unique to keyboard instruments and other instruments notated on
18 many staves, such as harps and vibraphones. For the purposes of
19 this section this entire group of multi-staff instruments is called
20 @qq{keyboards} for short, even though some of them do not have a
24 * Common notation for keyboards::
30 @node Common notation for keyboards
31 @subsection Common notation for keyboards
33 This section discusses notation issues that may arise for most
34 many-stringed instruments.
37 * References for keyboards::
38 * Changing staff manually::
39 * Changing staff automatically::
40 * Staff-change lines::
44 @node References for keyboards
45 @unnumberedsubsubsec References for keyboards
49 @cindex staves, keyboard instruments
50 @cindex staves, keyed instruments
51 @cindex keyboard instrument staves
52 @cindex keyed instrument staves
56 Keyboard instruments are usually notated with Piano staves. These
57 are two or more normal staves coupled with a brace. The same
58 notation is also used for other keyed instruments.
59 Organ music is normally written with two staves inside a
60 @code{PianoStaff} group and third, normal staff for the pedals.
62 The staves in keyboard music are largely independent, but
63 sometimes voices can cross between the two staves. This
64 section discusses notation techniques particular to keyboard
67 Several common issues in keyboard music are covered elsewhere:
71 @item Keyboard music usually contains multiple voices and the
72 number of voices may change regularly; this is described in
73 @ref{Collision resolution}.
75 @item Keyboard music can be written in parallel, as described in
76 @ref{Writing music in parallel}.
78 @item Fingerings are indicated with @ref{Fingering instructions}.
80 @item Organ pedal indications are inserted as articulations, see
81 @ref{List of articulations}.
83 @item Vertical grid lines can be shown with @ref{Grid lines}.
85 @item Keyboard music often contains @notation{Laissez vibrer} ties
86 as well as ties on arpeggios and tremolos, described in
89 @item Placing arpeggios across multiple voices and staves is
90 covered in @ref{Arpeggio}.
92 @item Tremolo marks are described in @ref{Tremolo repeats}.
94 @item Several of the tweaks that can occur in keyboard music are
95 demonstrated in @rlearning{Real music example}.
97 @item Hidden notes can be used to produce ties that cross voices,
98 as shown in @rlearning{Other uses for tweaks}.
105 @rlearning{Real music example},
106 @rlearning{Other uses for tweaks}.
109 @ref{Grouping staves},
110 @ref{Instrument names},
111 @ref{Collision resolution},
112 @ref{Writing music in parallel},
113 @ref{Fingering instructions},
114 @ref{List of articulations},
118 @ref{Tremolo repeats}.
121 @rinternals{PianoStaff}.
128 @cindex keyboard music, centering dynamics
129 @cindex dynamics, centered in keyboard music
130 @cindex piano music, centering dynamics
131 @cindex centered dynamics in piano music
132 @funindex staff-padding
134 Dynamics are not automatically centered, but workarounds do exist. One
135 option is the @q{piano centered dynamics} template under
136 @rlearning{Piano templates}; another option is to increase the
137 @code{staff-padding} of dynamics as discussed in @rlearning{Moving
140 @node Changing staff manually
141 @unnumberedsubsubsec Changing staff manually
143 @cindex changing staff manually
144 @cindex manual staff changes
145 @cindex staff changes, manual
146 @cindex cross-staff notes
147 @cindex notes, cross-staff
148 @cindex cross-staff beams
149 @cindex beams, cross-staff
154 Voices can be switched between staves manually, using the command
157 \change Staff = @var{staffname}
161 The string @var{staffname} is the name of the staff. It switches
162 the current voice from its current staff to the staff called
163 @var{staffname}. Typical values for @var{staffname} are
164 @code{"up"} and @code{"down"}, or @code{"RH"} and @code{"LH"}.
166 Cross-staff notes are beamed automatically:
168 @lilypond[verbatim,quote]
172 \change Staff = "down"
176 \change Staff = "down"
180 \new Staff = "down" {
188 If the beaming needs to be tweaked, make any changes to the stem
189 directions first. The beam positions are then measured from the
190 center of the staff that is closest to the beam. For a simple
191 example of beam tweaking, see @rlearning{Fixing overlapping
197 @rlearning{Fixing overlapping notation}.
201 @ref{Automatic beams}.
208 @rinternals{ContextChange}.
211 @node Changing staff automatically
212 @unnumberedsubsubsec Changing staff automatically
214 @cindex changing staff automatically
215 @cindex automatic staff changes
216 @cindex staff changes, automatic
218 @funindex \autochange
222 Voices can be made to switch automatically between the top and the
223 bottom staff. The syntax for this is
226 \autochange @dots{}@var{music}@dots{}
230 This will create two staves inside the current staff group
231 (usually a @code{PianoStaff}), called @code{"up"} and
232 @code{"down"}. The lower staff will be in the bass clef by default.
233 The autochanger switches on the basis of the pitch (middle@tie{}C is the
234 turning point), and it looks ahead skipping over rests to switch
237 @lilypond[quote,verbatim]
246 @cindex relative music and autochange
247 @cindex autochange and relative music
252 A @code{\relative} section that is outside of @code{\autochange}
253 has no effect on the pitches of the music, so if necessary, put
254 @code{\relative} inside @code{\autochange}.
256 If additional control is needed over the individual staves, they
257 can be created manually with the names @code{"up"} and
258 @code{"down"}. The @code{\autochange} command will then switch
259 its voice between the existing staves. For example, this is
260 necessary to place a key signature in the lower staff:
262 @lilypond[quote,verbatim]
265 \new Voice = "melOne" {
267 \autochange \relative c' {
273 \new Staff = "down" {
283 @ref{Changing staff manually}.
289 @rinternals{AutoChangeMusic}.
293 @cindex chords, splitting across staves with \autochange
295 The staff switches may not end up in optimal places. For high
296 quality output, staff switches should be specified manually.
298 Chords will not be split across the staves; they will be assigned to a
299 staff based on the first note named in the chord construct.
301 @node Staff-change lines
302 @unnumberedsubsubsec Staff-change lines
304 @cindex staff-change line
305 @cindex staff change line
306 @cindex cross-staff line
307 @cindex cross staff line
308 @cindex line, staff-change follower
309 @cindex line, cross-staff
310 @cindex line, staff-change
312 @cindex voice, following
313 @cindex staff switching
316 @funindex followVoice
317 @funindex \showStaffSwitch
318 @funindex showStaffSwitch
319 @funindex \hideStaffSwitch
320 @funindex hideStaffSwitch
322 Whenever a voice switches to another staff, a line connecting the
323 notes can be printed automatically:
325 @lilypond[quote,verbatim,relative=1]
330 \change Staff = "two"
342 @code{\showStaffSwitch}, @code{\hideStaffSwitch}.
350 @rinternals{Note_head_line_engraver},
351 @rinternals{VoiceFollower}.
354 @node Cross-staff stems
355 @unnumberedsubsubsec Cross-staff stems
357 @cindex cross-staff notes
358 @cindex cross staff notes
359 @cindex notes, cross-staff
360 @cindex cross-staff stems
361 @cindex cross staff stems
362 @cindex stems, cross-staff
363 @cindex chords, cross-staff
364 @cindex cross-staff chords
365 @cindex cross staff chords
368 @funindex cross-staff
372 Chords that cross staves may be produced:
374 @lilypond[verbatim,quote]
385 % stems may overlap the other staff
386 \override Stem #'cross-staff = ##t
387 % extend the stems to reach other other staff
388 \override Stem #'length = #12
389 % do not print extra flags
390 \override Stem #'flag-style = #'no-flag
391 % prevent beaming as needed
392 a8 g4 f8 f bes\noBeam g4
404 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
405 {indicating-cross-staff-chords-with-arpeggio-bracket.ly}
418 This section discusses notation issues that relate most directly to the
426 @unnumberedsubsubsec Piano pedals
429 @cindex pedals, piano
430 @cindex sustain pedal
431 @cindex pedal, sustain
432 @cindex sostenuto pedal
433 @cindex pedal, sostenuto
441 @funindex \sustainOff
443 @funindex \sostenutoOn
444 @funindex sostenutoOn
445 @funindex \sostenutoOff
446 @funindex sostenutoOff
452 Pianos generally have three pedals that alter the way sound is
453 produced: @notation{sustain}, @notation{sostenuto}
454 (@notation{sos.}), and @notation{una corda} (@notation{U.C.}).
455 Sustain pedals are also found on vibraphones and celestas.
457 @lilypond[quote,verbatim,relative=2]
460 c4\sostenutoOn e g c,
461 <bes d f>1\sostenutoOff
466 @cindex pedal indication styles
467 @cindex pedal indication, text
468 @cindex pedal indication, bracket
469 @cindex pedal indication, mixed
470 @cindex pedal sustain style
471 @cindex sustain pedal style
473 @funindex pedalSustainStyle
478 There are three styles of pedal indications: text, bracket, and mixed.
479 The sustain pedal and the una corda pedal use the text style by default
480 while the sostenuto pedal uses mixed by default.
482 @lilypond[quote,verbatim,relative=2]
483 c4\sustainOn g c2\sustainOff
484 \set Staff.pedalSustainStyle = #'mixed
486 d\sustainOff\sustainOn g, c2\sustainOff
487 \set Staff.pedalSustainStyle = #'bracket
489 d\sustainOff\sustainOn g, c2
493 The placement of the pedal commands matches the physical movement of the
494 sustain pedal during piano performance. Pedalling to the final bar line
495 is indicated by omitting the final pedal up command.
506 @rinternals{SustainPedal},
507 @rinternals{SustainPedalLineSpanner},
508 @rinternals{SustainEvent},
509 @rinternals{SostenutoPedal},
510 @rinternals{SostenutoPedalLineSpanner},
511 @rinternals{SostenutoEvent},
512 @rinternals{UnaCordaPedal},
513 @rinternals{UnaCordaPedalLineSpanner},
514 @rinternals{UnaCordaEvent},
515 @rinternals{PianoPedalBracket},
516 @rinternals{Piano_pedal_engraver}.
519 @subsection Accordion
523 This section discusses notation that is unique to the accordion.
529 @node Discant symbols
530 @unnumberedsubsubsec Discant symbols
532 @cindex accordion discant symbols
533 @cindex discant symbols, accordion
534 @cindex accordion shifts
535 @cindex accordion shift symbols
537 Accordions are often built with more than one set of reeds that may be
538 in unison with, an octave above, or an octave below the written pitch.
539 Each accordion maker has different names for the @notation{shifts} that
540 select the various reed combinations, such as @notation{oboe},
541 @notation{musette}, or @notation{bandonium}, so a system of symbols has
542 come into use to simplify the performance instructions.
546 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
547 {accordion-discant-symbols.ly}
563 - tremolo (for bisbigliando)
565 - directional arpeggio and non-arpeggio
566 - workaroung for keeping both staves visible in an orchestral
568 http://lists.gnu.org/archive/html/lilypond-user/2007-08/msg00386.html
569 and http://lsr.dsi.unimi.it/LSR/Item?u=1&id=312
571 An LSR snippet could be used to demonstrate the main items; in the
572 case of glissandi, it would be desirable to have a demonstration