]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/ja/notation/simultaneous.itely
4099678ed55440eeb7790224c56a69827fe76bb7
[lilypond.git] / Documentation / ja / notation / simultaneous.itely
1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
2 @ignore
3     Translation of GIT committish: 673cef312bbefe407f87a1c2e041980bc61396c6
4
5     When revising a translation, copy the HEAD committish of the
6     version that you are working on.  See TRANSLATION for details.
7 @end ignore
8
9 @c \version "2.13.36"
10
11
12 @c Translators: Yoshiki Sawada
13 @c Translation status: post-GDP
14
15
16 @node 同時進行する音符
17 @section 同時進行する音符
18 @translationof Simultaneous notes
19
20 @lilypondfile[quote]{simultaneous-headword.ly}
21
22 楽譜の中で多声部は楽曲の 1 節の中にある複数のボイスを参照します。@c
23 LilyPond の中で多声部は同じ譜にある複数のボイスを参照します。
24
25 @menu
26 * 単一のボイス::
27 * 複数のボイス::
28 @end menu
29
30
31 @node 単一のボイス
32 @subsection 単一のボイス
33 @translationof Single voice
34
35 このセクションでは同じボイスの中にある同時進行する音符について議論します。
36
37 @menu
38 * 和音の音符::
39 * 和音の繰り返し::
40 * 同時進行表記::
41 * クラスタ::
42 @end menu
43
44
45 @node 和音の音符
46 @unnumberedsubsubsec 和音の音符
47 @translationof Chorded notes
48
49 @cindex chords (和音)
50 @cindex brackets, angle (山括弧)
51
52 @funindex <
53 @funindex >
54 @funindex <...>
55
56 和音は @code{<} と @code{>} で 1 組のピッチを囲むことによって形成されます。@c
57 和音の後には -- 普通の音符と同様に -- 演奏時間が続くかもしれません:
58
59 @lilypond[verbatim,quote,relative=2]
60 <a c e>1 <a c e>2 <f a c e>4 <a c>8. <g c e>16
61 @end lilypond
62
63 さらに、和音の後には -- 普通の音符と同様に -- アーティキュレーションが@c
64 続くかもしれません:
65
66 @lilypond[verbatim,quote,relative=2]
67 <a c e>1\fermata <a c e>2-> <f a c e>4\prall <a c>8.^| <g c e>16-.
68 @end lilypond
69
70 和音の中にある音符自体にもアーティキュレーションや装飾を付けることができます。
71
72 @lilypond[verbatim,quote,relative=2]
73 <a c\prall e>1 <a-> c-^ e>2 <f-. a c-. e-.>4 <a-+ c-->8. <g\fermata c e\turn>16
74 @end lilypond
75
76 しかしながら、いくつかの記譜要素
77 -- 強弱記号、ヘアピン、それにスラーなど --
78 は和音の中の音符ではなく、和音に付ける必要があります。@c
79 そうしなければ、譜刻されません。
80
81 @lilypond[verbatim,quote,relative=2]
82 <a\f c( e>1 <a c) e>\f <a\< c e>( <a\! c e>) <a c e>\< <a c e> <a c e>\!
83 @end lilypond
84
85 @cindex relative pitch, chords (和音と相対ピッチ)
86 @cindex chords, relative pitch (相対ピッチと和音)
87
88 和音の中のピッチに対して相対モードを使うことができます。@c
89 各和音の最初の音符は常に、前の和音の最初の音符との相対関係で決まります。@c
90 前が和音でない場合は、その和音の前にある最後のピッチとの相対関係になります。@c
91 和音の中にある残りの音符はすべて @emph{同じ和音の中にある}
92 前の音符との相対関係になります。
93
94 @lilypond[verbatim,quote,relative=2]
95 <a c e>1 <f a c> <a c e> <f' a c> <b, e b,>
96 @end lilypond
97
98 和音についての更なる情報は、@ref{Chord notation} を参照してください。
99
100
101 @seealso
102 音楽用語集:
103 @rglos{chord}
104
105 学習マニュアル:
106 @rlearning{音符を組み合わせて和音にする}
107
108 記譜法リファレンス:
109 @ref{Chord notation},
110 @ref{アーティキュレーションと装飾},
111 @ref{相対オクターブ入力},
112 @ref{複数のボイス}
113
114 コード断片集:
115 @rlsr{Simultaneous notes}
116
117 @knownissues
118 1 譜スペース内に 3 つ以上のピッチを保持している和音
119 -- @samp{<e f! fis!>} など --
120 では、符頭が重なります。@c
121 状況に応じて、適切な表記を用います
122
123 @itemize
124
125 @item
126 一時的に @ref{複数のボイス} を使用する -- @samp{<< f! \\ <e fis!> >>},
127
128 @item
129 いくつかのピッチを異名同音に書き換える -- @samp{<e f ges>},
130
131 @item
132 @ref{Clusters}
133
134 @end itemize
135
136 @node 和音の繰り返し
137 @unnumberedsubsubsec 和音の繰り返し
138 @translationof Chord repetition
139
140 入力の手間を省くために、前の和音を繰り返すための短縮記法があります。@c
141 和音を繰り返すためのシンボルは @code{q} です:
142
143 @lilypond[verbatim,quote,relative=2]
144 <a c e>1 q <f a c>2 q
145 @end lilypond
146
147 前の和音のピッチが複製されているだけなので、
148 通常の和音と同様に、和音の繰り返しのシンボルにも演奏時間、@c
149 アーティキュレーション、マークアップ、スラー、連桁などを使うことができます。
150
151 @lilypond[verbatim,quote,relative=2]
152 <a c e>1\p^"text" q2\<( q8)[-| q8.]\! q16-1-2-3 q8\prall
153 @end lilypond
154
155 和音繰り返しのシンボルは常に最後の和音を覚えているため、@c
156 最後の和音の後に和音ではない音符や休符があったとしても、@c
157 和音を繰り返すことができます。
158
159 @lilypond[verbatim,quote,relative=2]
160 <a c e>1 c4 q2 r8 q8
161 @end lilypond
162
163 しかしながら、和音繰り返しのシンボルは前の和音の強弱記号、@c
164 アーティキュレーション、あるいは装飾を持ち越しません。
165
166 @lilypond[verbatim,quote,relative=2]
167 <a-. c\prall e>1\sfz c4 q2 r8 q8
168 @end lilypond
169
170 @seealso
171 記譜法リファレンス:
172 @ref{Chord notation},
173 @ref{アーティキュレーションと装飾}
174
175 インストールされているファイル:
176 @file{ly/chord-repetition-init.ly}
177
178
179 @node 同時進行表記
180 @unnumberedsubsubsec 同時進行表記
181 @translationof Simultaneous expressions
182
183 2 重山括弧で囲まれた 1 つあるいは複数の音楽表記は同時進行します。@c
184 最初の表記が単一の音符で始まる場合、@c
185 あるいは同時進行する表記全体が明らかに単一のボイスの中にある場合、@c
186 その表記全体は単一の譜の上に配置されます。@c
187 そうでない場合、同時進行する表記の要素は別々の譜の上に配置されます。
188
189 以下の例は 1 つの譜の上にある同時進行表記を示しています:
190
191 @c KEEP LY
192 @lilypond[quote,verbatim,relative=2]
193 \new Voice {  % 明らかに単一のボイスです
194   << { a4 b g2 } { d4 g c,2 } >>
195 }
196 @end lilypond
197
198 @lilypond[quote,verbatim,relative=2]
199 % 単一の音符で始まります
200 a << {a4 b g}  {d4 g c,} >>
201 @end lilypond
202
203 これは同時進行するセクションが同一のリズムを持つ場合に役に立ちます。@c
204 しかしながら、異なる演奏時間を持つ音符を同じ符幹に取り付けようとすると@c
205 エラーとなります。
206
207 以下の例は、同時進行する表記が暗黙的に複数の譜を生成する様子を示しています:
208
209 @c KEEP LY
210 @lilypond[quote,verbatim,relative=2]
211 % 単一の音符で始まりません
212 << {a4 b g2}  {d4 g2 c,4} >>
213 @end lilypond
214
215 ここでは、リズムが異なっていても問題ありません。
216
217
218 @node クラスタ
219 @unnumberedsubsubsec クラスタ
220 @translationof Clusters
221
222 @cindex cluster (クラスタ)
223 @cindex note cluster (音符のクラスタ)
224
225 @funindex \makeClusters
226 @funindex makeClusters
227
228 クラスタは演奏すべき連続したピッチの範囲を示します。@c
229 クラスタは 1 組の音符の範囲 (envelope) として表されます。@c
230 クラスタはひと続きの和音に関数 @code{\makeClusters}
231 を適用することによって入力されます。@c
232 例えば以下のように:
233
234 @lilypond[quote,relative=2,verbatim]
235 \makeClusters { <g b>2 <c g'> }
236 @end lilypond
237
238 通常の音符とクラスタを同じ譜に一緒にして配置することができます
239 -- たとえ、それらが同時進行であってもです。@c
240 そのようなケースでは、通常の音符とクラスタの衝突を@c
241 自動的に回避しようとする試みは行われません。
242
243
244 @seealso
245 音楽用語集:
246 @rglos{cluster}
247
248 コード断片集:
249 @rlsr{Simultaneous notes}
250
251 内部リファレンス:
252 @rinternals{ClusterSpanner},
253 @rinternals{ClusterSpannerBeacon},
254 @rinternals{Cluster_spanner_engraver}
255
256
257 @knownissues
258
259 クラスタは少なくとも 2 つの和音を持つ場合にのみうまく譜刻されます。@c
260 さもなければ、あまりにも狭く譜刻されます。
261
262 クラスタは符幹を持たず、それ自体で演奏時間を示すことはできません。@c
263 しかしながら、譜刻されるクラスタの長さはクラスタを定義する和音の演奏時間に@c
264 よって決定されます。クラスタを分割するには、クラスタとクラスタの間に@c
265 分割するための休符が必要です。
266
267 クラスタは MIDI 出力を作り出しません。
268
269 @node 複数のボイス
270 @subsection 複数のボイス
271 @translationof Multiple voices
272
273 このセクションでは複数のボイスあるいは複数の譜の中にある同時進行する音符に@c
274 ついて議論します。
275
276 @menu
277 * 単一譜の多声::
278 * ボイス スタイル::
279 * 衝突の解決::
280 * 自動パート結合::
281 * 音楽を並列に記述する::
282 @end menu
283
284
285 @node 単一譜の多声
286 @unnumberedsubsubsec 単一譜の多声
287 @translationof Single-staff polyphony
288
289 @cindex single-staff polyphony (単一譜の多声)
290 @cindex polyphony, single-staff (単一譜の多声)
291 @cindex voice (ボイス)
292 @cindex lyrics assigned to one voice (1 つのボイスに代入される歌詞)
293
294 @funindex \voiceOne
295 @funindex voiceOne
296 @funindex \voiceOne ... \voiceFour
297 @funindex Voice
298 @funindex \oneVoice
299 @funindex oneVoice
300
301 @strong{@i{明示的にボイスをインスタンス化する}}
302
303 単一の譜の中に複数の独立したボイスを配置するのに必要とされる基本的な構造が@c
304 以下の例で示されています:
305
306 @lilypond[quote,relative=3,verbatim]
307 \new Staff <<
308   \new Voice = "first"
309     { \voiceOne r8 r16 g e8. f16 g8[ c,] f e16 d }
310   \new Voice= "second"
311     { \voiceTwo d16 c d8~ d16 b c8~ c16 b c8~ c16 b8. }
312 >>
313 @end lilypond
314
315 @noindent
316 ここでは、ボイスは明示的にインスタンス化されていて、名前を与えられています。@c
317 @code{\voiceOne} ... @code{\voiceFour} コマンドはボイスをセット アップし、@c
318 それにより、1 番目と 3 番目のボイスは上向きの符幹を持ち、2 番目と 4 番目の@c
319 ボイスは下向きの符幹を持ち、3 番目と 4 番目のボイスの符頭は水平方向にずれて、@c
320 それぞれのボイスの中の休符は衝突を避けるために自動的に移動させられます。@c
321 @code{\oneVoice} コマンドはすべてのボイス設定をニュートラルなデフォルトの@c
322 向きに戻します。
323
324 @c passage: 楽節
325 @strong{@i{一時的に多声となる楽節 (passage)}}
326
327 一時的に多声となる楽節は以下のような構成で作成することができます:
328
329 @example
330 << @{ \voiceOne ... @}
331   \new Voice @{ \voiceTwo ... @}
332 >> \oneVoice
333 @end example
334
335 @noindent
336 ここで、一時多声楽節の中の最初の表記は直前に使われていた
337 @code{Voice} コンテキストに配置され、@c
338 その @code{Voice} コンテキストは一時セクションの後も続いていきます。@c
339 山括弧の中の他の表記は別の一時ボイスに代入されます。@c
340 これと同様に、歌詞は多声セクションの前、最中、後に続いているボイスに@c
341 代入されます:
342
343 @lilypond[quote, verbatim, relative=2]
344 <<
345   \new Voice = "melody" {
346     a4
347     <<
348       {
349         \voiceOne
350         g f
351       }
352       \new Voice {
353         \voiceTwo
354         d2
355       }
356     >>
357     \oneVoice
358     e4
359   }
360   \new Lyrics \lyricsto "melody" {
361   This is my song.
362   }
363 >>
364 @end lilypond
365
366 @noindent
367 ここで、@code{\voiceOne} と @code{\voiceTwo} コマンドはそれぞれのボイスの@c
368 設定を定義するために必要とされています。
369
370 @strong{@i{2 重バックスラッシュ構造}}
371
372 @code{<< @{...@} \\ @{...@} >>} 構造
373 -- この中では 2 つ (あるいはそれ以上) の表記が
374 2 重バックスラッシュで区切られています --
375 は、同じような構造だが 2 重バックスラッシュを持たない構造とは@c
376 まったく異なる振る舞いをします:
377 この構造の中にある @emph{すべての} 表記は新たな @code{Voice} コンテキストに@c
378 代入されます。@c
379 それらの新しい @code{Voice} コンテキストは暗黙的に作成され、@c
380 あらかじめ決められた名前 @code{"1"}, @code{"2"} などを与えられます。
381
382 最初の例は以下のように書き換えることができます:
383
384 @lilypond[quote,relative=3,verbatim]
385 <<
386   { r8 r16 g e8. f16 g8[ c,] f e16 d }
387   \\
388   { d16 c d8~ d16 b c8~ c16 b c8~ c16 b8. }
389 >>
390 @end lilypond
391
392 一時ボイスが作成され、それから消去されることが問題にならない場合に、@c
393 この構文を使用することができます。@c
394 暗黙的に作成されるボイスには、それらがコードの中で現れる順番に従って、@c
395 @code{\voiceOne} ... @code{\voiceFour} コマンドと同じ設定が与えられます。
396
397 以下の例では、真ん中のボイスは上向きの符幹を持ちます。@c
398 そのため、それを 3 番目に置いて、望みどおりに上向きの符幹を持つボイス 3 に@c
399 しています。@c
400 休符が 2 重に譜刻されることを避けるために、空白休符を使用しています。
401
402 @lilypond[quote,relative=3,verbatim]
403 <<
404   { r8 g g  g g f16 ees f8 d }
405   \\
406   { ees,8 r ees r d r d r }
407   \\
408   { d'8 s c s bes s a s }
409 >>
410 @end lilypond
411
412 簡単なことですが、@rlearning{コンテキストとエングラーバ} と
413 @rlearning{ボイスを明示的にインスタンス化する} で説明されているように、@c
414 明示的に @code{Voice} コンテキストを作成しておくと賢明です。
415
416 @strong{@i{ボイスの順序}}
417
418 入力ファイルの中にある複数のボイスを譜刻する時、以下の順序で譜刻されます:
419
420 @example
421 ボイス 1: 最上段
422 ボイス 2: 最下段
423 ボイス 3: 上から 2 番目
424 ボイス 4: 下から 2 番目
425 ボイス 5: 上から 3 番目
426 ボイス 6: 下から 3 番目
427 etc.
428 @end example
429
430 これは直感に反するように見えるかもしれませんが、@c
431 自動レイアウト処理をシンプルにできます。@c
432 奇数番号のボイスには上向きの符幹が与えられ、@c
433 偶数番号のボイスには下向きの符幹が与えられるということに注意してください:
434
435 @c KEEP LY
436 @lilypond[quote,verbatim]
437 \new Staff <<
438   \time 2/4
439   { f''2 }  % 1: 最上段
440   \\
441   { c'2  }  % 2: 最下段
442   \\
443   { d''2 }  % 3: 上から 2 番
444   \\
445   { e'2  }  % 4: 下から 2 番
446   \\
447   { b'2  }  % 5: 上から 2 番
448   \\
449   { g'2  }  % 6: 下から 3 番
450 >>
451 @end lilypond
452
453 @strong{@i{同一のリズム}}
454
455 同じリズムを持ち、並行して進行する音楽を譜刻するという特殊なケースでは、@c
456 並行する音楽を単一の @code{Voice} の中に組み込み、@c
457 それにより和音を形成することができます。@c
458 これを実現するには、並行する音楽を明示的にインスタンス化されたボイス内の@c
459 同時進行音楽構造の中に置きます:
460
461 @lilypond[quote,relative=2,verbatim]
462 \new Voice <<
463   { e4 f8 d e16 f g8 d4 }
464   { c4 d8 b c16 d e8 b4 }
465 >>
466 @end lilypond
467
468 この手法では、音楽が同じリズムを持たない場合に、@c
469 おかしな連桁と警告を生じます。
470
471
472 @predefined
473 @code{\voiceOne},
474 @code{\voiceTwo},
475 @code{\voiceThree},
476 @code{\voiceFour},
477 @code{\oneVoice}
478 @endpredefined
479
480
481 @seealso
482 学習マニュアル:
483 @rlearning{音楽を保持するボイス},
484 @rlearning{ボイスを明示的にインスタンス化する}
485
486 記譜法リファレンス:
487 @ref{Percussion staves},
488 @ref{不可視の休符},
489 @ref{Stems}
490
491 コード断片集:
492 @rlsr{Simultaneous notes}
493
494
495 @node ボイス スタイル
496 @unnumberedsubsubsec ボイス スタイル
497 @translationof Voice styles
498
499 @cindex voice styles (ボイス スタイル)
500 @cindex styles, voice (ボイス スタイル)
501 @cindex coloring voices (ボイスに色を付ける)
502 @funindex \voiceOneStyle
503 @funindex \voiceTwoStyle
504 @funindex \voiceThreeStyle
505 @funindex \voiceFourStyle
506 @funindex \voiceNeutralStyle
507
508 ボイス毎に異なる色と形を与えて、容易に見分けられるようにすることができます:
509
510 @lilypond[quote,relative=2,verbatim]
511 <<
512   { \voiceOneStyle d4 c2 b4 }
513   \\
514   { \voiceTwoStyle e,2 e }
515   \\
516   { \voiceThreeStyle b2. c4 }
517   \\
518   { \voiceFourStyle g'2 g }
519 >>
520 @end lilypond
521
522 @code{\voiceNeutralstyle} コマンドは標準の体裁に戻すために使用されます。
523
524
525 @predefined
526 @code{\voiceOneStyle},
527 @code{\voiceTwoStyle},
528 @code{\voiceThreeStyle},
529 @code{\voiceFourStyle},
530 @code{\voiceNeutralStyle}
531 @endpredefined
532
533
534 @seealso
535 学習マニュアル:
536 @rlearning{私はボイスを聴いている},
537 @rlearning{その他の情報源}
538
539 コード断片集:
540 @rlsr{Simultaneous notes}
541
542
543 @node 衝突の解決
544 @unnumberedsubsubsec 衝突の解決
545 @translationof Collision resolution
546
547 @cindex merging notes (音符に余白を設ける)
548 @cindex note collisions (音符の衝突)
549 @cindex collisions (衝突)
550 @cindex shift note (音符のシフト)
551 @cindex multiple voices
552 @cindex voices, multiple (複数のボイス)
553 @cindex polyphonic music (多声の音楽)
554 @cindex shifting voices (ボイスをずらす)
555 @cindex voices, multiple (複数のボイス)
556 @cindex shift rest, automatic (自動的な休符のシフト)
557 @funindex \shiftOn
558 @funindex shiftOn
559 @funindex \shiftOnn
560 @funindex shiftOnn
561 @funindex \shiftOnnn
562 @funindex shiftOnnn
563 @funindex \shiftOff
564 @funindex shiftOff
565 @funindex \mergeDifferentlyDottedOn
566 @funindex mergeDifferentlyDottedOn
567 @funindex \mergeDifferentlyDottedOff
568 @funindex mergeDifferentlyDottedOff
569 @funindex \mergeDifferentlyHeadedOn
570 @funindex mergeDifferentlyHeadedOn
571 @funindex \mergeDifferentlyHeadedOff
572 @funindex mergeDifferentlyHeadedOff
573
574 同じピッチ、同じ符頭を持ち、符幹の方向が逆で異なるボイスの中にある符頭は@c
575 自動的に 1 つの符頭にまとめられます -- マージされます。@c
576 しかしながら、音符の符頭が異なっていたり、符幹の方向が同じである場合は@c
577 マージされません。@c
578 異なるボイスの中にあり、符幹の方向が逆の休符は垂直方向にずらされます。@c
579 以下の例は 3 つの異なる状態を示しています
580 -- 第 1 小節の 1, 3 拍目、それに第 2 小節の 1 拍目で自動マージが失敗しています。
581
582 @lilypond[quote,verbatim,relative=2]
583 <<
584   {
585     c8 d e d c d c4
586     g'2 fis
587   } \\ {
588     c2 c8. b16 c4
589     e,2 r
590   } \\ {
591     \oneVoice
592     s1
593     e8 a b c d2
594   }
595 >>
596 @end lilypond
597
598 以下に示すように、異なる符頭を持つ音符をマージすることができます
599 -- 例外として、半音符と 4 分音符のマージはできません。@c
600 第 1 小節の 1 拍目の符頭がマージされました:
601
602 @lilypond[quote,verbatim,relative=2]
603 <<
604   {
605     \mergeDifferentlyHeadedOn
606     c8 d e d c d c4
607     g'2 fis
608   } \\ {
609     c2 c8. b16 c4
610     e,2 r
611   } \\ {
612     \oneVoice
613     s1
614     e8 a b c d2
615   }
616 >>
617 @end lilypond
618
619 第 1 小節の 3 拍目のように異なる付点を持つ符頭もマージすることができます:
620
621 @lilypond[quote,relative=2,verbatim]
622 <<
623   {
624     \mergeDifferentlyHeadedOn
625     \mergeDifferentlyDottedOn
626     c8 d e d c d c4
627     g'2 fis
628   } \\ {
629     c2 c8. b16 c4
630     e,2 r
631   } \\ {
632     \oneVoice
633     s1
634     e8 a b c d2
635   }
636 >>
637 @end lilypond
638
639
640 第 2 小節の最初の版音符と 8 分音符は正しくマージされていません。@c
641 なぜなら 3 つ以上の音符が同じ列に並ぶ場合、@c
642 自動マージは正しく機能できないからです。@c
643 今回のケースでは、マージされた符頭が間違っています。@c
644 マージが正しい符頭を選択できるようにするため、@c
645 マージすべきでない符頭に @code{\shift} を適用する必要があります。@c
646 ここでは、@code{\shiftOn} を適用することで、@c
647 最上段にある @notation{g} を列から外し、@c
648 @code{\mergeDifferentlyHeadedOn} を正しく機能させています。
649
650 @lilypond[quote,relative=2,verbatim]
651 <<
652   {
653     \mergeDifferentlyHeadedOn
654     \mergeDifferentlyDottedOn
655     c8 d e d c d c4
656     \shiftOn
657     g'2 fis
658   } \\ {
659     c2 c8. b16 c4
660     e,2 r
661   } \\ {
662     \oneVoice
663     s1
664     e8 a b c d2
665   }
666 >>
667 @end lilypond
668
669 @code{\shiftOn} コマンドは、ボイスの中にある音符がずれることを許可します
670 (強制はしません)。@c
671 @code{\shiftOn} がボイスに適用されると、そのボイスの中にある音符あるいは和音は、@c
672 同じ向きの符幹を持つ他のボイスと符幹が衝突する場合にのみ、ずらされます。@c
673 @code{\shiftOff} コマンドは、適用された時点から、@c
674 このタイプの音符の移動を禁止します。
675
676 デフォルトでは、@c
677 外側のボイス (通常はボイス 1 と 2) には @code{\shiftOff} が指定されていて、@c
678 内側のボイス (ボイス 3 以上) には @code{\shiftOn} が指定されています。@c
679 音符をずらす場合、上向きの符幹を持つボイス (奇数番号のボイス) は右側にずらされ、@c
680 下向きの符幹を持つボイス (偶数番号のボイス) は左側にずらされます。
681
682 簡略化された多声表記が内部的にどのように展開されるかをお見せするための@c
683 例を挙げます。
684
685 @warning{3 つ以上のボイスがある場合、@c
686 入力ファイルでのボイスの垂直方向の順序は、@c
687 譜上でのボイスの垂直方向の順序と同じにすべきではありません!}
688
689 @c KEEP LY
690 @lilypond[quote,verbatim]
691 \new Staff \relative c'' {
692   %% 簡略化された入力
693   <<
694     { f2  }  % 1: 最上段
695     \\
696     { g,2 }  % 2: 最下段
697     \\
698     { d'2 }  % 3: 真ん中の上側
699     \\
700     { b2  }  % 4: 真ん中の下側
701   >>
702   %% 上記の内部的な展開
703   <<
704     \new Voice = "1" { \voiceOne   \shiftOff f'2 }
705     \new Voice = "2" { \voiceTwo   \shiftOff g,2 }
706     \new Voice = "3" { \voiceThree \shiftOn  d'2 } % shifts right
707     \new Voice = "4" { \voiceFour  \shiftOn  b2  } % shifts left
708   >>
709 }
710 @end lilypond
711
712 さらに 2 つのコマンド -- @code{\shiftOnn} と @code{\shiftOnnn} -- は、@c
713 複雑な状況で衝突を解決するために一時的に指定されるさらに大きなずれを提供します。@c
714 @rlearning{実際の音楽からの例} を参照してください。
715
716 音符は符幹の向きが反対である場合
717 (例えば、デフォルトのボイス 1 と 2 である場合や、@c
718 明示的に符幹の向きが反対になるよう指定されている場合)
719 にのみマージされます。
720
721
722
723 @predefined
724 @code{\mergeDifferentlyDottedOn},
725 @code{\mergeDifferentlyDottedOff},
726 @code{\mergeDifferentlyHeadedOn},
727 @code{\mergeDifferentlyHeadedOff}
728
729 @code{\shiftOn},
730 @code{\shiftOnn},
731 @code{\shiftOnnn},
732 @code{\shiftOff}
733 @endpredefined
734
735
736 @snippets
737
738 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
739 {additional-voices-to-avoid-collisions.ly}
740
741 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
742 {forcing-horizontal-shift-of-notes.ly}
743
744
745 @seealso
746 音楽用語集:
747 @rglos{polyphony}
748
749 学習マニュアル:
750 @rlearning{同時に演奏する複数の音符},
751 @rlearning{音楽を保持するボイス},
752 @rlearning{オブジェクトの衝突}
753
754 コード断片集:
755 @rlsr{Simultaneous notes}
756
757 内部リファレンス:
758 @rinternals{NoteColumn},
759 @rinternals{NoteCollision},
760 @rinternals{RestCollision}
761
762
763 @ignore
764 @knownissues
765 上向きの符幹を持つ 8 分音符やそれよりも短い音符と下向きの符幹を持つ@c
766 半音符に対して @code{\mergeDifferentlyHeadedOn} を使用した場合、@c
767 8 分音符の符幹のオフセットはわずかに正しくなりません。@c
768 なぜなら、半音符の符頭シンボルと幅が異なるからです。
769
770 @c TODO investigate! Sometimes it works, sometimes not. --FV
771 The requirements for successfully merging different note heads that
772 are at the same time differently dotted are not clear.
773
774 同じ和音の中で同じ音符が異なる臨時記号を持つ場合、その和音の衝突回避は@c
775 サポートされません。@c
776 そのような場合、異名同音 (エンハーモニック) に書き換えるか、@c
777 クラスタという特殊な記譜法 (@ref{クラスタ} を参照してください)
778 を用いることを推奨します。
779 @end ignore
780
781
782 @node 自動パート結合
783 @unnumberedsubsubsec 自動パート結合
784 @translationof Automatic part combining
785
786 @cindex automatic part combining (自動パート結合)
787 @cindex part combiner (パート結合)
788 @cindex combining parts (パート結合)
789 @cindex a due part (二重奏パート)
790 @cindex solo part (ソロ パート)
791 @funindex \partcombine
792 @funindex partcombine
793
794 自動パート結合は 1 つの譜上にある 2 つのパートを 1 つに結合するために@c
795 使用されます。@c
796 これはオーケストラ譜を譜刻することを目的としています。@c
797 ある範囲で 2 つのパートが同一である場合、1 つだけが譜刻されます。@c
798 2 つのパートが異なる箇所では別々のボイスとして譜刻され、@c
799 符幹の向きは自動的にセットされます。@c
800 さらに、デフォルトで、ソロ パートと @notation{二重奏 (due)} パートが識別され、@c
801 デフォルトでマークを付けられます。
802
803 パート結合の構文は以下の通りです:
804
805 @example
806 \partcombine @var{musicexpr1} @var{musicexpr2}
807 @end example
808
809 以下の例はパート結合の基本的な機能を示しています:
810 パートを 1 つの譜に配置し、符幹の向きと多声をセットします。@c
811 個々のパートと結合譜で同じ変数が使用されています。
812
813 @lilypond[quote,verbatim]
814 instrumentOne = \relative c' {
815   c4 d e f
816   R1
817   d'4 c b a
818   b4 g2 f4
819   e1
820 }
821
822 instrumentTwo = \relative g' {
823   R1
824   g4 a b c
825   d c b a
826   g f( e) d
827   e1
828 }
829
830 <<
831   \new Staff \instrumentOne
832   \new Staff \instrumentTwo
833   \new Staff \partcombine \instrumentOne \instrumentTwo
834 >>
835 @end lilypond
836
837 第 3 小節の音符は、両方のパートで指定されているにもかかわらず、@c
838 1 パート分だけ譜刻されています。@c
839 符幹、スラーそれにタイの向きは、ソロなのかあるいは斉奏なのかによって、@c
840 自動的に設定されます。@c
841 多声が必要になる場合、第 1 パート (@code{one} と呼ばれるコンテキストを持ちます)
842 は常に上向きの符幹を持ち、@c
843 一方、第 2 パート (@code{two} と呼ばれるコンテキストを持ちます) は@c
844 常に下向きの符幹を持ちます。@c
845 ソロの場合、第 1 パートと第 2 パートにはそれぞれ @q{Solo} と @q{Solo II}
846 というマークが付けられます。@c
847 斉奏 (@notation{二重奏}) パートには、デフォルトで、テキスト @qq{a2} という@c
848 マークが付けられます。
849
850 @code{\partcombine} の引数は 2 つとも @code{Voice} コンテキストとして@c
851 解釈されます。@c
852 相対オクターブを用いる場合、@code{\relative} を両方の音楽表記に@c
853 対して指定すべきです。@c
854 すなわち、
855
856 @example
857 \partcombine
858   \relative @dots{} @var{musicexpr1}
859   \relative @dots{} @var{musicexpr2}
860 @end example
861
862 @noindent
863 @code{\partcombine} の外側にある @code{\relative} セクションは @var{musicexpr1}
864 と @var{musicexpr2} のピッチには影響を与えません。
865
866 プロの楽譜では、@c
867 1, 2 の音符が同時進行していて容易にユニゾンとして譜刻できる場合であっても、
868 長い間ボイスが分かれていることがしばしばあります。@c
869 @c その場合、音符を結合させて和音にしたり、@c
870 @c ボイスの 1 つをソロとして見せることは望ましくありません
871 @c 未訳
872 Combining notes into a chord, or showing one voice as solo
873 is therefore not ideal as the @code{\partcombine} function considers
874 each note separately.
875 そのため、以下のコマンドで @code{\partcombine} 関数を@c
876 オーバライドすることができます:
877
878 @itemize
879 @item
880 @code{\partcombineApart}, @code{\partcombineApartOnce}:
881 音符を結合させて和音やユニゾンにすることができる場合であっても、@c
882 音符を 2 つの別個のボイスに分けて譜刻します。
883
884 @item
885 @code{\partcombineChords}, @code{\partcombineChordsOnce}:
886 音符を結合させて、和音として譜刻します。
887
888 @item
889 @code{\partcombineUnisono}, @code{\partcombineUnisonoOnce}:
890 2 つのボイスをユニゾンとして譜刻します。
891
892 @item
893 @code{\partcombineSoloI}, @code{\partcombineSoloIOnce}:
894 ボイス 1 だけを譜刻して、ソロのマークを付けます。
895
896 @item
897 @code{\partcombineSoloII}, @code{\partcombineSoloIIOnce}:
898 ボイス 2 だけを譜刻して、ソロのマークを付けます。
899
900 @item
901 @code{\partcombineAutomatic}, @code{\partcombineAutomaticOnce}:
902 上記の特殊コマンドの効果を終わらせ、デフォルトのパート結合機能に戻します。
903
904 @end itemize
905
906 終わりが @code{...Once} のコマンドはすべて、その後の音符にのみ適用されます。
907
908 @lilypond[quote,verbatim]
909 instrumentOne = \relative c' {
910   \partcombineApart c2^"apart" e |
911   \partcombineAutomatic e^"auto" e |
912   \partcombineChords e'^"chord" e |
913   \partcombineAutomatic c^"auto" c |
914   \partcombineApart c^"apart" \partcombineChordsOnce e^"chord once" |
915   c c |
916 }
917 instrumentTwo = \relative c' {
918   c2 c |
919   e2 e |
920   a,2 c |
921   c2 c' |
922   c2 c |
923   c2 c |
924 }
925
926 <<
927   \new Staff { \instrumentOne }
928   \new Staff { \instrumentTwo }
929   \new Staff { \partcombine \instrumentOne \instrumentTwo }
930 >>
931 @end lilypond
932
933
934 @snippets
935
936 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
937 {combining-two-parts-on-the-same-staff.ly}
938
939 @lilypondfile[verbatim,lilyquote,texidoc,doctitle]
940 {changing-partcombine-texts.ly}
941
942
943 @seealso
944 音楽用語集:
945 @rglos{a due},
946 @rglos{part}
947
948 記譜法リファレンス:
949 @ref{Writing parts}
950
951 コード断片集:
952 @rlsr{Simultaneous notes}
953
954 内部リファレンス:
955 @rinternals{PartCombineMusic},
956 @rinternals{Voice}
957
958
959 @knownissues
960
961 @code{\partcombine} が受け取れるボイスは 2 つだけです。
962
963 When @code{printPartCombineTexts} is set, if the two voices play
964 the same notes on and off, the part combiner may typeset @code{a2}
965 more than once in a measure.
966
967 @code{\partcombine} を @code{\times} の中に置くことはできません。
968
969 @code{\partcombine} を @code{\relative} の中に置くことはできません。
970
971 内部的には、@code{\partcombine} は 2 つの引数を @code{Voice} として解釈し、@c
972 2 つのパートを結合することができるかどうかを決定します。@c
973 2 つのパートが異なる演奏時間を持つ場合、@c
974 それらを結合させることはできず、@c
975 それぞれに @code{one}, @code{two} という名前が与えられます。@c
976 @c 未訳
977 Consequently, if the arguments switch to
978 differently named @rinternals{Voice} contexts, the events in those will
979 be ignored.
980 同様に、パート結合は歌詞に対して機能するようには設計されていません。@c
981 ボイスの 1 つが、歌詞を持つために明示的に名前を付けられた場合、@c
982 パート結合は機能しなくなります。
983
984 @code{\partcombine} は @code{\partcombine} の開始後の音符だけを観察します。@c
985 その前に開始した音符が演奏中であるかどうかを検出することはできません。@c
986 これはさまざまな問題を引き起こします。
987
988
989 @c ここから L954
990 @node 音楽を並列に記述する
991 @unnumberedsubsubsec 音楽を並列に記述する
992 @translationof Writing music in parallel
993
994 @cindex writing music in parallel (音楽を並列に記述する)
995 @cindex interleaved music (間奏)
996 @cindex parallel music (並列な音楽)
997 @funindex \parallelMusic
998 @funindex parallelMusic
999
1000 複数のパートを持つ音楽を入力コードの途中に挿入することができます。@c
1001 関数 @code{\parallelMusic} は、@c
1002 作成する変数名をいくつか持つリストと音楽表記を受け付けます。@c
1003 各小節ごとの音楽表記は各変数の値となり、@c
1004 後で音楽を譜刻するために使用することができます。
1005
1006 @warning{小節チェック @code{|} を使用する必要があり、@c
1007 各小節は同じ長さでなければなりません。}
1008
1009 @lilypond[quote,verbatim]
1010 \parallelMusic #'(voiceA voiceB voiceC) {
1011   % Bar 1
1012   r8 g'16 c'' e'' g' c'' e'' r8 g'16 c'' e'' g' c'' e'' |
1013   r16 e'8.~   e'4            r16 e'8.~   e'4            |
1014   c'2                        c'2                        |
1015
1016   % Bar 2
1017   r8 a'16 d'' f'' a' d'' f'' r8 a'16 d'' f'' a' d'' f'' |
1018   r16 d'8.~   d'4            r16 d'8.~   d'4            |
1019   c'2                        c'2                        |
1020
1021 }
1022 \new StaffGroup <<
1023   \new Staff << \voiceA \\ \voiceB >>
1024   \new Staff { \clef bass \voiceC }
1025 >>
1026 @end lilypond
1027
1028 相対モードを使用することができます。@c
1029 @code{\relative} コマンドを @code{\parallelMusic} 自体の中では@c
1030 使用しないということに注意してください。@c
1031 音符が前の音符と相対関係になるのはボイスの中であり、入力の中ではありません --
1032 言い換えると、@code{voiceA} の相対音符は @code{voiceB} の音符を無視します。
1033
1034 @lilypond[quote,verbatim]
1035 \parallelMusic #'(voiceA voiceB voiceC) {
1036   % Bar 1
1037   r8 g16 c e g, c e r8 g,16 c e g, c e  |
1038   r16 e8.~ e4       r16 e8.~  e4        |
1039   c2                c                   |
1040
1041   % Bar 2
1042   r8 a,16 d f a, d f r8 a,16 d f a, d f |
1043   r16 d8.~  d4       r16 d8.~  d4       |
1044   c2                 c                  |
1045
1046  }
1047 \new StaffGroup <<
1048   \new Staff << \relative c'' \voiceA \\ \relative c' \voiceB >>
1049   \new Staff \relative c' { \clef bass \voiceC }
1050 >>
1051 @end lilypond
1052
1053 これはピアノ譜で非常に良く機能します。@c
1054 以下の例は、4 つの連続する小節を 4 つの変数に割り当てています:
1055
1056 @lilypond[quote,verbatim]
1057 global = {
1058   \key g \major
1059   \time 2/4
1060 }
1061
1062 \parallelMusic #'(voiceA voiceB voiceC voiceD) {
1063   % Bar 1
1064   a8    b     c   d     |
1065   d4          e         |
1066   c16 d e fis d e fis g |
1067   a4          a         |
1068
1069   % Bar 2
1070   e8      fis  g     a   |
1071   fis4         g         |
1072   e16 fis g  a fis g a b |
1073   a4           a         |
1074
1075   % Bar 3 ...
1076 }
1077
1078 \score {
1079   \new PianoStaff <<
1080      \new Staff {
1081        \global
1082        <<
1083          \relative c'' \voiceA
1084          \\
1085          \relative c'  \voiceB
1086        >>
1087      }
1088      \new Staff {
1089        \global \clef bass
1090        <<
1091          \relative c \voiceC
1092          \\
1093          \relative c \voiceD
1094        >>
1095      }
1096   >>
1097 }
1098 @end lilypond
1099
1100
1101 @seealso
1102 学習マニュアル:
1103 @rlearning{変数を用いて楽曲を編成する}
1104
1105 コード断片集:
1106 @rlsr{Simultaneous notes}