]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/ja/learning/common-notation.itely
Doc-ja: fix compile.
[lilypond.git] / Documentation / ja / learning / common-notation.itely
1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
2
3 @ignore
4     Translation of GIT committish: c028761d49ac4820206806dbc58e9704a87b4a8
5
6     When revising a translation, copy the HEAD committish of the
7     version that you are working on.  For details, see the Contributors'
8     Guide, node Updating translation committishes..
9 @end ignore
10
11 @c \version "2.13.46"
12
13 @ignore
14 Tutorial guidelines:  (different from policy.txt!)
15 - unless you have a really good reason, use either
16     @lilypond[verbatim,quote]
17   or
18     @lilypond[verbatim,quote,relative=2]
19
20   Don't use any other relative=X commands.
21
22 - use "aes" and "ees" instead of "as" and "es".  I know it's not
23   correct Dutch naming, but let's not confuse people with this
24   until we get to the Basic notation chapter.
25
26 - Add "Music Glossary: @rglos{foo}" to the *top* of the relevant
27   portions of the tutorial.
28
29 @end ignore
30
31
32 @c Translators: Yoshiki Sawada
33 @c Translation status: post-GDP
34
35
36 @node 一般的な記譜法
37 @chapter 一般的な記譜法
38 @translationof Common notation
39
40 このチュートリアルではまず LilyPond 音楽言語についての紹介を行い、@c
41 楽譜を作り出す方法について説明します。@c
42 LilyPond との最初の接触の後、我々は一般的な音楽記譜法を持つ楽譜を@c
43 作成する方法について説明します。
44
45 @menu
46 * 単一譜表表記::
47 * 同時に演奏する複数の音符::
48 * 歌曲::
49 * 仕上げ::
50 @end menu
51
52
53 @node 単一譜表表記
54 @section 単一譜表表記
55 @translationof Single staff notation
56
57 このセクションはでは 1 つの譜表の上にある 1 つの声部のために使用される@c
58 一般的な記譜法を紹介します。
59
60 @menu
61 * 小節チェック::
62 * 臨時記号と調号::
63 * タイとスラー::
64 * アーティキュレーションと強弱記号::
65 * テキストを追加する::
66 * 自動連桁と手動連桁::
67 * 高度なリズム コマンド::
68 @end menu
69
70
71 @node 小節チェック
72 @subsection 小節チェック
73 @translationof Bar checks
74
75 必須ではありませんが、入力コードの中で @emph{小節チェック} を挿入して@c
76 どこに小節線を置こうとしているのかを示すべきです。@c
77 小節チェックは挿入するには @code{|} を入力します。@c
78 小節チェックがあると、プログラムはあなたが各小節に入力した演奏時間が@c
79 正しい長さになっているかを検証することができます。@c
80 さらに、小節チェックは要素を整理する助けとなるため、
81 入力コードが読みやすくなります。
82
83 @lilypond[verbatim,quote,relative=2]
84 g1 | e1 | c2. c'4 | g4 c g e | c4 r r2 |
85 @end lilypond
86
87 @seealso
88 記譜法リファレンス:
89 @ruser{Bar and bar number checks}
90
91
92 @node 臨時記号と調号
93 @subsection 臨時記号と調号
94 @translationof Accidentals and key signatures
95
96 @warning{新しいユーザ、特に音楽理論に馴染みのないユーザは@c
97 しばしばこれらのことで混乱します
98 -- このページの最後にある警告を呼んでください!}
99
100 @subheading 臨時記号
101
102 @cindex accidentals (臨時記号)
103 @cindex accidentals and key signatures (臨時記号と調号)
104 @cindex sharp (シャープ)
105 @cindex double sharp (ダブル シャープ)
106 @cindex sharp, double (ダブル シャープ)
107 @cindex flat (フラット)
108 @cindex double flat (ダブル フラット)
109 @cindex flat, double (ダブル フラット)
110
111 @funindex es
112 @funindex is
113 @funindex eses
114 @funindex isis
115
116 音楽用語集: @rglos{sharp}, @rglos{flat}, @rglos{double sharp},
117 @rglos{double flat}, @rglos{accidental}
118 @c シャープ (sharp), フラット (flat), ダブル シャープ (double sharp),
119 @c ダブル フラット (double flat), 臨時記号 (accidental)
120
121 @notation{シャープ} は音符名に @code{is} を付け加えることによって作られ、@c
122 @notation{フラット} は @code{es} を付け加えることによって作られます。@c
123 予想しているかもしれませんが、@notation{ダブル シャープ} や@c
124 @notation{ダブル フラット} は @code{isis} や @code{eses} を@c
125 付け加えることによって作られます。@c
126 この構文はドイツ語やオランダ語のような北欧とドイツの言語@c
127 での命名規則から生まれました。
128 @notation{臨時記号} に対して他の名前を使うには、@c
129 @ruser{Note names in other languages} を参照してください。
130
131 @lilypond[verbatim,quote,relative=2]
132 cis1 ees fisis, aeses
133 @end lilypond
134
135
136 @cindex key signature, setting
137 @subheading 調号
138 @c 調号
139
140 @cindex key signature (調号)
141 @cindex major (メジャー)
142 @cindex minor (マイナー)
143 @cindex accidentals and key signature (臨時記号と調号)
144 @cindex content vs. layout (内容 vs. レイアウト)
145 @cindex layout vs. content (レイアウト vs. 内容)
146
147 @funindex \key
148 @funindex key
149 @funindex \major
150 @funindex major
151 @funindex \minor
152 @funindex minor
153
154 音楽用語集: @rglos{key signature}, @rglos{major}, @rglos{minor}
155
156 @notation{調号} はコマンド @code{\key} とそれに続くピッチと
157 @code{\major} または @code{\minor} によってセットされます。
158
159 @lilypond[verbatim,quote,relative=2]
160 \key d \major
161 a1
162 \key c \minor
163 a
164 @end lilypond
165
166 @smallspace
167
168
169 @subheading 警告: 調号とピッチ
170
171 音楽用語集: @rglos{accidental}, @rglos{key signature},
172 @rglos{pitch}, @rglos{flat}, @rglos{natural}, @rglos{sharp},
173 @rglos{transposition}
174
175 @notation{臨時記号} を譜刻するかどうかを決定するために LilyPond はピッチと
176 @notation{調号} を検証します。@c
177 調号は @emph{譜刻される} 臨時記号にだけ影響を与え、@c
178 音符の @notation{ピッチ} には影響を与えません!@c
179 この特徴はしばしば新しく LilyPond を始める人を混乱させるため、@c
180 より詳細に説明します。
181
182 LilyPond は音楽の内容とレイアウトを峻別します。@c
183 音符の変更記号 (@notation{フラット}、@notation{ナチュラル}、@c
184 @notation{シャープ}) はピッチの一部であるため、音楽の内容です。@c
185 臨時記号 (@emph{譜刻される}フラット、ナチュラル、シャープ記号) が@c
186 対応する音符の前に譜刻されるかどうかはレイアウトの問題です。@c
187 レイアウトは規則に従う何らかのものであるため、@c
188 臨時記号はそれらの規則に対応して自動的に譜刻されます。@c
189 あなたの音楽の中でのピッチは人工的な仕掛けであるため、@c
190 それらは自動的には追加されず、あなたはあなたの聞きたいピッチを@c
191 入力しなければなりません。
192
193 以下の例では:
194
195 @lilypond[verbatim,quote,relative=2]
196 \key d \major
197 cis4 d e fis
198 @end lilypond
199
200 @noindent
201 臨時記号を譜刻されている音符はありません。@c
202 しかしながら、あなたは入力ファイルで @code{is} を付け加えて @code{cis} や 
203 @code{fis} などとタイプしなければなりません。
204
205 コード @code{b} は @qq{譜表の最初の線 (一番上の線) のすぐ下に黒い点を譜刻せよ} 
206 という意味ではありません。@c
207 そうではなく、@qq{ピッチが B ナチュラルである音符がある} という意味です。@c
208 A フラット メジャーの調では、@code{b} には臨時記号が付きます:
209
210 @lilypond[verbatim,quote,relative=2]
211 \key aes \major
212 aes4 c b c
213 @end lilypond
214
215 混乱してしまいましたか?@c
216 以下のように考えてみてください:
217 あなたがピアノを弾いているとします。@c
218 黒鍵を押したいのであれば、音符名に @code{-is} や @code{-es} を付ける@c
219 必要があるのです!
220
221 すべての変化を明示的に付け加えることは入力時にちょっとした努力を@c
222 要するかもしれません。@c
223 しかしながら、移調がより容易になる、異なる規約に対応して臨時記号を@c
224 譜刻できるという利点があります。@c
225 臨時記号がどのように異なる規則に対応して譜刻されるのかについての@c
226 いくつかの例は、@ruser{Automatic accidentals} を参照してください。
227 @c 臨時記号の自動譜刻
228
229 @seealso
230 記譜法リファレンス: @ruser{Note names in other languages},
231 @ruser{Accidentals},
232 @ruser{Automatic accidentals},
233 @ruser{Key signature}
234 @c 他の言語での音符名, 臨時記号, 臨時記号の自動譜刻, 調号
235
236
237 @node タイとスラー
238 @subsection タイとスラー
239 @translationof Ties and slurs
240
241 @cindex tie (タイ)
242 @cindex slur (スラー)
243 @cindex slur, phrasing (フレージング スラー)
244 @cindex phrasing slur (フレージング スラー)
245
246 @funindex ~
247 @funindex ( ... )
248 @funindex \( ... \)
249
250
251 @subheading タイ
252
253
254 音楽用語集: @rglos{tie}
255
256 @notation{タイ}はタイが始まる最初の音符にチルド @code{~} を@c
257 付加することによって作成されます。
258
259 @lilypond[verbatim,quote,relative=2]
260 g4~ g c2~ | c4~ c8 a~ a2 |
261 @end lilypond
262
263
264 @subheading スラー
265
266 音楽用語集: @rglos{slur}
267
268 @notation{スラー}は多くの音符に亘って描かれる曲線です。@c
269 スラーの開始音符と終了音符にはそれぞれ @code{(} と @code{)} を付加します。
270
271 @lilypond[verbatim,quote,relative=2]
272 d4( c16) cis( d e c cis d) e( d4)
273 @end lilypond
274
275
276 @subheading フレージング スラー
277
278 音楽用語集: @rglos{slur}, @rglos{phrasing}
279
280 長い @notation{フレーズ} を示すためのスラーは @code{\(} と @code{\)}
281 によって挿入することができます。@c
282 あなたは@notation{スラー}とフレージング スラーを重ねることができます。@c
283 しかしながら、あなたは複数のスラーを重ねたり、複数のフレージング スラーを@c
284 重ねることはできません。
285
286 @lilypond[verbatim,quote,relative=2]
287 g4\( g8( a) b( c) b4\)
288 @end lilypond
289
290 @smallspace
291
292 @cindex slurs versus ties (スラー vs. タイ)
293 @subheading 警告: スラー vs. タイ
294
295 音楽用語集: @rglos{articulation}, @rglos{slur}, @rglos{tie}
296
297 @notation{スラー} は @notation{タイ} のように見えますが、意味が異なります。@c
298 タイは単純に最初の音符をより長くするものであり、@c
299 同じ音程の音符のペアに対してのみ使用することができます。@c
300 スラーは複数の音符による @notation{アーティキュレーション} (節、表現) を@c
301 表していて、より大きな音符のグループに対して使用することができます。@c
302 スラーとタイはネストさせることができます。
303
304 @lilypond[verbatim,quote,relative=2]
305 c4~( c8 d~ d4 e)
306 @end lilypond
307
308 @seealso
309 記譜法リファレンス: @ruser{Ties}, @ruser{Slurs},
310 @ruser{Phrasing slurs}
311
312
313 @node アーティキュレーションと強弱記号
314 @subsection アーティキュレーションと強弱記号
315 @translationof Articulation and dynamics
316
317
318 @subheading アーティキュレーション
319
320 @cindex articulation (アーティキュレーション)
321 @cindex accent (アクセント)
322 @cindex staccato (スタッカート)
323
324 音楽用語集: @rglos{articulation}
325
326 一般的な @notation{アーティキュレーション} はダッシュ @code{-} と単一文字を@c
327 使うことで音符に付け加えることができます:
328
329 @lilypond[verbatim,quote,relative=2]
330 c4-^ c-+ c-- c-|
331 c4-> c-. c2-_
332 @end lilypond
333
334
335 @subheading 運指法記号
336
337 @cindex fingering (運指法記号)
338
339 @funindex ^
340 @funindex _
341
342 音楽用語集: @rglos{fingering}
343
344 同様に、@notation{運指法} はダッシュ (@code{-}) と譜刻する数字を使うことで@c
345 音符に付け加えることができます:
346
347 @lilypond[verbatim,quote,relative=2]
348 c-3 e-5 b-2 a-1
349 @end lilypond
350
351 通常、アーティキュレーションと運指法は自動的に刻譜されます。@c
352 しかしながら、あなたはダッシュ (@code{-}) を @code{^} (上へ) または 
353 @code{_} (下へ) に置き換えることによって方向を指定することができます。@c
354 さらに、あなたは同じ音符に複数のアーティキュレーションを@c
355 使用することもできます。@c
356 しかしながらたいていの場合は、LilyPond にアーティキュレーションの方向を@c
357 決定させるのが一番です。
358
359 @lilypond[verbatim,quote,relative=2]
360 c4_-^1 d^. f^4_2-> e^-_+
361 @end lilypond
362
363
364 @subheading 強弱記号
365
366 @cindex dynamics (強弱記号)
367 @cindex decrescendo (デクレッシェンド)
368 @cindex crescendo (クレッシェンド)
369
370 @funindex \f
371 @funindex \ff
372 @funindex \mp
373 @funindex \p
374 @funindex \mf
375 @funindex \pp
376 @funindex \<
377 @funindex <
378 @funindex \>
379 @funindex >
380 @funindex \!
381 @funindex !
382
383 音楽用語集: @rglos{dynamics}, @rglos{crescendo}
384 @rglos{decrescendo}
385
386 @notation{強弱記号} は音符にバック スラッシュ@c
387 @ignore
388 (訳者注: バック スラッシュは英語フォントではスラッシュ @code{/} を@c
389 左右反転させたもの、日本語フォントでは円マーク 
390 @code{¥} になるのが一般的です。) 
391 @end ignore
392 付きのマークを付け加えることによって作成されます:
393
394 @lilypond[verbatim,quote,relative=2]
395 c4\ff c\mf c\p c\pp
396 @end lilypond
397
398 @notation{クレッシェンド} と @notation{デクレッシェンド} はコマンド @code{\<} と
399 @code{\>} によって開始されます。@c
400 次の強弱記号 -- 例えば、@code{\f} -- が (デ)クレッシェンドを終わらせます。@c
401 コマンド @code{\!} を使って終わらせることもできます:
402
403 @lilypond[verbatim,quote,relative=2]
404 c4\< c\ff\> c c\!
405 @end lilypond
406
407
408 @seealso
409 記譜法リファレンス:
410 @ruser{Articulations and ornamentations},
411 @ruser{Fingering instructions},
412 @ruser{Dynamics}
413
414
415 @node テキストを追加する
416 @subsection テキストを追加する
417 @translationof Adding text
418
419 @cindex text, adding (テキストを追加する)
420 @cindex adding text (テキストを追加する)
421 @cindex markup (マークアップ)
422
423 @funindex \markup
424 @funindex markup
425
426 テキストをあなたの楽譜に追加することができます:
427
428 @lilypond[verbatim,quote,relative=2]
429 c2^"espr" a_"legato"
430 @end lilypond
431
432 追加のフォーマット指定を @code{\markup} コマンドで追加することができます:
433
434 @lilypond[verbatim,quote,relative=2]
435 c2^\markup { \bold espr }
436 a2_\markup {
437   \dynamic f \italic \small { 2nd } \hspace #0.1 \dynamic p
438 }
439 @end lilypond
440
441
442 @seealso
443 記譜法リファレンス:
444 @ruser{Writing text}
445
446
447 @node 自動連桁と手動連桁
448 @subsection 自動連桁と手動連桁
449 @translationof Automatic and manual beams
450
451 @cindex beaming (連桁を付ける)
452 @cindex automatic beams (自動連桁)
453 @cindex manual beams (手動連桁)
454 @cindex beams, automatic (自動連桁)
455 @cindex beams, manual (手動連桁)
456 @cindex beams, by hand (手動による連桁)
457
458 @funindex [ ... ]
459 @funindex [
460 @funindex ]
461 @funindex \autoBeamOff
462 @funindex autoBeamOff
463 @funindex \autoBeamOn
464 @funindex autoBeamOn
465
466 音楽用語集: @rglos{beam}
467
468 すべての @notation{連桁} は自動的に描かれます:
469
470 @lilypond[verbatim,quote,relative=2]
471 a8 ais d ees r d c16 b a8
472 @end lilypond
473
474 あなたが自動連桁を好まない場合、手動で上書きすることもできます。@c
475 ある箇所の連桁を修正するには、連桁を付ける最初の音符に @code{[} を、@c
476 最後の音符に @code{]} を付け加えます。
477
478 @lilypond[verbatim,quote,relative=2]
479 a8[ ais] d[ ees r d] c16 b a8
480 @end lilypond
481
482 もしあなたが楽譜全体あるいは一部で自動連桁を Off にしたいのなら、@c
483 自動連桁を Off にするにはコマンド @code{\autoBeamOff} を、@c
484 再度自動連桁を On にするには @code{\autoBeamOn} を使用します。
485
486 @lilypond[verbatim,quote,relative=2]
487 \autoBeamOff
488 a8 c b4 d8. c16 b4 |
489 \autoBeamOn
490 a8 c b4 d8. c16 b4 |
491 @end lilypond
492
493
494 @seealso
495 記譜法リファレンス:
496 @ruser{Automatic beams},
497 @ruser{Manual beams}
498
499
500 @node 高度なリズム コマンド
501 @subsection 高度なリズム コマンド
502 @translationof Advanced rhythmic commands
503
504 @subheading 部分小節
505
506 @cindex pickup (ピックアップ)
507 @cindex anacrusis (弱拍)
508 @cindex partial measure (部分小節)
509
510 @funindex \partial
511 @funindex partial
512
513 音楽用語集: @rglos{anacrusis}
514
515 ピックアップ (訳者: 本来の拍子以外の拍子を持つ小節のこと)
516 (または@notation{弱拍}) はキーワード @code{\partial} によって挿入されます。@c
517 この後に演奏時間が続きます: 
518 @code{\partial 4} は 4 分音符のピックアップであり、@c
519 @code{\partial 8} は 8 分音符のピックアップです。
520
521 @lilypond[verbatim,quote,relative=2]
522 \partial 8 f8 |
523 c2 d |
524 @end lilypond
525
526
527 @subheading 連符
528
529 @cindex tuplets (連符)
530 @cindex triplets (3 連符)
531
532 @funindex \times
533 @funindex times
534
535 音楽用語集: @rglos{note value}, @rglos{triplet}
536
537 @notation{連符} は @code{\times} キーワードによって作成されます。@c
538 これは 2 つの引数をとります: 分数と楽譜の断片です。@c
539 楽譜の断片の演奏時間と分数が乗算されます。@c
540 3 連符は表記された演奏時間の 2/3 の長さなので、@notation{3 連符} は@c
541 分数として 2/3 を持ちます。
542
543 @lilypond[verbatim,quote,relative=2]
544 \times 2/3 { f8 g a }
545 \times 2/3 { c8 r c }
546 \times 2/3 { f,8 g16[ a g a] }
547 \times 2/3 { d4 a8 }
548 @end lilypond
549
550
551 @subheading 装飾小音符
552
553 @cindex grace notes (装飾小音符)
554 @cindex acciaccatura (短前打音)
555 @cindex appoggiatura (前打音)
556
557 @funindex \grace
558 @funindex grace
559 @funindex \acciaccatura
560 @funindex acciaccatura
561 @funindex \appoggiatura
562 @funindex acciaccatura
563
564 音楽用語集: @rglos{grace notes}, @rglos{acciaccatura},
565 @rglos{appoggiatura}
566
567 @notation{装飾小音符} は @code{\grace} コマンドによって作成されますが、@c
568 キーワード @code{\appoggiatura} や @code{\acciaccatura} による接頭音楽表記に@c
569 よっても作成されます:
570
571 @lilypond[verbatim,quote,relative=2]
572 c2 \grace { a32[ b] } c2 |
573 c2 \appoggiatura b16 c2 |
574 c2 \acciaccatura b16 c2 |
575 @end lilypond
576
577
578 @seealso
579 記譜法リファレンス:
580 @ruser{Grace notes},
581 @ruser{Tuplets},
582 @ruser{Upbeats}
583
584
585 @node 同時に演奏する複数の音符
586 @section 同時に演奏する複数の音符
587 @translationof Multiple notes at once
588
589 このセクションでは同時に複数の音符
590  -- 複数の楽器、単一の楽器に対する複数の譜 (すなわちピアノ)、和音 --
591 を持つ方法について紹介します。
592
593 楽譜の中での多声は楽曲の中にある複数の声部を参照します。@c
594 LilyPond の中での多声は同じ譜表上にある複数の声部を参照します。
595
596 @menu
597 * 音楽表記についての説明::
598 * 複数の譜::
599 * 譜表グループ::
600 * 音符を組み合わせて和音にする::
601 * 単一譜表での多声::
602 @end menu
603
604
605 @node 音楽表記についての説明
606 @subsection 音楽表記についての説明
607 @translationof Music expressions explained
608
609 @cindex music expression (音楽表記)
610 @cindex expression, music (音楽表記)
611 @cindex compound music expression (複合音楽表記)
612 @cindex music expression, compound (複合音楽表記)
613
614 LilyPond 入力ファイルの中では、音楽は @notation{音楽表記} によって表されます。@c
615 単一の音符は 1 つの音楽表記になります:
616
617 @lilypond[verbatim,quote,relative=2]
618 a4
619 @end lilypond
620
621 表記を波括弧で括ることによって @emph{複合音楽表記} が作成されます。@c
622 2 つの音符を持つ複合音楽表記を作成しました:
623
624 @lilypond[verbatim,quote,relative=2]
625 { a4 g4 }
626 @end lilypond
627
628 波括弧の中にある音楽表記 (例えば、いくつかの音符) のグループはそれらが@c
629 シークエンスであるということを意味しています 
630 (つまり、それぞれの音符は前の音符に続くということです)。@c
631 もう 1 つ音楽表記の結果を示します:
632
633 @lilypond[verbatim,quote,relative=2]
634 { { a4 g } f4 g }
635 @end lilypond
636
637
638 @subheading 数学的表記との類似
639 @c Analogy: mathematical expressions
640
641 このメカニズムは数学式と似ています: 
642 大きな式は小さな式を組み合わせることによって作成されます。@c
643 そのような式は表記と呼ばれ、それらの定義は再帰的なのであなたは@c
644 任意に複雑で大きな表記を作ることができます。@c
645 例えば、
646
647 @example
648 1
649
650 1 + 2
651
652 (1 + 2) * 3
653
654 ((1 + 2) * 3) / (4 * 5)
655 @end example
656
657 これは表記のシークエンスであり、@c
658 各表記は次の (より大きな) 表記に組み込まれています。@c
659 最も単純な表記は数であり、より大きな表記は演算子 (@code{+}, @code{*}, 
660 @code{/} など) と括弧を組み合わせることによって作成されます。@c
661 数学式と同様に、音楽表記も任意の深さにネストさせることができ、@c
662 それは多声楽譜のような複雑な音楽のために必要なことです。
663
664
665 @subheading 同時進行の音楽表記: 複数の譜
666 @c Simultaneous music expressions: multiple staves
667
668 @cindex multiple staves (複数の譜)
669 @cindex staves, multiple (複数の譜)
670 @cindex polyphony (多声)
671 @cindex combining expressions in parallel (表記を並列に組み合わせる)
672 @cindex parallel expressions (並列表記)
673 @cindex expressions, parallel (並列表記)
674 @cindex relative notes and simultaneous music (相対音符と同時進行する音楽)
675 @cindex relative notes and parallel expressions (相対音符と並列表記)
676 @cindex simultaneous music and relative notes (同時進行する音楽と相対音符)
677 @cindex parallel expressions and relative notes (並列表記と相対音符)
678
679 @funindex <<
680 @funindex >>
681 @funindex << ... >>
682
683 音楽用語集: @rglos{polyphony}
684
685 このテクニックは @notation{多声音楽} に対して有用です。@c
686 複数の声部や複数の譜を持つ音楽を入力するために、@c
687 音楽表記を並列に組み合わせます。@c
688 2 つの声部を同時に演奏すべきであるということを示すには、@c
689 単純に音楽表記を同時進行するよう組み合わせて入力します。@c
690 @q{同時進行} の音楽表記は @code{<<} と @code{>>} で音楽表記を@c
691 囲い込むことによって形成されます。@c
692 以下の例では、3 つのシークエンス (すべてのシークエンスはそれぞれ 2 つの音符を@c
693 保持しています) が同時進行するように組み合わされています:
694
695 @lilypond[verbatim,quote]
696 \relative c'' {
697   <<
698     { a2 g }
699     { f2 e }
700     { d2 b }
701   >>
702 }
703 @end lilypond
704
705 入力の各レベルに対して異なる量のスペースをインデントとして与えていることに@c
706 注意してください。@c
707 LilyPond は行の先頭にどれくらい多く (あるいは少なく) のスペースがあるかを@c
708 気にしません。@c
709 しかしながら、上の例のように LilyPond コードにインデントを入れることによって@c
710 人間にとってはずっと読みやすくなります。
711
712 @warning{入力での各音符は前の音符との相対関係にあり、先頭の @code{@bs{}relative}
713 コマンドの中にある @code{c''} と相対関係にあるわけではありません。}
714
715
716 @subheading 同時進行する音楽表記: 単一の譜表
717 @c Simultaneous music expressions: single staff
718
719 楽曲の中にある譜の数を決定するために、@c
720 LilPond は最初の音楽表記の始まりを調べます。@c
721 始まりの音楽表記が単一の表記であった場合、楽譜の中の譜表は 1 つです。@c
722 以下の例は複雑な表記を持ちますが、単一の表記で始まっているため譜表も 1 つです。
723
724 @lilypond[verbatim,quote]
725 \relative c'' {
726   c2 <<c e>> |
727   << { e2 f } { c2 <<b d>> } >> |
728 }
729 @end lilypond
730
731
732 @node 複数の譜
733 @subsection 複数の譜
734 @translationof Multiple staves
735
736 @cindex multiple staves (複数の譜)
737 @cindex staves, multiple (複数の譜)
738 @cindex context (コンテキスト)
739 @cindex context, notation (記譜コンテキスト)
740 @cindex notation context (記譜コンテキスト)
741
742 @funindex \new Staff
743 @funindex new Staff
744 @funindex Staff
745 @funindex \new
746 @funindex new
747 @funindex Score
748 @funindex Voice
749 @funindex Lyrics
750 @funindex ChordNames
751
752 @ref{音楽表記についての説明} で見てきたように、@c
753 LilyPond 入力ファイルは音楽表記によって構築されています。@c
754 複数の同時進行の音楽表記で始まる楽譜の場合、LilyPond は複数の譜を作成します。@c
755 しかしながら、各譜表を明示的に作成すると何が起こるか@c
756 より容易に見て取ることができます。
757
758 複数の譜表を譜刻するには、1 つの譜表を形成する音楽の各部分の前に 
759 @code{\new Staff} を付け加えます。@c
760 これらの @code{Staff} 要素は @code{<<} と @code{>>} で並列に組み合わされます:
761
762 @lilypond[verbatim,quote]
763 \relative c'' {
764   <<
765     \new Staff { \clef "treble" c4 }
766     \new Staff { \clef "bass" c,,4 }
767   >>
768 }
769 @end lilypond
770
771 コマンド @code{\new} は 1 つの @q{記譜コンテキスト} を導入します。@c
772 記譜コンテキストは音楽的イベント (音符や @code{\clef} コマンドなど) が@c
773 解釈される環境です。@c
774 単純な楽曲では、そのような記譜コンテキストは自動的に作成されます。@c
775 より複雑な楽曲ではコンテキストを明示的に記述することが望ましいです。
776
777 コンテキストにはいくつかのタイプがあります。@c
778 @code{Score}, @code{Staff}, @code{Voice} は旋律記譜を扱います。@c
779 一方、@code{Lyrics} は歌詞テキストをセットし、@code{ChordNames} は@c
780 コード ネームを譜刻します。
781
782 構文という観点で見ると、@code{\new} を音楽表記の先頭に付け加えることによって@c
783 より大きな音楽表記が作成されます。@c
784 これは数学でのマイナス符号に似ています。@c
785 数式 @math{(4+5)} は数学表記であり、@math{-(4+5)} はより大きな数学表記です。
786
787 ある譜表に挿入された@notation{拍子記号}はデフォルトで他のすべての譜に@c
788 影響を与えます。@c
789 一方で、ある譜表に挿入された調号は他のすべての譜に影響を@emph{与えません}。@c
790 記号によってデフォルトの振る舞いが異なるのは、移調する楽器を扱う楽譜の方が@c
791 複合リズム (polyrhythmic) の楽譜よりも一般的だからです。
792
793 @lilypond[verbatim,quote]
794 \relative c'' {
795   <<
796     \new Staff { \clef "treble" \key d \major \time 3/4 c4 }
797     \new Staff { \clef "bass" c,,4 }
798   >>
799 }
800 @end lilypond
801
802 @node 譜表グループ
803 @subsection 譜表グループ
804 @translationof Staff groups
805
806 @cindex piano staff (ピアノ譜)
807 @cindex staff, piano (ピアノ譜)
808 @cindex choir staff (合唱譜)
809 @cindex staff, choir (合唱譜)
810 @cindex grand staff (グランド譜)
811 @cindex staff, grand (グランド譜)
812 @cindex staff group (譜表グループ)
813
814 @funindex PianoStaff
815 @funindex GrandStaff
816 @funindex ChoirStaff
817
818 音楽用語集:
819 @rglos{brace},
820 @rglos{staff},
821 @rglos{system}.
822
823 ピアノ譜は @notation{ブレース} でつながれた 2 つの譜表として刻譜されます。@c
824 そのような譜表を刻譜することは @ref{複数の譜} での多声の例に@c
825 似ています。@c
826 しかしながら、今度は表記全体が @code{PianoStaff} の中に挿入されます:
827
828 @example
829 \new PianoStaff <<
830   \new Staff @dots{}
831   \new Staff @dots{}
832 >>
833 @end example
834
835 小さな例を挙げます:
836
837 @lilypond[verbatim,quote]
838 \relative c'' {
839   \new PianoStaff <<
840     \new Staff { \time 2/4 c4 e | g g, | }
841     \new Staff { \clef "bass" c,,4 c' | e c | }
842   >>
843 }
844 @end lilypond
845
846 ピアノ譜以外の譜表グループ化はオーケストラ譜向けには @code{\new GrandStaff} 
847 で、ボーカル譜向けには @w{@code{\new ChoirStaff}} で導入されます。@c
848 これらの譜表グループはそれぞれタイプの異なるコンテキストを形成し、各システム 
849 (訳者: 楽譜 1 行分のこと。ピアノ譜では右手と左手の 2 つの譜表ペアでの 1 行が 
850 1 システムになります) の左端にブレースを付けて、@c
851 さらに、小節線の高さを制御します。
852
853
854 @seealso
855 記譜法リファレンス:
856 @ruser{Keyboard and other multi-staff instruments},
857 @ruser{Displaying staves}
858
859
860 @node 音符を組み合わせて和音にする
861 @subsection 音符を組み合わせて和音にする
862 @translationof Combining notes into chords
863
864 @cindex chords (和音)
865 @cindex note durations in chords (和音の中での音符の演奏時間)
866
867 @funindex <
868 @funindex >
869 @funindex < ... >
870
871 音符を @code{<< ... >>} で囲んでそれらの音符が同時進行であることを@c
872 示すことによって、それらの音符を@notation{和音}として@c
873 組み合わせる方法について見てきました。@c
874 しかしながら、和音であることを示すための通常の方法は音符を < ... > (山括弧) 
875 で囲みます。@c
876 和音の中にある音符はすべて同じ演奏時間でなければならず、@c
877 その演奏時間は山括弧を閉じた後に置かれなければならないということに@c
878 注意してください。
879
880 @lilypond[verbatim,quote,relative=2]
881 r4 <c e g> <c f a>2
882 @end lilypond
883
884 和音は単一の音符とほとんど同じであると考えてください: 
885 単一の音符に付け加えられるものはほとんどすべて和音にも付け加えられ、@c
886 付け加えるものはすべて山括弧の@emph{外}に付け加えられなければなりません。@c
887 例えば、あなたは連桁やタイなどのマークをコードに組み合わせることができます。@c
888 それらは山括弧の外側に置かれなければなりません。
889
890 @lilypond[verbatim,quote,relative=2]
891 r4 <c e g>~ <c f a>2 |
892 <c e g>8[ <c f a> <c e g> <c f a>] <c e g>\>[ <c f a> <c f a> <c e g>]\! |
893 r4 <c e g>8.\p <c f a>16( <c e g>4-. <c f a>) |
894 @end lilypond
895
896 @seealso
897 記譜法リファレンス:
898 @ruser{Chorded notes}
899
900
901 @node 単一譜表での多声
902 @subsection 単一譜表での多声
903 @translationof Single staff polyphony
904
905 @cindex polyphony (多声)
906 @cindex multiple voices (複数のボイス)
907 @cindex voices, more on one staff (1 つの譜表上に複数のボイス)
908 @cindex single staff polyphony (単一譜表の多声)
909 @cindex spacer rest (空白休符)
910 @cindex rest, spacer (空白休符)
911
912 @funindex << ... \\ ... >>
913 @funindex <<
914 @funindex \\
915 @funindex >>
916
917 LilyPond での多声音楽はまだ説明していないコンセプトを用いますので、@c
918 多声音楽についてここでは説明しません。@c
919 以下のセクションで多声音楽で用いるコンセプトを紹介し、@c
920 多声音楽について説明します。
921
922 @seealso
923 学習マニュアル:
924 @ref{音楽を保持するボイス}
925
926 記譜法リファレンス:
927 @ruser{Simultaneous notes}
928
929 @ignore
930 異なる旋律が単一の譜に組み込まれる場合、それらは多声部として刻譜されます。@c
931 各声部はそれ自体の符幹 (符頭から上下に出る棒)、スラー、@c
932 連桁 (符幹と符幹を結ぶ横棒) を持ちます。@c
933 最上段の声部は符頭から上に伸びる符幹を持ち、@c
934 最下段の声部は下に伸びる符幹を持ちます。
935
936 そのような多声のパートを入力するには、各声部をシークエンスとして 
937 (@w{@code{@{ ... @}}} を使って) 入力し、それらを @code{\\} で区切って@c
938 結合することで同時進行するように組み合わせます:
939
940 @lilypond[verbatim,quote,relative=2]
941 <<
942   { a4 g2 f4~ f4 } \\
943   { r4 g4 f2 f4 }
944 >>
945 @end lilypond
946
947 多声部音楽を刻譜する場合、空白休符を使用すると都合が良いかもしれません: 
948 それは刻譜されない休符です。@c
949 空白休符は一時的に演奏されない声部の空白期間を埋めるのに有用です。@c
950 今度は通常の休符 (@code{r}) の代わりに空白休符 (@code{s}) を使った@c
951 上と同じ例を示します:
952
953 @lilypond[verbatim,quote,relative=2]
954 <<
955   { a4 g2 f4~ f4 } \\
956   { s4 g4 f2 f4 }
957 >>
958 @end lilypond
959
960 @noindent
961 さらに、これらの表記は任意にネストさせることができます。
962
963 @lilypond[verbatim,quote,relative=2]
964 <<
965   \new Staff <<
966     { a4 g2 f4~ f4 } \\
967     { s4 g4 f2 f4 }
968   >>
969   \new Staff <<
970     \clef bass
971     { <c g>1 ~ <c g>4 } \\
972     { e,,4 d e2 ~ e4}
973   >>
974 >>
975 @end lilypond
976
977 @seealso
978 記譜法リファレンス: @ruser{Simultaneous notes}
979 @c 同時進行の音符
980 @end ignore
981
982
983 @node 歌曲
984 @section 歌曲
985 @translationof Songs
986
987 このセクションでは声楽とシンプルな歌曲譜についての紹介を行います。
988
989 @menu
990 * 簡単な歌曲を作成する::
991 * 歌詞を旋律に揃える::
992 * 複数の譜への歌詞::
993 @end menu
994
995
996 @node 簡単な歌曲を作成する
997 @subsection 簡単な歌曲を作成する
998 @translationof Setting simple songs
999
1000 @cindex lyrics (歌詞)
1001 @cindex songs (歌)
1002
1003 @funindex \addlyrics
1004 @funindex addlyrics
1005
1006 音楽用語集: @rglos{lyrics}
1007
1008 童謡の冒頭部分の旋律があります。@c
1009 歌詞は @notation{Girls and boys come out to play} です:
1010
1011 @lilypond[verbatim,quote]
1012 \relative c'' {
1013   \key g \major
1014   \time 6/8
1015   d4 b8 c4 a8 | d4 b8 g4
1016 }
1017 @end lilypond
1018
1019 @code{\addlyrics} キーワードで組み合わせることによって、@c
1020 @notation{歌詞} をこれらの音符にセットすることができます。@c
1021 歌詞は音節ごとにスペースで区切って入力します。
1022
1023 @lilypond[verbatim,quote]
1024 <<
1025   \relative c'' {
1026     \key g \major
1027     \time 6/8
1028     d4 b8 c4 a8 | d4 b8 g4
1029   }
1030   \addlyrics {
1031     Girls and boys come | out to play,
1032   }
1033 >>
1034 @end lilypond
1035
1036 @warning{空白または改行によって最後の音節を閉じ波括弧と分けることが不可欠です。@c
1037 そうしなければ、波括弧は音節の一部と見なされ、@c
1038 原因の分かりづらいエラーを引き起こします。@c
1039 @rprogram{見かけ上 ../ly/init.ly のエラーとなる} を参照してください。}
1040
1041 二重の山括弧 @w{@code{<< ... >>}} が楽曲全体を囲っていて、@c
1042 音楽と歌詞が同時進行することを示しています。
1043
1044
1045 @node 歌詞を旋律に揃える
1046 @subsection 歌詞を旋律に揃える
1047 @translationof Aligning lyrics to a melody
1048
1049 @cindex melisma (メリスマ)
1050 @cindex extender line (延長線)
1051 @cindex hyphens (ハイフン)
1052 @cindex underscore (アンダスコア)
1053 @cindex lyrics, aligning (歌詞を揃える)
1054 @cindex aligning lyrics (歌詞を揃える)
1055 @cindex lyrics, multi-syllable words (歌詞の中で複数の音節を持つ単語)
1056 @cindex words with multiple syllables in lyrics (歌詞の中で複数の音節を持つ単語)
1057
1058 音楽用語集: @rglos{melisma}, @rglos{extender line}
1059
1060 童謡の次の行は @notation{The moon doth shine as bright as day} です。@c
1061 これを前の例に付け加えてみましょう:
1062
1063 @lilypond[verbatim,quote]
1064 <<
1065   \relative c'' {
1066     \key g \major
1067     \time 6/8
1068     d4 b8 c4 a8 | d4 b8 g4 g8 |
1069     a4 b8 c b a | d4 b8 g4. |
1070   }
1071   \addlyrics {
1072     Girls and boys come | out to play,
1073     The | moon doth shine as | bright as day; |
1074   }
1075 >>
1076 @end lilypond
1077
1078 上の例のコードをコンパイルすると、コンソール出力にいくつかの警告が表示されます:
1079
1080 @example
1081 song.ly:12:29: warning: barcheck failed at: 5/8
1082     The | moon doth shine as
1083                              | bright as day; |
1084 song.ly:12:46: warning: barcheck failed at: 3/8
1085     The | moon doth shine as | bright as day;
1086                                               |
1087 @end example
1088
1089 これは小節チェックの有用性を示す良い例です。@c
1090 今度は楽譜を見てください。@c
1091 追加した歌詞は適切に音符に揃えられてはいません。@c
1092 単語 @notation{shine} は 1 つの音符ではなく
1093 2 つの音符に割り当てられるべきです。@c
1094 これは @notation{メリスマ} と呼ばれ、@c
1095 歌詞の音節 1 つを複数の音符に割り当てます。@c
1096 音節を複数の音符に広げる方法はいくつかあります。@c
1097 最も簡単な方法は割り当てられる音符にスラーを付けることです。@c
1098 詳細は @ref{タイとスラー} を参照してください。
1099
1100 @lilypond[verbatim,quote]
1101 <<
1102   \relative c'' {
1103     \key g \major
1104     \time 6/8
1105     d4 b8 c4 a8 | d4 b8 g4 g8 |
1106     a4 b8 c( b) a | d4 b8 g4. |
1107   }
1108   \addlyrics {
1109     Girls and boys come | out to play,
1110     The | moon doth shine as | bright as day; |
1111   }
1112 >>
1113 @end lilypond
1114
1115 今度は、単語は音符に対して正しく並んでいます。@c
1116 しかしながら、@c
1117 @notation{shine as} 上の音符に対する自動連桁は適当でないように見えます。@c
1118 これを修正するために、手動連桁コマンドを挿入して自動連桁を@c
1119 オーバライドします。@c
1120 詳細は @ref{自動連桁と手動連桁} を参照してください。
1121
1122 @lilypond[verbatim,quote]
1123 <<
1124   \relative c'' {
1125     \key g \major
1126     \time 6/8
1127     d4 b8 c4 a8 | d4 b8 g4 g8 |
1128     a4 b8 c([ b]) a | d4 b8 g4. |
1129   }
1130   \addlyrics {
1131     Girls and boys come | out to play,
1132     The | moon doth shine as | bright as day; |
1133   }
1134 >>
1135 @end lilypond
1136
1137 スラーを用いる方法のほかに、メリスマに含まれるべきである各音符に対応した@c
1138 アンダスコア @code{_} を用いることによって@c
1139 その歌詞がメリスマであるということを示すことができます:
1140
1141 @lilypond[verbatim,quote]
1142 <<
1143   \relative c'' {
1144     \key g \major
1145     \time 6/8
1146     d4 b8 c4 a8 | d4 b8 g4 g8 |
1147     a4 b8 c[ b] a | d4 b8 g4. |
1148   }
1149   \addlyrics {
1150     Girls and boys come | out to play,
1151     The | moon doth shine _ as | bright as day; |
1152   }
1153 >>
1154 @end lilypond
1155
1156 ある歌詞がいくつかの音符に亘って延長される場合や@c
1157 単一の非常に長い音符に割り当てられる場合、@c
1158 通常はその歌詞からその歌詞に対応しているすべての音符の下に@c
1159 @notation{延長線} が描かれます。@c
1160 延長線は 2 つのアンダスコア @code{__} で挿入します。@c
1161 今度は、例として Purcell の @notation{Dido and Æeneas} から@c
1162 最初の 3 小節目からを挙げます:
1163
1164 @lilypond[verbatim,quote]
1165 <<
1166   \relative c'' {
1167     \key g \minor
1168     \time 3/2
1169     g2 a bes | bes2( a) b2 |
1170     c4.( bes8 a4. g8 fis4.) g8 | fis1
1171   }
1172   \addlyrics {
1173     When I am | laid,
1174     am | laid __ in | earth,
1175   }
1176 >>
1177 @end lilypond
1178
1179 今までの例には複数の音節を持つ単語はありませんでした。@c
1180 通常、複数の音節を持つ単語は音節ごとに 1 つの音符に分割され、@c
1181 音節間はハイフンで結ばれます。@c
1182 ハイフンは 2 つのダッシュとして入力し、@c
1183 その結果として音節の間にハイフンが描かれます。@c
1184 今度の例では歌詞に複数の音節を持つ単語が含まれ、@c
1185 我々が今まで歌詞を音符に揃える方法について学んだことがすべて含まれています。
1186
1187 @c no ragged-right here because otherwise the hyphens get lost,
1188 @c but the example is long enough to avoid looking strange.
1189 @lilypond[verbatim,quote,noragged-right]
1190 <<
1191   \relative c' {
1192     \key g \major
1193     \time 3/4
1194     \partial 4
1195     d4 | g4 g a8( b) | g4 g b8( c) |
1196     d4 d e | c2
1197   }
1198   \addlyrics {
1199     A -- | way in a __ | man -- ger,
1200     no __ | crib for a | bed, __
1201   }
1202 >>
1203 @end lilypond
1204
1205 ある歌詞では -- 特にイタリア語では -- 反対のことが求められます:
1206 複数の音節を 1 つの音符にセットします。@c
1207 これは音節を単一のアンダスコア @code{_} (スペース無し) でリンクさせるか、@c
1208 クォートで囲むことによって達成されます。@c
1209 今度の例は Rossini の @notation{Figaro} からで、@c
1210 @notation{Largo al factotum} の @notation{al} は 
1211 @notation{Largo} の @notation{go} と同じ音符で歌われなければなりません:
1212
1213 @c no ragged-right here because otherwise the hyphens get lost,
1214 @c but the example is long enough to avoid looking strange.
1215 @lilypond[verbatim,quote,noragged-right]
1216 <<
1217   \relative c' {
1218     \clef "bass"
1219     \key c \major
1220     \time 6/8
1221     c4.~ c8 d b | c8([ d]) b c d b | c8
1222   }
1223   \addlyrics {
1224     Lar -- go_al fac -- | to -- tum del -- la cit -- | tÃ
1225   }
1226 >>
1227 @end lilypond
1228
1229 @seealso
1230 記譜法リファレンス:
1231 @ruser{Vocal music}
1232 @c 歌曲譜
1233
1234
1235 @node 複数の譜への歌詞
1236 @subsection 複数の譜への歌詞
1237 @translationof Lyrics to multiple staves
1238
1239 @cindex lyrics and multiple staves (歌詞と複数の譜)
1240 @cindex multiple staves and lyrics (複数の譜と歌詞)
1241
1242 @code{\addlyrics} を用いた簡単なアプローチは歌詞を複数の譜表の下に置くために@c
1243 使用することができます。@c
1244 ここで、Handel の @notation{Judas Maccabæus} から例を挙げます: 
1245
1246 @lilypond[verbatim,quote]
1247 <<
1248   \relative c'' {
1249     \key f \major
1250     \time 6/8
1251     \partial 8
1252     c8 | c8([ bes]) a a([ g]) f | f'4. b, | c4.~ c4
1253   }
1254   \addlyrics {
1255     Let | flee -- cy flocks the | hills a -- | dorn, __
1256   }
1257   \relative c' {
1258     \key f \major
1259     \time 6/8
1260     \partial 8
1261     r8 | r4. r4 c8 | a'8([ g]) f f([ e]) d | e8([ d]) c bes'4
1262   }
1263   \addlyrics {
1264     Let | flee -- cy flocks the | hills a -- dorn,
1265   }
1266 >>
1267 @end lilypond
1268
1269 この簡単な例よりも複雑な楽譜では、変数を使って楽譜構造を音符と歌詞から@c
1270 分離したほうが良いです。@c
1271 このことは @ref{変数を用いて楽曲を編成する} で議論されています。
1272
1273
1274 @seealso
1275 記譜法リファレンス:
1276 @ruser{Vocal music}
1277 @c 歌曲譜
1278
1279
1280 @node 仕上げ
1281 @section 仕上げ
1282 @translationof Final touches
1283
1284 このセクションはチュートリアルの最終セクションです。@c
1285 単純な楽譜に仕上げを加える方法を示し、@c
1286 このマニュアルの残りの部分についての紹介を行います。
1287
1288 @menu
1289 * 変数を用いて楽曲を編成する::
1290 * タイトルを付け加える::
1291 * 絶対音符名::
1292 * このチュートリアルの後にすべきこと::
1293 @end menu
1294
1295
1296 @node 変数を用いて楽曲を編成する
1297 @subsection 変数を用いて楽曲を編成する
1298 @translationof Organizing pieces with variables
1299
1300 @cindex variables (変数)
1301 @cindex variables, defining (変数を定義する)
1302 @cindex identifiers (識別子)
1303 @cindex macros (マクロ)
1304 @cindex assigning variables (変数を割り当てる)
1305 @cindex using variables (変数を使用する)
1306 @cindex variables, using (変数を使用する)
1307 @cindex variables, characters allowed in (変数で使用できる文字)
1308 @cindex characters allowed in variables (変数で使用できる文字)
1309
1310 これまで議論してきたすべての要素を組み合わせてより大きなファイルを作成すると、@c
1311 音楽表記はずっと大きくなります。@c
1312 多くの譜を持つ多声音楽では、入力ファイルはとても混乱しやすくなります。@c
1313 @emph{変数} を使って混乱を避けることができます。
1314
1315 変数 (これは識別子やマクロとも言えます) を使うことによって、@c
1316 音楽表記の複雑さを打破することができます。@c
1317 変数は以下のように割り当てられます:
1318
1319 @example
1320 namedMusic = @{ @dots{} @}
1321 @end example
1322
1323 音楽表記 @code{namedMusic} の内容は名前の前にバックスラッシュを置くことによって 
1324 (@code{\namedMusic}、これはまさに LilyPond の標準コマンドと同様です) 後で@c
1325 使用することができます。
1326
1327 @lilypond[verbatim,quote]
1328 violin = \new Staff {
1329   \relative c'' {
1330     a4 b c b
1331   }
1332 }
1333
1334 cello = \new Staff {
1335   \relative c {
1336     \clef "bass"
1337     e2 d
1338   }
1339 }
1340
1341 {
1342   <<
1343     \violin
1344     \cello
1345   >>
1346 }
1347 @end lilypond
1348
1349 @noindent
1350 変数の名前に使えるのはアルファベットだけであり、数字、アンダスコア、ダッシュを@c
1351 使うことはできません。
1352
1353 変数はメインの音楽表記の @emph{前} に定義されていなければなりません。@c
1354 しかしながら定義後は必要とされる場所で何度でも使用できます。@c
1355 変数の定義後は、その変数を他の変数定義の中で使うことも可能であり、
1356 楽曲のある部分が何度もリピートしている場合に入力の手間を省くことができます。
1357
1358 @lilypond[verbatim,quote]
1359 tripletA = \times 2/3 { c,8 e g }
1360 barA = { \tripletA \tripletA \tripletA \tripletA }
1361
1362 \relative c'' {
1363   \barA \barA
1364 }
1365 @end lilypond
1366
1367 変数を入力ファイルの中にある他の多くのオブジェクト タイプに対しても@c
1368 使用できます。
1369 例えば以下のようにです:
1370
1371 @example
1372 width = 4.5\cm
1373 name = "Wendy"
1374 aFivePaper = \paper @{ paperheight = 21.0 \cm @}
1375 @end example
1376
1377 変数の内容次第では、変数は他の場所で使用することができます。@c
1378 以下の例は上の例の変数を使用しています:
1379
1380 @example
1381 \paper @{
1382   \aFivePaper
1383   line-width = \width
1384 @}
1385 @{
1386   c4^\name
1387 @}
1388 @end example
1389
1390
1391 @node タイトルを付け加える
1392 @subsection タイトルを付け加える
1393 @translationof Adding titles
1394
1395 @cindex title (タイトル)
1396 @cindex headers (ヘッダ)
1397 @cindex header block (ヘッダ ブロック)
1398
1399 @funindex \header
1400 @funindex header
1401
1402 タイトル、作曲者、作品番号、それに類似の情報は
1403 @code{\header} ブロックの中に挿入されます。@c
1404 これはメインの音楽表記の外に存在します。@c
1405 普通、@code{\header} ブロックはバージョン番号の下に置かれます。
1406
1407 @example
1408 \version @w{"@version{}"}
1409
1410 \header @{
1411   title = "Symphony"
1412   composer = "Me"
1413   opus = "Op. 9"
1414 @}
1415
1416 @{
1417   @dots{} music @dots{}
1418 @}
1419 @end example
1420
1421 ファイルが処理されると、タイトルと作曲者は楽譜の上に譜刻されます。@c
1422 タイトルについての更なる情報は、@ruser{Creating titles} を参照してください。
1423
1424
1425 @node 絶対音符名
1426 @subsection 絶対音符名
1427 @translationof Absolute note names
1428
1429 @cindex note names (音符名)
1430 @cindex note names, absolute (絶対音符名)
1431 @cindex absolute mode (絶対モード)
1432 @cindex absolute values for pitches (ピッチの絶対値)
1433 @cindex pitches, absolute values (ピッチの絶対値)
1434 @cindex absolute note names (絶対音符名)
1435
1436 これまで我々は常にピッチを定義するのに @code{\relative} を使ってきました。@c
1437 これはたいていの音楽を入力するのに最も容易な方法です。@c
1438 しかしながら、ピッチを定義するための方法がもう一つ存在します:
1439 絶対モードです。
1440
1441 あなたが @code{\relative} を省略した場合、LilyPond はすべてのピッチを@c
1442 絶対値として扱います。@c
1443 @code{c'} は常にミドル C を意味し、@code{b} は常にミドル C の 1 音下の音符を@c
1444 意味し、@code{g,} は常にヘ音記号の譜表の最下段の譜線上にある音符を意味します。
1445
1446 @lilypond[verbatim,quote]
1447 {
1448   \clef "bass"
1449   c'4 b g, g, |
1450   g,4 f, f c' |
1451 }
1452 @end lilypond
1453
1454 今度は 4 オクターブの音階があります:
1455
1456 @lilypond[verbatim,quote]
1457 {
1458   \clef "bass"
1459   c,4 d, e, f, |
1460   g,4 a, b, c |
1461   d4 e f g |
1462   a4 b c' d' |
1463   \clef "treble"
1464   e'4 f' g' a' |
1465   b'4 c'' d'' e'' |
1466   f''4 g'' a'' b'' |
1467   c'''1 |
1468 }
1469 @end lilypond
1470
1471 ト音記号に旋律を書く場合は多くのクォート @code{'} 記号が使用されることが@c
1472 見て取れます。@c
1473 モーツァルトからの以下の楽譜の断片について考えてみます:
1474
1475 @lilypond[verbatim,quote]
1476 {
1477   \key a \major
1478   \time 6/8
1479   cis''8. d''16 cis''8 e''4 e''8 |
1480   b'8. cis''16 b'8 d''4 d''8 |
1481 }
1482 @end lilypond
1483
1484 これらすべてのクォート記号は入力ファイルを読みにくいものにして、@c
1485 エラーの原因になります。@c
1486 @code{\relative} を使うことで、上の例はずっと読みやすく、入力しやすくなります:
1487
1488 @lilypond[verbatim,quote]
1489 \relative c'' {
1490   \key a \major
1491   \time 6/8
1492   cis8. d16 cis8 e4 e8 |
1493   b8. cis16 b8 d4 d8 |
1494 }
1495 @end lilypond
1496
1497 @code{\relative} モードを使っているときにあなたがオクターブ記号 (@code{'} や 
1498 @code{,}) を付け間違えた場合、すぐにわかります
1499 -- 多くの音符が間違ったオクターブに譜刻されます。@c
1500 絶対モードを使っているときに付け間違いをした場合、@c
1501 はっきりとせず、見つけにくいです。
1502
1503 しかしながら、絶対モードは大きな音程を持つ音楽に対しては有用であり、@c
1504 LilyPond ファイルをコンピュータで生成する場合は非常に有用です。
1505
1506
1507 @node このチュートリアルの後にすべきこと
1508 @subsection このチュートリアルの後にすべきこと
1509 @translationof After the tutorial
1510
1511 このチュートリアルを終えた後、あなたは楽譜を 1 つ、2 つ書いてみるべきです。@c
1512 @ref{テンプレート} にある楽譜の 1 つに音符を付け加えることから始めてください。@c
1513 あなたがこのチュートリアルではカバーされなかった記譜法を必要とする場合、@c
1514 @ruser{Musical notation} で始まる記譜法リファレンスを参照してください。@c
1515 あなたがテンプレートではカバーされていない楽器のアンサンブルのために@c
1516 楽譜を書こうとする場合、@ref{テンプレートを拡張する} を参照してください。
1517
1518 あなたがいくつかの短い楽譜を書き終えた後は、@c
1519 学習マニュアルの残りの部分 (3~5 章) を読んでください。@c
1520 もちろん、今それらを読んでも何も問題はありません!@c
1521 しかしながら、学習マニュアルの残りの部分はあなたが LilyPond 入力に@c
1522 馴れていると仮定しています。@c
1523 あなたはそれらの章を今すぐ一読し、もっと経験を積んだ後に読み直すことを@c
1524 望むかもしれません。
1525
1526 このチュートリアルと学習マニュアルの残りの部分では、@c
1527 各セクションの最後に @strong{参照} があり、他のセクションを参照してます:
1528 初めて本書を読むときはこれらの参照を追うべきではありません。@c
1529 あなたが学習マニュアルをすべて読み終えたとき、いくつかのセクションを読み返し、@c
1530 さらに参照を追おうと思うかもしれません。
1531
1532 @ref{マニュアルの概要} をまだ読んでいないのなら、@c
1533 それを @emph{読んでください}。@c
1534 LilyPond についての情報は多いため、新しく LilyPond を始める人はしばしば、@c
1535 必要な情報を得るためにどこを読むべきかわからないことがあります。@c
1536 5 分間使ってマニュアルの概要を注意深く読めば、@c
1537 あなたは何時間も見当違いの場所を読むフラストレーションを持たずに@c
1538 済ますことができるでしょう!