]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/user/pitches.itely
faae41a6f6d2ad1cb1eae3077f51bc0404cf4a2d
[lilypond.git] / Documentation / user / pitches.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
10 @node Pitches
11 @section Pitches
12
13 This section discusses how to specify the pitch of notes.
14
15 @lilypondfile[ragged-right,line-width=16\cm,staffsize=16,quote]
16 {pitches-headword.ly}
17
18 @menu
19 * Writing pitches::             
20 * Changing multiple pitches::   
21 * Displaying pitches::          
22 @end menu
23
24
25 @node Writing pitches
26 @subsection Writing pitches
27
28 Into text.
29
30 @menu
31 * Normal pitches::              
32 * Accidentals::                 
33 * Note names in other languages::  
34 @end menu
35
36
37 @node Normal pitches
38 @unnumberedsubsubsec Normal pitches
39
40 @cindex Pitch names
41 @cindex pitches
42
43 A pitch name is specified using lowercase letters @code{a} through
44 @code{g}.  An ascending C-major scale is engraved with
45
46 @lilypond[quote,fragment,verbatim,ragged-right]
47 \clef bass
48 c d e f g a b c'
49 @end lilypond
50
51 The note name @code{c} is engraved one octave below middle C.
52
53 @lilypond[quote,fragment,verbatim,ragged-right]
54 \clef treble
55 c1
56 \clef bass
57 c1
58 @end lilypond
59
60 @funindex '
61 @funindex ,
62
63 The optional octave specification takes the form of a series of
64 single quote (@samp{'}) characters or a series of comma (@samp{,})
65 characters.  Each @samp{'} raises the pitch by one octave; each
66 @samp{,} lowers the pitch by an octave.
67
68 @lilypond[quote,ragged-right,fragment,verbatim]
69 \clef treble
70 c' c'' e' g d'' d' d c
71 \clef bass
72 c, c,, e, g d,, d, d c
73 @end lilypond
74
75 An alternate method may be used to declare which octave to engrave
76 a pitch; this method does not require as many octave
77 specifications (@code{'} and @code{,}).  See @ref{Relative
78 octaves}.
79
80
81 @node Accidentals
82 @unnumberedsubsubsec Accidentals
83
84 @cindex note names, Dutch
85 @cindex note names, default
86
87 @c following paragraph changed to match Tutorial and Accidental
88 @c and Key Signature pages.  
89
90 A @rglos{sharp} pitch is made by adding @samp{is} to the name, and
91 a @rglos{flat} pitch by adding @samp{es}.  As you might expect,
92 a @rglos{double sharp} or @rglos{double flat} is made by adding
93 @samp{isis} or @samp{eses}.  This syntax derived from note naming
94 conventions in Nordic and Germanic languages, like German and
95 Dutch.  To use other names for accidentals, see @ruser{Note names
96 in other languages}.
97
98 @lilypond[quote,ragged-right,fragment,verbatim,relative=2]
99 a2 ais a aes
100 a2 aisis a aeses
101 @end lilypond
102
103 @noindent
104 These are the Dutch note names.  In Dutch, @code{aes} is
105 contracted to @code{as}, but both forms are accepted.  Similarly,
106 both @code{es} and @code{ees} are accepted
107
108 @lilypond[fragment,quote,ragged-right,verbatim,relative=2]
109 a2 as e es
110 @end lilypond
111
112 A natural will cancel the effect of an accidental or key
113 signature.  However, naturals are not encoded into the note name
114 syntax with a suffix; a natural pitch is shown as a simple note
115 name
116
117 @lilypond[quote,ragged-right,fragment,verbatim,relative=2]
118 a4 aes a2
119 @end lilypond
120
121 The input @code{d e f} is interpreted as @q{print a D-natural,
122 E-natural, and an F-natural,} regardless of the key signature.
123 For more information about the distinction between musical content
124 and the presentation of that content, see @rlearning{Accidentals
125 and key signatures}.
126
127 @lilypond[fragment,quote,ragged-right,verbatim,relative]
128 \key d \major
129 d e f g
130 d e fis g
131 @end lilypond
132
133
134
135 @cindex accidental, reminder
136 @cindex accidental, cautionary
137 @cindex accidental, parenthesized
138 @cindex reminder accidental
139 @funindex ?
140 @cindex cautionary accidental
141 @cindex parenthesized accidental
142 @funindex !
143
144 Normally accidentals are printed automatically, but you may also
145 print them manually.  A reminder accidental can be forced by
146 adding an exclamation mark @code{!} after the pitch.  A cautionary
147 accidental (i.e., an accidental within parentheses) can be
148 obtained by adding the question mark @samp{?} after the pitch.
149 These extra accidentals can be used to produce natural signs, too.
150
151 @lilypond[quote,ragged-right,fragment,verbatim,relative=1]
152 cis cis cis! cis? c c? c! c
153 @end lilypond
154
155
156 @cindex quarter tones
157 @cindex semi-flats, semi-sharps
158
159 Half-flats and half-sharps are formed by adding @code{-eh} and
160 @code{-ih}; the following is a series of Cs with increasing
161 pitches
162
163 @lilypond[verbatim,ragged-right,quote,relative=2,fragment]
164 \set Staff.extraNatural = ##f
165 ceseh ceh cih cisih
166 @end lilypond
167
168 Micro tones are also exported to the MIDI file.
169
170
171 @commonprop
172
173 In accordance with standard typesetting rules, a natural sign is
174 printed before a sharp or flat if a previous accidental needs to
175 be cancelled.  To change this behavior, use @code{\set
176 Staff.extraNatural = ##f}
177
178 @lilypond[fragment,quote,ragged-right,verbatim,relative=2]
179 ceses4 ces cis c
180 \set Staff.extraNatural = ##f
181 ceses4 ces cis c
182 @end lilypond
183
184
185 @seealso
186
187 The automatic production of accidentals can be tuned in many ways.
188 For more information, see @ref{Automatic accidentals}.
189
190 Program reference: @internalsref{LedgerLineSpanner},
191 @internalsref{NoteHead}.
192
193
194 @refbugs
195
196 There are no generally accepted standards for denoting
197 three-quarter flats, so LilyPond's symbol does not conform to any
198 standard.
199
200
201
202 @node Note names in other languages
203 @unnumberedsubsubsec Note names in other languages
204
205 There are predefined sets of note names for various other
206 languages.  To use them, include the language specific init file.
207 For example, add @code{\include "english.ly"} to the top of the
208 input file.  The available language files and the note names they
209 define are
210
211 @cindex note names, other languages
212 @c  put the rest of the old table into this new format.
213 @example
214 @multitable @columnfractions .2 .6 .05 .05 .05 .05
215 @headitem Language
216   @tab Note names
217   @tab sharp @tab flat @tab double sharp @tab double flat
218 @item netherlands.ly
219   @tab c d e f g a bes b
220   @tab -is @tab -es @tab -isis @tab -eses
221 @c new stuff here:
222
223
224 @end multitable
225 @end example
226
227 @c old table
228 @ignore
229 @example
230                         Note Names               sharp       flat     double        double
231                                                                        sharp        flat
232
233 nederlands.ly  c   d   e   f   g   a   bes b   -is         -es       -isis         -eses
234 english.ly     c   d   e   f   g   a   bf  b   -s/-sharp   -f/-flat  -ss/-x/       -ff/
235                                                                      -sharpsharp   -flatflat
236 deutsch.ly     c   d   e   f   g   a   b   h   -is         -es       -isis         -eses
237 norsk.ly       c   d   e   f   g   a   b   h   -iss/-is    -ess/-es  -ississ/-isis -essess/-eses
238 svenska.ly     c   d   e   f   g   a   b   h   -iss        -ess      -ississ       -essess
239 italiano.ly    do  re  mi  fa  sol la  sib si  -d          -b        -dd           -bb
240 catalan.ly     do  re  mi  fa  sol la  sib si  -d/-s       -b        -dd/-ss       -bb
241 espanol.ly     do  re  mi  fa  sol la  sib si  -s          -b        -ss           -bb
242 @end example
243 @end ignore
244
245 @noindent
246 Note that in Dutch, German, Norwegian, and Swedish, the flat
247 alterations of @samp{a} like for example @code{aes} and
248 @code{aeses} are usually contracted to @code{as} and @code{ases}
249 (or more commonly @code{asas}).  Sometimes only these contracted
250 names are defined in the corresponding language files (this also
251 applies to the suffixes for quartertones below).
252
253 @noindent
254 Some music uses microtones whose alterations are fractions of a
255 @q{regular} sharp or flat.  The note names for quartertones defined
256 in the various language files are listed in the following table.
257 Here the prefixes @q{semi-} and @q{sesqui-} mean @q{half} and
258 @q{one and a half}, respectively.  For Norwegian, Swedish, Catalan
259 and Spanish no special names have been defined yet.
260
261 @c What about Turkish Maquam music and similar microtonal systems?
262 @c
263 @c Note that the term "three-quarter-sharp/-flat" used in lilypond's source code 
264 @c is actually misleading since the alteration is in fact one and a half
265 @c of a regular sharp/flat.  Whence the naming "sesqui-sharp/-flat" used below.
266
267 @example
268                         Note Names             semi-   semi-  sesqui-  sesqui-
269                                                sharp   flat    sharp    flat
270
271 nederlands.ly  c   d   e   f   g   a   bes b   -ih     -eh    -isih    -eseh
272 english.ly     c   d   e   f   g   a   bf  b   -qs     -qf    -tqs     -tqf
273 deutsch.ly     c   d   e   f   g   a   b   h   -ih     -eh    -isih    -eseh
274 norsk.ly       c   d   e   f   g   a   b   h   
275 svenska.ly     c   d   e   f   g   a   b   h   
276 italiano.ly    do  re  mi  fa  sol la  sib si  -sd     -sb    -dsd     -bsb
277 catalan.ly     do  re  mi  fa  sol la  sib si  
278 espanol.ly     do  re  mi  fa  sol la  sib si  
279 @end example
280
281
282 @node Changing multiple pitches
283 @subsection Changing multiple pitches
284
285 @menu
286 * Relative octaves::            
287 * Octave check::                
288 * Transpose::                   
289 @end menu
290
291 @node Relative octaves
292 @unnumberedsubsubsec Relative octaves
293
294 @cindex Relative
295 @cindex Relative octave specification
296 @funindex \relative
297
298 Octaves are specified by adding @code{'} and @code{,} to pitch
299 names.  When you copy existing music, it is easy to accidentally
300 put a pitch in the wrong octave and hard to find such an error.
301 The relative octave mode prevents these errors by making the
302 mistakes much larger: a single error puts the rest of the piece
303 off by one octave
304
305 @example
306 \relative @var{startpitch} @var{musicexpr}
307 @end example
308
309 @noindent
310 or
311
312 @example
313 \relative @var{musicexpr}
314 @end example
315
316 @noindent
317 @code{c'} is used as the default if no starting pitch is defined.
318
319 The octave of notes that appear in @var{musicexpr} are calculated
320 as follows:
321
322 @itemize
323 @item
324 If no octave changing marks are used, the basic interval between
325 this and the last note is always taken to be a fourth or less.
326
327 @item
328 This distance is determined without regarding alterations; a
329 @code{fisis} following a @code{ceses} will be put above the
330 @code{ceses}.  In other words, a doubly-augmented fourth is
331 considered a smaller interval than a diminished fifth, even though
332 the doubly-augmented fourth spans seven semitones while the
333 diminished fifth only spans six semitones.
334
335 @item
336 The octave changing marks @code{'} and @code{,} can be added to
337 raise or lower the pitch by an extra octave from the basic
338 interval.
339
340 @item
341 Multiple octave changing marks can be used.  @code{''} will raise
342 the pitch by two octaves.
343
344 @item 
345 The pitch of the first note is relative to @code{\relative
346 @var{startpitch} }.  
347
348 @item
349 If you do not specify @var{startpitch} then middle C is used.
350
351 @end itemize 
352
353 Here is the relative mode shown in action
354
355 @lilypond[quote,fragment,ragged-right,verbatim]
356 \relative c'' {
357   b c d c b c bes a
358 }
359 @end lilypond
360
361 Octave changing marks are used for intervals greater than a fourth
362
363 @lilypond[quote,ragged-right,fragment,verbatim]
364 \relative c'' {
365   c g c f, c' a, e''
366 }
367 @end lilypond
368
369 If the preceding item is a chord, the first note of the chord is
370 used to determine the first note of the next chord
371
372 @lilypond[quote,ragged-right,fragment,verbatim]
373 \relative c' {
374   c <c e g>
375   <c' e g>
376   <c, e' g>
377 }
378 @end lilypond
379
380 The pitch after @code{\relative} contains a note name.
381
382 The relative conversion will not affect @code{\transpose},
383 @code{\chordmode} or @code{\relative} sections in its argument.
384 To use relative within transposed music, an additional
385 @code{\relative} must be placed inside @code{\transpose}.
386
387
388 @node Octave check
389 @unnumberedsubsubsec Octave check
390
391 @cindex Octave check
392
393 Octave checks make octave errors easier to correct: a note may be
394 followed by @code{=}@var{quotes} which indicates what its absolute
395 octave should be.  In the following example,
396
397 @example
398 \relative c'' @{ c='' b=' d,='' @}
399 @end example
400
401 @noindent
402 the @code{d} will generate a warning, because a @code{d''} is
403 expected (because @code{b'} to @code{d''} is only a third), but a
404 @code{d'} is found.  In the output, the octave is corrected to be
405 a @code{d''} and the next note is calculated relative to
406 @code{d''} instead of @code{d'}.
407
408 There is also an octave check that produces no visible output.
409 The syntax
410
411 @example
412 \octave @var{pitch}
413 @end example
414
415 This checks that @var{pitch} (without quotes) yields @var{pitch}
416 (with quotes) in @code{\relative} mode compared to the note given
417 in the @code{\relative} command.  If not, a warning is printed,
418 and the octave is corrected.  The @var{pitch} is not printed as a
419 note.
420
421 In the example below, the first check passes without incident,
422 since the @code{e} (in @code{relative} mode) is within a fifth of
423 @code{a'}.  However, the second check produces a warning, since
424 the @code{e} is not within a fifth of @code{b'}.  The warning
425 message is printed, and the octave is adjusted so that the
426 following notes are in the correct octave once again.
427
428 @example
429 \relative c' @{
430   e
431   \octave a'
432   \octave b'
433 @}
434 @end example
435
436
437 The octave of a note following an octave check is determined with
438 respect to the note preceding it.  In the next fragment, the last
439 note is an @code{a'}, above middle C.  That means that the
440 @code{\octave} check passes successfully, so the check could be
441 deleted without changing the output of the piece.
442
443 @lilypond[quote,ragged-right,verbatim,fragment]
444 \relative c' {
445   e
446   \octave b
447   a
448 }
449 @end lilypond
450
451
452 @node Transpose
453 @unnumberedsubsubsec Transpose
454
455 @cindex Transpose
456 @cindex Transposition of pitches
457 @funindex \transpose
458
459 A music expression can be transposed with @code{\transpose}.  The
460 syntax is
461
462 @example
463 \transpose @var{from} @var{to} @var{musicexpr}
464 @end example
465
466 This means that @var{musicexpr} is transposed by the interval
467 between the pitches @var{from} and @var{to}: any note with pitch
468 @code{from} is changed to @code{to}.
469
470 Consider a piece written in the key of D-major.  If this piece is
471 a little too low for its performer, it can be transposed up to
472 E-major with
473
474 @example
475 \transpose d e @dots{}
476 @end example
477
478 Consider a part written for violin (a C instrument).  If this part
479 is to be played on the A clarinet (for which an A is notated as a
480 C, and which sounds a minor third lower than notated), the
481 following transposition will produce the appropriate part
482
483 @example
484 \transpose a c @dots{}
485 @end example
486
487 @code{\transpose} distinguishes between enharmonic pitches: both
488 @code{\transpose c cis} or @code{\transpose c des} will transpose
489 up half a tone.  The first version will print sharps and the
490 second version will print flats
491
492 @lilypond[quote,ragged-right,verbatim]
493 mus = { \key d \major cis d fis g }
494 \new Staff {
495   \clef "F" \mus
496   \clef "G"
497   \transpose c g' \mus
498   \transpose c f' \mus
499 }
500 @end lilypond
501
502 @code{\transpose} may also be used to input written notes for a
503 transposing instrument.  Pitches are normally entered into
504 LilyPond in C (or @q{concert pitch}), but they may be entered in
505 another key.  For example, when entering music for a B-flat
506 trumpet which begins on concert D, one would write
507
508 @example
509 \transpose c bes @{ e4 @dots{} @}
510 @end example
511
512 To print this music in B-flat again (i.e., producing a trumpet
513 part, instead of a concert pitch conductor's score) you would wrap
514 the existing music with another @code{transpose}
515
516 @example
517 \transpose bes c @{ \transpose c bes @{ e4 @dots{} @} @}
518 @end example
519
520
521 @seealso
522
523 Program reference: @internalsref{TransposedMusic}.
524
525 Example:
526 @lsr{scheme,transpose-pitches-with-minimum-accidentals.ly}.
527
528
529 @refbugs
530
531 If you want to use both @code{\transpose} and @code{\relative},
532 you must put @code{\transpose} outside of @code{\relative}, since
533 @code{\relative} will have no effect on music that appears inside
534 a @code{\transpose}.
535
536
537 @node Displaying pitches
538 @subsection Displaying pitches
539
540 @menu
541 * Clef::                        
542 * Key signature::               
543 * Ottava brackets::             
544 * Instrument transpositions::   
545 @end menu
546
547 @node Clef
548 @unnumberedsubsubsec Clef
549
550 @funindex \clef
551
552 The clef indicates which lines of the staff correspond to which
553 pitches.  The clef is set with the @code{\clef} command
554
555 @lilypond[quote,ragged-right,fragment,verbatim]
556 { c''2 \clef alto g'2 }
557 @end lilypond
558
559 @cindex treble clef
560 @cindex violin clef
561 @cindex alto clef
562 @cindex tenor clef
563 @cindex bass clef
564 @cindex french clef
565 @cindex soprano clef
566 @cindex mezzosoprano clef
567 @cindex baritone clef
568 @cindex varbaritone clef
569 @cindex subbass clef
570
571 Supported clefs include
572
573 @multitable @columnfractions .33 .66
574 @headitem Clef @tab Position
575 @item @code{treble}, violin, G, G2 @tab
576 G clef on 2nd line
577 @item @code{alto, C} @tab
578 C clef on 3rd line
579 @item @code{tenor} @tab
580 C clef on 4th line.
581 @item @code{bass, F} @tab
582 F clef on 4th line
583 @item @code{french} @tab
584 G clef on 1st line, so-called French violin clef
585 @item @code{soprano} @tab
586 C clef on 1st line
587 @item @code{mezzosoprano} @tab
588 C clef on 2nd line
589 @item @code{baritone} @tab
590 C clef on 5th line
591 @item @code{varbaritone} @tab
592 F clef on 3rd line
593 @item @code{subbass} @tab
594 F clef on 5th line
595 @item @code{percussion} @tab
596 percussion clef
597 @item @code{tab} @tab
598 tablature clef
599 @end multitable
600
601 By adding @code{_8} or @code{^8} to the clef name, the clef is
602 transposed one octave down or up, respectively, and @code{_15} and
603 @code{^15} transposes by two octaves.  The argument @var{clefname}
604 must be enclosed in quotes when it contains underscores or digits.
605 For example,
606
607 @cindex choral tenor clef
608 @lilypond[quote,ragged-right,verbatim,fragment,relative=1]
609 \clef "G_8" c4
610 @end lilypond
611
612
613 @commonprop
614
615 The command @code{\clef "treble_8"} is equivalent to setting
616 @code{clefGlyph}, @code{clefPosition} (which controls the Y
617 position of the clef), @code{middleCPosition} and
618 @code{clefOctavation}.  A clef is printed when any of these
619 properties are changed.  The following example shows possibilities
620 when setting properties manually.
621
622 @lilypond[quote,ragged-right,verbatim]
623 {
624   \set Staff.clefGlyph = #"clefs.F"
625   \set Staff.clefPosition = #2
626   c'4
627   \set Staff.clefGlyph = #"clefs.G"
628   c'4
629   \set Staff.clefGlyph = #"clefs.C"
630   c'4
631   \set Staff.clefOctavation = #7
632   c'4
633   \set Staff.clefOctavation = #0
634   \set Staff.clefPosition = #0
635   c'4
636   \clef "bass"
637   c'4
638   \set Staff.middleCPosition = #4
639   c'4
640 }
641 @end lilypond
642
643
644 @seealso
645
646 Program reference: @internalsref{Clef}.
647
648 This manual: @ref{Ancient clefs}.
649
650
651 @node Key signature
652 @unnumberedsubsubsec Key signature
653
654 @cindex Key signature
655 @funindex \key
656
657 The key signature indicates the tonality in which a piece is
658 played.  It is denoted by a set of alterations (flats or sharps)
659 at the start of the staff.
660
661 Setting or changing the key signature is done with the @code{\key}
662 command
663
664 @example
665 @code{\key} @var{pitch} @var{type}
666 @end example
667
668 @funindex \minor
669 @funindex \major
670 @funindex \minor
671 @funindex \ionian
672 @funindex \locrian
673 @funindex \aeolian
674 @funindex \mixolydian
675 @funindex \lydian
676 @funindex \phrygian
677 @funindex \dorian
678 @cindex church modes
679
680 Here, @var{type} should be @code{\major} or @code{\minor} to get
681 @var{pitch}-major or @var{pitch}-minor, respectively.  You may
682 also use the standard mode names (also called @q{church modes}):
683 @code{\ionian}, @code{\locrian}, @code{\aeolian},
684 @code{\mixolydian}, @code{\lydian}, @code{\phrygian}, and
685 @code{\dorian}.
686
687 This command sets the context property @code{Staff.keySignature}.
688 Non-standard key signatures can be specified by setting this
689 property directly.
690
691 Accidentals and key signatures often confuse new users, because
692 unaltered notes get natural signs depending on the key signature.
693 For more information, see @ref{Accidentals}, or
694 @rlearning{Accidentals and key signatures}.
695
696 @lilypond[quote,ragged-right,verbatim,relative=2,fragment]
697 \key g \major
698 f1
699 fis
700 @end lilypond
701
702
703 @commonprop
704
705 A natural sign is printed to cancel any previous accidentals.
706 This can be suppressed by setting the
707 @code{Staff.printKeyCancellation} property.
708
709 @lilypond[quote,fragment,ragged-right,verbatim,relative=2]
710 \key d \major
711 a b cis d
712 \key g \minor
713 a bes c d
714 \set Staff.printKeyCancellation = ##f
715 \key d \major
716 a b cis d
717 \key g \minor
718 a bes c d
719 @end lilypond
720
721
722 @seealso
723
724 Program reference: @internalsref{KeyCancellation},
725 @internalsref{KeySignature}.
726
727
728 @node Ottava brackets
729 @unnumberedsubsubsec Ottava brackets
730
731 @q{Ottava} brackets introduce an extra transposition of an octave
732 for the staff.  They are created by invoking the function
733 @code{set-octavation}
734
735 @cindex ottava
736 @cindex 15ma
737 @cindex octavation
738
739 @lilypond[quote,ragged-right,verbatim,fragment]
740 \relative c''' {
741   a2 b
742   #(set-octavation 1)
743   a b
744   #(set-octavation 0)
745   a b
746 }
747 @end lilypond
748
749 The @code{set-octavation} function also takes -1 (for 8va bassa),
750 2@tie{}(for 15ma), and -2 (for 15ma bassa) as arguments.
751 Internally the function sets the properties @code{ottavation}
752 (e.g., to @code{"8va"} or @code{"8vb"}) and
753 @code{centralCPosition}.  For overriding the text of the bracket,
754 set @code{ottavation} after invoking @code{set-octavation}, i.e.,
755
756 @lilypond[quote,ragged-right,verbatim]
757 {
758   #(set-octavation 1)
759   \set Staff.ottavation = #"8"
760   c'''
761 }
762 @end lilypond
763
764
765 @seealso
766
767 Program reference: @internalsref{OttavaBracket}.
768
769
770 @refbugs
771
772 @code{set-octavation} will get confused when clef changes happen
773 during an octavation bracket.
774
775
776 @node Instrument transpositions
777 @unnumberedsubsubsec Instrument transpositions
778
779 @cindex transposition, MIDI
780 @cindex transposition, instrument
781
782 The key of a transposing instrument can also be specified.  This
783 applies to many wind instruments, for example, clarinets (B-flat,
784 A, and E-flat), horn (F) and trumpet (B-flat, C, D, and E-flat).
785
786 The transposition is entered after the keyword
787 @code{\transposition}
788
789 @example
790 \transposition bes   %% B-flat clarinet
791 @end example
792
793 @noindent
794 This command sets the property @code{instrumentTransposition}.
795 The value of this property is used for MIDI output and quotations.
796 It does not affect how notes are printed in the current staff.  To
797 change the printed output, see @ref{Transpose}.
798
799 The pitch to use for @code{\transposition} should correspond to
800 the real sound heard when a @code{c'} written on the staff is
801 played by the transposing instrument.  For example, when entering
802 a score in concert pitch, typically all voices are entered in C,
803 so they should be entered as
804
805 @example
806 clarinet = @{
807   \transposition c'
808   ...
809 @}
810 saxophone = @{
811   \transposition c'
812   ...
813 @}
814 @end example
815
816 The command @code{\transposition} should be used when the music is
817 entered from a (transposed) orchestral part.  For example, in
818 classical horn parts, the tuning of the instrument is often
819 changed during a piece.  When copying the notes from the part, use
820 @code{\transposition}, e.g.,
821
822 @example
823 \transposition d'
824 c'4^"in D"
825 ...
826 \transposition g'
827 c'4^"in G"
828 ...
829 @end example
830