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