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