]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/keyboards.itely
Docs: NR 2.2 Keyboards: Add harp references
[lilypond.git] / Documentation / user / keyboards.itely
1 @c -*- coding: utf-8; mode: texinfo; -*-
2 @ignore
3     Translation of GIT committish: FILL-IN-HEAD-COMMITTISH
4
5     When revising a translation, copy the HEAD committish of the
6     version that you are working on.  See TRANSLATION for details.
7 @end ignore
8
9 @c \version "2.11.61"
10
11 @node Keyboard and other multi-staff instruments
12 @section Keyboard and other multi-staff instruments
13
14 @lilypondfile[quote]{keyboard-headword.ly}
15
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
21 keyboard.
22
23 @menu
24 * Common notation for keyboards::
25 * Piano::
26 * Accordion::
27 * Harp::
28 @end menu
29
30 @node Common notation for keyboards
31 @subsection Common notation for keyboards
32
33 This section discusses notation issues that may arise for most
34 keyboard instruments.
35
36 @menu
37 * References for keyboards::
38 * Changing staff manually::
39 * Changing staff automatically::
40 * Staff-change lines::
41 * Cross-staff stems::
42 @end menu
43
44 @node References for keyboards
45 @unnumberedsubsubsec References for keyboards
46
47 @cindex piano staves
48 @cindex staves, piano
49 @cindex staves, keyboard instruments
50 @cindex staves, keyed instruments
51 @cindex keyboard instrument staves
52 @cindex keyed instrument staves
53
54 @funindex PianoStaff
55
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.
61
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
65 music.
66
67 Several common issues in keyboard music are covered elsewhere:
68
69 @itemize
70
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}.
74
75 @item Keyboard music can be written in parallel, as described in
76 @ref{Writing music in parallel}.
77
78 @item Fingerings are indicated with @ref{Fingering instructions}.
79
80 @item Organ pedal indications are inserted as articulations, see
81 @ref{List of articulations}.
82
83 @item Vertical grid lines can be shown with @ref{Grid lines}.
84
85 @item Keyboard music often contains @notation{Laissez vibrer} ties
86 as well as ties on arpeggios and tremolos, described in
87 @ref{Ties}.
88
89 @item Placing arpeggios across multiple voices and staves is
90 covered in @ref{Arpeggio}.
91
92 @item Tremolo marks are described in @ref{Tremolo repeats}.
93
94 @item Several of the tweaks that can occur in keyboard music are
95 demonstrated in @rlearning{Real music example}.
96
97 @item Hidden notes can be used to produce ties that cross voices,
98 as shown in @rlearning{Other uses for tweaks}.
99
100 @end itemize
101
102 @c @snippets
103 @c @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
104 @c {forcing-visibility-of-systems-with-multi-bar-rests-when-using-\RemoveEmptyStaffContext.ly}
105 @c http://lsr.dsi.unimi.it/LSR/Item?u=1&id=312
106
107 @seealso
108 Learning Manual:
109 @rlearning{Real music example},
110 @rlearning{Other uses for tweaks}.
111
112 Notation Reference:
113 @ref{Grouping staves},
114 @ref{Instrument names},
115 @ref{Collision resolution},
116 @ref{Writing music in parallel},
117 @ref{Fingering instructions},
118 @ref{List of articulations},
119 @ref{Grid lines},
120 @ref{Ties},
121 @ref{Arpeggio},
122 @ref{Tremolo repeats}.
123
124 Internals Reference:
125 @rinternals{PianoStaff}.
126
127 Snippets:
128 @rlsr{Keyboards}.
129
130
131 @knownissues
132
133 @cindex keyboard music, centering dynamics
134 @cindex dynamics, centered in keyboard music
135 @cindex piano music, centering dynamics
136 @cindex centered dynamics in piano music
137 @funindex staff-padding
138
139 Dynamics are not automatically centered, but workarounds do exist.  One
140 option is the @q{piano centered dynamics} template under
141 @rlearning{Piano templates}; another option is to increase the
142 @code{staff-padding} of dynamics as discussed in @rlearning{Moving
143 objects}.
144
145 @node Changing staff manually
146 @unnumberedsubsubsec Changing staff manually
147
148 @cindex changing staff manually
149 @cindex manual staff changes
150 @cindex staff changes, manual
151 @cindex cross-staff notes
152 @cindex notes, cross-staff
153 @cindex cross-staff beams
154 @cindex beams, cross-staff
155
156 @funindex \change
157 @funindex change
158
159 Voices can be switched between staves manually, using the command
160
161 @example
162 \change Staff = @var{staffname}
163 @end example
164
165 @noindent
166 The string @var{staffname} is the name of the staff.  It switches
167 the current voice from its current staff to the staff called
168 @var{staffname}.  Typical values for @var{staffname} are
169 @code{"up"} and @code{"down"}, or @code{"RH"} and @code{"LH"}.
170
171 Cross-staff notes are beamed automatically:
172
173 @lilypond[verbatim,quote]
174 \new PianoStaff <<
175   \new Staff = "up" {
176     <e' c'>8
177     \change Staff = "down"
178     g8 fis g
179     \change Staff = "up"
180     <g'' c''>8
181     \change Staff = "down"
182     e8 dis e
183     \change Staff = "up"
184   }
185   \new Staff = "down" {
186     \clef bass
187     % keep staff alive
188     s1
189   }
190 >>
191 @end lilypond
192
193 If the beaming needs to be tweaked, make any changes to the stem
194 directions first.  The beam positions are then measured from the
195 center of the staff that is closest to the beam.  For a simple
196 example of beam tweaking, see @rlearning{Fixing overlapping
197 notation}.
198
199
200 @seealso
201 Learning Manual:
202 @rlearning{Fixing overlapping notation}.
203
204 Notation Reference:
205 @ref{Stems},
206 @ref{Automatic beams}.
207
208 Snippets:
209 @rlsr{Keyboards}.
210
211 Internals Reference:
212 @rinternals{Beam},
213 @rinternals{ContextChange}.
214
215
216 @node Changing staff automatically
217 @unnumberedsubsubsec Changing staff automatically
218
219 @cindex changing staff automatically
220 @cindex automatic staff changes
221 @cindex staff changes, automatic
222
223 @funindex \autochange
224 @funindex autochange
225 @funindex PianoStaff
226
227 Voices can be made to switch automatically between the top and the
228 bottom staff.  The syntax for this is
229
230 @example
231 \autochange @dots{}@var{music}@dots{}
232 @end example
233
234 @noindent
235 This will create two staves inside the current staff group
236 (usually a @code{PianoStaff}), called @code{"up"} and
237 @code{"down"}.  The lower staff will be in the bass clef by default.
238 The autochanger switches on the basis of the pitch (middle@tie{}C is the
239 turning point), and it looks ahead skipping over rests to switch
240 in advance.
241
242 @lilypond[quote,verbatim]
243 \new PianoStaff {
244   \autochange {
245     g4 a b c'
246     d'4 r a g
247   }
248 }
249 @end lilypond
250
251 @cindex relative music and autochange
252 @cindex autochange and relative music
253
254 @funindex \relative
255 @funindex relative
256
257 A @code{\relative} section that is outside of @code{\autochange}
258 has no effect on the pitches of the music, so if necessary, put
259 @code{\relative} inside @code{\autochange}.
260
261 If additional control is needed over the individual staves, they
262 can be created manually with the names @code{"up"} and
263 @code{"down"}.  The @code{\autochange} command will then switch
264 its voice between the existing staves.  For example, this is
265 necessary to place a key signature in the lower staff:
266
267 @lilypond[quote,verbatim]
268 \new PianoStaff <<
269   \new Staff = "up" {
270     \new Voice = "melOne" {
271       \key g \major
272       \autochange \relative c' {
273         g8 b a c b d c e
274         d8 r fis, g a2
275       }
276     }
277   }
278   \new Staff = "down" {
279     \key g \major
280     \clef bass
281   }
282 >>
283 @end lilypond
284
285
286 @seealso
287 Notation Reference:
288 @ref{Changing staff manually}.
289
290 Snippets:
291 @rlsr{Keyboards}.
292
293 Internals Reference:
294 @rinternals{AutoChangeMusic}.
295
296
297 @knownissues
298
299 @cindex chords, splitting across staves with \autochange
300
301 The staff switches may not end up in optimal places.  For high
302 quality output, staff switches should be specified manually.
303
304 Chords will not be split across the staves; they will be assigned to a
305 staff based on the first note named in the chord construct.
306
307 @node Staff-change lines
308 @unnumberedsubsubsec Staff-change lines
309
310 @cindex staff-change line
311 @cindex staff change line
312 @cindex cross-staff line
313 @cindex cross staff line
314 @cindex line, staff-change follower
315 @cindex line, cross-staff
316 @cindex line, staff-change
317 @cindex follow voice
318 @cindex voice, following
319 @cindex staff switching
320 @cindex cross-staff
321
322 @funindex followVoice
323 @funindex \showStaffSwitch
324 @funindex showStaffSwitch
325 @funindex \hideStaffSwitch
326 @funindex hideStaffSwitch
327
328 Whenever a voice switches to another staff, a line connecting the
329 notes can be printed automatically:
330
331 @lilypond[quote,verbatim,relative=1]
332 \new PianoStaff <<
333   \new Staff = "one" {
334     \showStaffSwitch
335     c1
336     \change Staff = "two"
337     b2 a
338   }
339   \new Staff = "two" {
340     \clef bass
341     s1*2
342   }
343 >>
344 @end lilypond
345
346
347 @predefined
348 @code{\showStaffSwitch},
349 @code{\hideStaffSwitch}.
350 @endpredefined
351
352
353 @seealso
354 Snippets:
355 @rlsr{Keyboards}.
356
357 Internals Reference:
358 @rinternals{Note_head_line_engraver},
359 @rinternals{VoiceFollower}.
360
361
362 @node Cross-staff stems
363 @unnumberedsubsubsec Cross-staff stems
364
365 @cindex cross-staff notes
366 @cindex cross staff notes
367 @cindex notes, cross-staff
368 @cindex cross-staff stems
369 @cindex cross staff stems
370 @cindex stems, cross-staff
371 @cindex chords, cross-staff
372 @cindex cross-staff chords
373 @cindex cross staff chords
374
375 @funindex Stem
376 @funindex cross-staff
377 @funindex length
378 @funindex flag-style
379
380 Chords that cross staves may be produced:
381
382 @lilypond[verbatim,quote]
383 \new PianoStaff <<
384   \new Staff {
385     \relative c' {
386       f8 e4 d8 d f e4
387     }
388   }
389   \new Staff {
390     \relative c' {
391       << {
392         \clef bass
393         % stems may overlap the other staff
394         \override Stem #'cross-staff = ##t
395         % extend the stems to reach other other staff
396         \override Stem #'length = #12
397         % do not print extra flags
398         \override Stem #'flag-style = #'no-flag
399         % prevent beaming as needed
400         a8 g4 f8 f bes\noBeam g4
401       }
402       \\
403       {
404         f,2 bes4 c
405       } >>
406     }
407   }
408 >>
409 @end lilypond
410
411 @snippets
412 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
413 {indicating-cross-staff-chords-with-arpeggio-bracket.ly}
414
415
416 @seealso
417 Snippets:
418 @rlsr{Keyboards}.
419
420 Internals Reference:
421 @rinternals{Stem}.
422
423
424 @node Piano
425 @subsection Piano
426
427 This section discusses notation issues that relate most directly to the
428 piano.
429
430 @menu
431 * Piano pedals::
432 @end menu
433
434 @node Piano pedals
435 @unnumberedsubsubsec Piano pedals
436
437 @cindex piano pedals
438 @cindex pedals, piano
439 @cindex sustain pedal
440 @cindex pedal, sustain
441 @cindex sostenuto pedal
442 @cindex pedal, sostenuto
443 @cindex una corda
444 @cindex tre corde
445 @cindex sos.
446 @cindex U.C.
447
448 @funindex \sustainOn
449 @funindex sustainOn
450 @funindex \sustainOff
451 @funindex sustainOff
452 @funindex \sostenutoOn
453 @funindex sostenutoOn
454 @funindex \sostenutoOff
455 @funindex sostenutoOff
456 @funindex \unaCorda
457 @funindex unaCorda
458 @funindex \treCorde
459 @funindex treCorde
460
461 Pianos generally have three pedals that alter the way sound is
462 produced: @notation{sustain}, @notation{sostenuto}
463 (@notation{sos.}), and @notation{una corda} (@notation{U.C.}).
464 Sustain pedals are also found on vibraphones and celestas.
465
466 @lilypond[quote,verbatim,relative=2]
467 c4\sustainOn d e g
468 <c, f a>1\sustainOff
469 c4\sostenutoOn e g c,
470 <bes d f>1\sostenutoOff
471 c4\unaCorda d e g
472 <d fis a>1\treCorde
473 @end lilypond
474
475 @cindex pedal indication styles
476 @cindex pedal indication, text
477 @cindex pedal indication, bracket
478 @cindex pedal indication, mixed
479 @cindex pedal sustain style
480 @cindex sustain pedal style
481
482 @funindex pedalSustainStyle
483 @funindex mixed
484 @funindex bracket
485 @funindex text
486
487 There are three styles of pedal indications: text, bracket, and mixed.
488 The sustain pedal and the una corda pedal use the text style by default
489 while the sostenuto pedal uses mixed by default.
490
491 @lilypond[quote,verbatim,relative=2]
492 c4\sustainOn g c2\sustainOff
493 \set Staff.pedalSustainStyle = #'mixed
494 c4\sustainOn g c d
495 d\sustainOff\sustainOn g, c2\sustainOff
496 \set Staff.pedalSustainStyle = #'bracket
497 c4\sustainOn g c d
498 d\sustainOff\sustainOn g, c2
499 \bar "|."
500 @end lilypond
501
502 The placement of the pedal commands matches the physical movement of the
503 sustain pedal during piano performance.  Pedalling to the final bar line
504 is indicated by omitting the final pedal up command.
505
506
507 @seealso
508 Notation Reference:
509 @ref{Ties}.
510
511 Snippets:
512 @rlsr{Keyboards}.
513
514 Internals Reference:
515 @rinternals{SustainPedal},
516 @rinternals{SustainPedalLineSpanner},
517 @rinternals{SustainEvent},
518 @rinternals{SostenutoPedal},
519 @rinternals{SostenutoPedalLineSpanner},
520 @rinternals{SostenutoEvent},
521 @rinternals{UnaCordaPedal},
522 @rinternals{UnaCordaPedalLineSpanner},
523 @rinternals{UnaCordaEvent},
524 @rinternals{PianoPedalBracket},
525 @rinternals{Piano_pedal_engraver}.
526
527
528 @node Accordion
529 @subsection Accordion
530
531 @cindex accordion
532
533 This section discusses notation that is unique to the accordion.
534
535 @menu
536 * Discant symbols::
537 @end menu
538
539 @node Discant symbols
540 @unnumberedsubsubsec Discant symbols
541
542 @cindex accordion discant symbols
543 @cindex discant symbols, accordion
544 @cindex accordion shifts
545 @cindex accordion shift symbols
546
547 Accordions are often built with more than one set of reeds that may be
548 in unison with, an octave above, or an octave below the written pitch.
549 Each accordion maker has different names for the @notation{shifts} that
550 select the various reed combinations, such as @notation{oboe},
551 @notation{musette}, or @notation{bandonium}, so a system of symbols has
552 come into use to simplify the performance instructions.
553
554 @snippets
555
556 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
557 {accordion-discant-symbols.ly}
558
559
560 @seealso
561 Snippets:
562 @rlsr{Keyboards}.
563
564
565 @node Harp
566 @subsection Harp
567
568 This section discusses notation issues that are unique to the harp.
569
570 @menu
571 * References for harps::
572 * Harp pedals::
573 @end menu
574
575 @node References for harps
576 @unnumberedsubsubsec References for harps
577 @cindex harps
578 @cindex bisbiglando
579
580 Some common characteristics of harp music are covered elsewhere:
581
582 @itemize
583
584 @item The glissando is the most characterisic harp technique,
585 @ref{Glissando}.
586
587 @item A @notation{bisbigliando} is written as a tremelo @ref{Tremolo
588 repeats}
589
590 @item Natural harmonics are covered under @ref{Harmonics}.
591
592 @item For directional arpeggios and non-arpeggios, see @ref{Arpeggio}.
593
594 @end itemize
595
596 @seealso
597 Notation Reference:
598 @ruser{Tremelo Repeats}
599 @ruser{Glissando}
600 @ruser{Arpeggio}
601 @ruser{Harmonics}
602
603 @node Harp pedals
604 @unnumberedsubsubsec Harp pedals
605
606 @cindex harp pedals
607 @cindex harp pedal diagrams
608 @cindex pedals, harp
609 @cindex pedal diagrams, harp
610
611 Harps have seven strings per octave that may be sounded at the natural,
612 flattened, or sharpened pitch. In lever harps, each string is adjusted
613 individually, but in pedal harps every string with the same pitch name
614 is controlled by a single pedal. From the player's left to right, the
615 pedals are D, C, and B on the left and E, F, G, and A on the right.
616 The position of the pedals may be indicated with text marks:
617
618 @lilypond[quote,verbatim,relative=2]
619 \textLengthOn
620 cis1_\markup \concat \vcenter { [D \flat C \sharp B|E \sharp F \sharp G A \flat] }
621 c!1_\markup \concat \vcenter {[ C \natural ]}
622 @end lilypond
623
624 or pedal diagrams:
625
626 @lilypond[quote,verbatim,relative=2]
627 \textLengthOn
628 cis1_\markup { \harp-pedal #"^v-|vv-^" }
629 c!1_\markup { \harp-pedal #"^o--|vv-^" }
630 @end lilypond
631
632 The @code{\harp-pedal} command accepts a string of characters, where
633 @code{^} is the highest pedal position (flattened pitch), @code{-} is
634 the middle pedal postion (natural pitch), @code{v} is the lowest pedal
635 position (sharpened pitch), and @code{|} is the divider. A prefixed
636 @code{o} will circle the following pedal symbol.
637
638 @seealso
639 Notation Reference:
640 @ruser{Text scripts}
641 @ruser{Instrument Specific Markup}