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