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