]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/ja/notation/staff.itely
Imported Upstream version 2.19.45
[lilypond.git] / Documentation / ja / notation / staff.itely
1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
2 @ignore
3     Translation of GIT committish: fabcd22c8f88ea9a87241597f1e48c0a9adbfc6e
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.21"
10
11
12 @c Translators: Yoshiki Sawada
13 @c Translation status: post-GDP
14
15
16 @node 譜の記譜法
17 @section 譜の記譜法
18 @translationof Staff notation
19
20 @c The line width is a bit of a hack to allow space for the
21 @c  instrument names.
22 @lilypondfile[quote,ragged-right,line-width=14.5\cm,staffsize=16]{staff-headword.ly}
23
24 このセクションでは、譜の見た目を変える方法、複数の譜を持つ楽譜を譜刻する方法、@c
25 それに、テンポ指示と演奏指示楽節の音符を譜に付け加える方法について説明します。
26
27 @menu
28 * 譜を表示する::
29 * 個々の譜を変更する::
30 * パートを記述する::
31 @end menu
32
33
34 @node 譜を表示する
35 @subsection 譜を表示する
36 @translationof Displaying staves
37
38 このセクションでは、譜を作成する方法と、@c
39 譜をグループ化する方法をいくつか説明します。
40
41 @menu
42 * 新たに譜をインスタンス化する::
43 * 譜をグループ化する::
44 * ネストされた譜グループ::
45 * Separating systems::
46 @end menu
47
48
49 @node 新たに譜をインスタンス化する
50 @unnumberedsubsubsec 新たに譜をインスタンス化する
51 @translationof Instantiating new staves
52
53 @cindex new staff (新しい譜)
54 @cindex staff initiation (譜の開始)
55 @cindex staff instantiation (譜のインスタンス化)
56 @cindex staff, new (新しい譜)
57 @cindex staff, single (単一の譜)
58 @cindex staff, drum (ドラム譜)
59 @cindex staff, percussion (打楽器譜)
60 @cindex drum staff (ドラム譜)
61 @cindex percussion staff (打楽器譜)
62 @cindex Gregorian transcription staff (グレゴリア編曲譜)
63 @cindex rhythmic staff (リズム譜)
64 @cindex tabstaff (タブ譜)
65 @cindex tablature  (タブ譜)
66
67 @funindex \drummode
68 @funindex DrumStaff
69 @funindex RhythmicStaff
70 @funindex TabStaff
71 @funindex MensuralStaff
72 @funindex VaticanaStaff
73 @funindex GregorianTranscriptionStaff
74
75 @notation{stave: 譜} (@notation{staff}: 譜 (表) の単称) は
76 @code{\new} コマンドや @code{\context} コマンドで作成されます。@c
77 詳細は @ref{Creating and referencing contexts} を参照してください。
78
79 基本的な譜コンテキストは @code{Staff} です:
80
81 @lilypond[verbatim,quote]
82 \new Staff \relative { c''4 d e f }
83 @end lilypond
84
85 @code{DrumStaff} コンテキストは、一般的なドラム セットのための 5 線譜を@c
86 作成します。@c
87 各楽器は異なるシンボルで示されます。@c
88 @code{\drummode} コマンドの後に続けて、楽器をドラム モードで入力します。@c
89 各楽器は名前によって指定されます。@c
90 詳細は @ref{Percussion staves} を参照してください。
91
92 @lilypond[verbatim,quote]
93 \new DrumStaff {
94   \drummode { cymc hh ss tomh }
95 }
96 @end lilypond
97
98 @code{RhythmicStaff} は、入力のリズム価だけを表示する単線譜を作成します。@c
99 (ピッチは無視されますが) 演奏時間が保持されます。@c
100 詳細は @ref{Showing melody rhythms} を参照してください。
101
102 @lilypond[verbatim,quote]
103 \new RhythmicStaff { c4 d e f }
104 @end lilypond
105
106 @code{TabStaff} は、標準のギター チューニングの 6 弦のタブ譜を作成します。@c
107 詳細は @ref{Default tablatures} を参照してください。
108
109 @lilypond[verbatim,quote]
110 \new TabStaff \relative { c''4 d e f }
111 @end lilypond
112
113 古代音楽の記譜法のために 2 つの譜コンテキストが用意されています:
114 @code{MensuralStaff} と @code{VaticanaStaff} です。@c
115 これらのことは @ref{Pre-defined contexts} で説明されています。
116
117 @code{GregorianTranscriptionStaff} コンテキストは、@c
118 現代グレゴリア聖歌を記譜するための譜を作成します。@c
119 これは小節線を譜刻しません。
120
121 @lilypond[verbatim,quote]
122 \new GregorianTranscriptionStaff \relative { c''4 d e f e d }
123 @end lilypond
124
125 新たに単一譜コンテキストを定義する場合があります。@c
126 詳細は @ref{Defining new contexts} を参照してください。
127
128 @seealso
129 音楽用語集:
130 @rglos{staff},
131 @rglos{staves}
132
133 記譜法リファレンス:
134 @ref{Creating and referencing contexts},
135 @ref{Percussion staves},
136 @ref{Showing melody rhythms},
137 @ref{Default tablatures},
138 @ref{Pre-defined contexts},
139 @ref{Staff symbol},
140 @ref{Gregorian chant contexts},
141 @ref{Mensural contexts},
142 @ref{Defining new contexts}
143
144 コード断片集:
145 @rlsr{Staff notation}
146
147 内部リファレンス:
148 @rinternals{Staff},
149 @rinternals{DrumStaff},
150 @rinternals{GregorianTranscriptionStaff},
151 @rinternals{RhythmicStaff},
152 @rinternals{TabStaff},
153 @rinternals{MensuralStaff},
154 @rinternals{VaticanaStaff},
155 @rinternals{StaffSymbol}
156
157
158 @node 譜をグループ化する
159 @unnumberedsubsubsec 譜をグループ化する
160 @translationof Grouping staves
161
162 @cindex start of system (システムの開始)
163 @cindex staff, multiple (複数の譜)
164 @cindex staves, multiple (複数の譜)
165 @cindex system start delimiters (システム開始の境界線)
166 @cindex bracket, vertical (垂直の角括弧)
167 @cindex brace, vertical (垂直の波括弧)
168 @cindex choir staff (合唱譜)
169 @cindex grand staff (グランド譜)
170 @cindex piano staff (ピアノ譜)
171 @cindex staff group (譜グループ)
172 @cindex staff, choir (合唱譜)
173 @cindex staff, piano (ピアノ譜)
174 @cindex staff, grand (グランド譜)
175 @cindex system (システム)
176
177 複数の譜からなるシステムを形成するために譜をグループ化する@c
178 さまざまなコンテキストが存在します。@c
179 グループ化を行うコンテキストはそれぞれにシステム開始境界線のスタイルと@c
180 小節線の振る舞いを設定します。
181
182 コンテキストが指定されていない場合、デフォルトのプロパティが使用されます:
183 グループは垂直の線で始まり、小節線はつながりません。
184
185 @lilypond[verbatim,quote]
186 <<
187   \new Staff \relative { c''1 c }
188   \new Staff \relative { c''1 c }
189 >>
190 @end lilypond
191
192 @code{StaffGroup} コンテキストでは、グループは角括弧で始まり、@c
193 小節線はすべての譜を貫いて刻譜されます。
194
195 @lilypond[verbatim,quote]
196 \new StaffGroup <<
197   \new Staff \relative { c''1 c }
198   \new Staff \relative { c''1 c }
199 >>
200 @end lilypond
201
202 @code{ChoirStaff} では、グループは角括弧で始まりますが、小節線はつながりません。
203
204 @lilypond[verbatim,quote]
205 \new ChoirStaff <<
206   \new Staff \relative { c''1 c }
207   \new Staff \relative { c''1 c }
208 >>
209 @end lilypond
210
211 @code{GrandStaff} では、グループは波括弧で始まり、小節線はすべての譜を貫きます。
212
213 @lilypond[verbatim,quote]
214 \new GrandStaff <<
215   \new Staff \relative { c''1 c }
216   \new Staff \relative { c''1 c }
217 >>
218 @end lilypond
219
220 @code{PianoStaff} は @code{GrandStaff} と同一ですが、@c
221 例外として楽器名を刻譜することができます。@c
222 詳細は @ref{Instrument names} を参照してください。
223
224 @lilypond[verbatim,quote]
225 \new PianoStaff <<
226   \set PianoStaff.instrumentName = #"Piano"
227   \new Staff \relative { c''1 c }
228   \new Staff \relative { \clef bass c1 c }
229 >>
230 @end lilypond
231
232 各譜グループ化コンテキストはプロパティ @code{systemStartDelimiter} を@c
233 以下の値の 1 つにセットします:
234 @code{SystemStartBar}, @code{SystemStartBrace} あるいは
235 @code{SystemStartBracket}。@c
236 4 つ目の境界線 -- @code{SystemStartSquare} も利用可能ですが、@c
237 これは明示的に指定する必要があります。
238
239 新たな譜グループ化コンテキストを定義することもできます。@c
240 詳細は @ref{Defining new contexts} を参照してください。
241
242
243 @snippets
244
245 @lilypondfile[verbatim,quote,texidoc,doctitle]
246 {use-square-bracket-at-the-start-of-a-staff-group.ly}
247
248 @lilypondfile[verbatim,quote,texidoc,doctitle]
249 {display-bracket-with-only-one-staff-in-a-system.ly}
250
251 @c 未訳
252 @cindex mensurstriche layout
253 @cindex renaissance music)
254 @cindex transcription of mensural music
255 @cindex mensural music, transcription of
256
257 @lilypondfile[verbatim,quote,texidoc,doctitle]
258 {mensurstriche-layout-bar-lines-between-the-staves.ly}
259
260 @seealso
261 音楽用語集:
262 @rglos{brace},
263 @rglos{bracket},
264 @rglos{grand staff}
265
266 記譜法リファレンス:
267 @ref{Instrument names},
268 @ref{Defining new contexts}
269
270 コード断片集:
271 @rlsr{Staff notation}
272
273 内部リファレンス:
274 @rinternals{Staff},
275 @rinternals{StaffGroup},
276 @rinternals{ChoirStaff},
277 @rinternals{GrandStaff},
278 @rinternals{PianoStaff},
279 @rinternals{SystemStartBar},
280 @rinternals{SystemStartBrace},
281 @rinternals{SystemStartBracket},
282 @rinternals{SystemStartSquare}
283
284 @knownissues
285 デフォルトでは @code{PianoStaff} は @code{ChordNames} を受け付けません。
286
287
288 @node ネストされた譜グループ
289 @unnumberedsubsubsec ネストされた譜グループ
290 @translationof Nested staff groups
291
292 @cindex staff, nested (ネストされた譜)
293 @cindex staves, nested (ネストされた譜)
294 @cindex nesting of staves (譜をネストする)
295 @cindex system start delimiters, nested (ネストされたシステムの開始境界線)
296 @cindex nested staff brackets (ネストされた譜の角括弧)
297 @cindex brackets, nesting of (角括弧をネストする)
298 @cindex braces, nesting of (波括弧をネストする)
299
300 譜グループ化コンテキストは任意の深さにネストすることができます。@c
301 そうした場合、それぞれの子コンテキストは、@c
302 親グループの角括弧に隣接して新しい角括弧を作成します。
303
304 @lilypond[verbatim,quote,relative=2]@lilypond[verbatim,quote,relative=2]
305 \new StaffGroup <<
306   \new Staff { c2 c | c2 c }
307   \new StaffGroup <<
308     \new Staff { g2 g | g2 g }
309     \new StaffGroup \with {
310       systemStartDelimiter = #'SystemStartSquare
311     }
312     <<
313       \new Staff { e2 e | e2 e }
314       \new Staff { c2 c | c2 c }
315     >>
316   >>
317 >>
318 @end lilypond
319
320 新たにネストされた譜グループ化コンテキストを定義することができます。@c
321 詳細は @ref{Defining new contexts} を参照してください。
322
323
324 @snippets
325
326 @lilypondfile[verbatim,quote,texidoc,doctitle]
327 {nesting-staves.ly}
328
329 @seealso
330 記譜法リファレンス:
331 @ref{Grouping staves},
332 @ref{Instrument names},
333 @ref{Defining new contexts}
334
335 コード断片集:
336 @rlsr{Staff notation}
337
338 内部リファレンス:
339 @rinternals{StaffGroup},
340 @rinternals{ChoirStaff},
341 @rinternals{SystemStartBar},
342 @rinternals{SystemStartBrace},
343 @rinternals{SystemStartBracket},
344 @rinternals{SystemStartSquare}
345
346
347 @c 未訳
348 @node Separating systems
349 @unnumberedsubsubsec Separating systems
350
351 @cindex system separator mark
352
353 If the number of systems per page changes from page to page it is
354 customary to separate the systems by placing a system separator mark
355 between them.  By default the system separator is blank, but can be
356 turned on with a @code{\paper} option.
357
358 @c \book is required here to display the system separator
359 @c ragged-right is required as there are two systems
360 @lilypond[verbatim,quote,ragged-right]
361 \book {
362   \score {
363     \new StaffGroup <<
364       \new Staff {
365         \relative {
366           c''4 c c c
367           \break
368           c4 c c c
369         }
370       }
371       \new Staff {
372         \relative {
373           c''4 c c c
374           \break
375           c4 c c c
376         }
377       }
378     >>
379   }
380   \paper {
381     system-separator-markup = \slashSeparator
382     % following commands are needed only to format this documentation
383     paper-width = 100\mm
384     paper-height = 100\mm
385     tagline = ##f
386   }
387 }
388 @end lilypond
389
390 @seealso
391 記譜法リファレンス:
392 @ref{Page layout}
393
394 コード断片集:
395 @rlsr{Staff notation}.
396
397
398 @node 個々の譜を変更する
399 @subsection 個々の譜を変更する
400 @translationof Modifying single staves
401
402 このセクションでは、譜の属性を変更する方法について説明します:
403 例えば、譜線の本数や譜サイズを変更します。@c
404 譜を開始/終了する方法とオッシア セクションをセットする方法についても記述します。
405
406 @menu
407 * 譜シンボル::
408 * オッシア譜::
409 * 譜を隠す::
410 @end menu
411
412
413 @node 譜シンボル
414 @unnumberedsubsubsec 譜シンボル
415 @translationof Staff symbol
416
417 @cindex staff symbol (譜シンボル)
418 @cindex staff lines, stopping and starting (譜線を停止、開始する)
419 @cindex staff lines, modifying (譜線を変更する)
420 @cindex ledger lines (加線)
421 @cindex ledger lines, internal (内部の加線)
422 @cindex ledger lines, modifying (加線を変更する)
423
424 @funindex \startStaff
425 @funindex \stopStaff
426
427 @code{\stopStaff} コマンドと @code{\startStaff} コマンドを使って、@c
428 楽譜内の任意の場所で譜線を停止あるいは (再) 開始させることができます。
429
430 @lilypond[verbatim,quote]
431 \relative {
432   \stopStaff f''4 d \startStaff g, e
433   f'4 d \stopStaff g, e
434   f'4 d \startStaff g, e
435 }
436 @end lilypond
437 +
438 @predefined
439 @code{\startStaff},
440 @code{\stopStaff}
441 @endpredefined
442
443 @code{StaffSymbol} グラフィカル オブジェクト (加線を含む) に属する譜の線は@c
444 @code{StaffSymbol} プロパティを用いて変更することができます。@c
445 しかしながら、変更は譜が (再) 開始する前に行う必要があります。
446
447 譜線の本数を変更することができます:
448
449 @lilypond[verbatim,quote]
450 \relative {
451   f''4 d \stopStaff
452   \override Staff.StaffSymbol.line-count = #2
453   \startStaff g, e |
454
455   f'4 d \stopStaff
456   \revert Staff.StaffSymbol.line-count
457   \startStaff g, e |
458 }
459 @end lilypond
460
461 各譜線の位置を変更することもできます。@c
462 値の単位は譜線の間隔の @emph{半分} で、@c
463 新しい位置は通常の中央線からの相対位置です。@c
464 1 つの値に対して 1 本の譜線が譜刻されるので、@c
465 1 つのオーバライドで譜線の位置と本数を変更することができます。
466
467 @lilypond[verbatim,quote]
468 \relative {
469   f''4 d \stopStaff
470   \override Staff.StaffSymbol.line-positions = #'(1 3 5 -1 -3)
471   \startStaff g, e |
472   f'4 d \stopStaff
473   \override Staff.StaffSymbol.line-positions = #'(8 6.5 -6 -8 -0.5)
474   \startStaff g, e |
475 }
476 @end lilypond
477
478 新しい譜線に対応して、@c
479 音部記号とミドル C の位置を調節する必要があるかもしれません。@c
480 @ref{Clef} を参照してください。
481
482 譜線の太さを変えることができます。@c
483 デフォルトでは、加線 (訳者注: ledger line, 譜の上下に突き出た符頭と符幹に@c
484 付けられる短い譜線) と符幹の太さも影響を受けます。@c
485
486 @lilypond[verbatim,quote]
487 \new Staff \with {
488   \override StaffSymbol.thickness = #3
489 } \relative {
490   f''4 d g, e
491 }
492 @end lilypond
493
494 しかしながら、加線の太さを譜線の太さから独立して設定することができます。@c
495 2 つの値は譜線の太さと譜線の間隔に掛け算され、@c
496 それらを加算した値が加線の太さになります。
497
498 @lilypond[verbatim,quote]
499 \new Staff \with {
500   \override StaffSymbol.thickness = #2
501   \override StaffSymbol.ledger-line-thickness = #'(0.5 . 0.4)
502 } \relative {
503   f'''4 a, a,, f
504 }
505 @end lilypond
506
507 加線の垂直方向の位置を変更することができます:
508
509 @lilypond[verbatim,quote]
510 \new Staff \with {
511   \override StaffSymbol.ledger-positions = #'(-3 -2 -1 2 5 6)
512 } \relative {
513   f'''4 a, a,, f
514 }
515 @end lilypond
516
517 符頭の位置と加線を持つ他の符頭との関係に応じて、@c
518 符頭の上または下に追加の加線を配置することできます。
519
520 @lilypond[verbatim,quote]
521 \new Staff \with {
522   \override StaffSymbol.ledger-extra = #4
523 } \relative {
524   f'''4 a, d, f,
525 }
526 @end lilypond
527
528 譜の内部に加線を表示させることもできます。@c
529 この場合、譜線のカスタマイズが必要です。@c
530 以下の例は明示的に @code{ledger-position} をセットしない場合とした場合の@c
531 加線のデフォルト位置を示しています。@c
532 以下の例で、@code{StaffSymbol} 全体に対する @code{\override} を元に戻すには@c
533 @code{\stopStaff} を行う必要があります。
534
535 @lilypond[fragment,quote,relative=1]
536 \override Staff.StaffSymbol.line-positions =   #'(-8 0 2 4)
537 d4 e f g
538 \stopStaff
539 \startStaff
540 \override Staff.StaffSymbol.ledger-positions = #'(-8 -6 (-4 -2) 0)
541 d4 e f g
542 @end lilypond
543
544 譜線の間隔を変えることができます。この設定は加線の間隔にも影響を与えます。
545
546 @lilypond[verbatim,quote]
547 \new Staff \with {
548   \override StaffSymbol.staff-space = #1.5
549 } \relative {
550   f'''4 d, g, e,
551 }
552 @end lilypond
553
554 @snippets
555 @lilypondfile[verbatim,quote,texidoc,doctitle]
556 {making-some-staff-lines-thicker-than-the-others.ly}
557
558 @seealso
559 音楽用語集:
560 @rglos{line},
561 @rglos{ledger line},
562 @rglos{staff}
563
564 記譜法リファレンス:
565 @ref{Clef}
566
567 コード断片集:
568 @rlsr{Staff notation}
569
570 内部リファレンス:
571 @rinternals{StaffSymbol},
572 @rinternals{staff-symbol-interface}
573
574
575 @node オッシア譜
576 @unnumberedsubsubsec オッシア譜
577 @translationof Ossia staves
578
579 @c 未訳
580 @cindex staff, Frenched
581 @cindex ossia (オッシア)
582 @c 未訳
583 @cindex Frenched staves
584 @cindex staff, resizing of (譜をリサイズする)
585 @cindex resizing of staves (譜をリサイズする)
586
587 @funindex \startStaff
588 @funindex \stopStaff
589
590 適切な位置で新しく同時進行の譜を作成することによって、@c
591 @notation{オッシア} 譜をセットすることができます:
592
593 @lilypond[verbatim,quote]
594 \new Staff \relative {
595   c''4 b d c
596   <<
597     { c4 b d c }
598     \new Staff { e4 d f e }
599   >>
600   c4 b c2
601 }
602 @end lilypond
603
604 @noindent
605 しかしながら、上の例は通常は望ましいものではありません。@c
606 オリジナルの譜の上にあり、拍子記号や音部記号を持たず、@c
607 小さなサイズのフォントを使用するオッシア譜を作成するには調整が必要です。@c
608 学習マニュアルの @rlearning{Nesting music expressions} に望ましいオッシア譜を@c
609 作成するための方法が記述されています。
610
611 以下の例は、オッシア譜をオリジナルの譜の上に配置するために
612 @code{alignAboveContext} プロパティを用いています。@c
613 この手法は、2, 3 のオッシア譜が必要とされているだけである場合であれば、@c
614 最も適切な方法です。
615
616 @lilypond[verbatim,quote]
617 \new Staff = main \relative {
618   c''4 b d c
619   <<
620     { c4 b d c }
621
622     \new Staff \with {
623       \remove "Time_signature_engraver"
624       alignAboveContext = #"main"
625       fontSize = #-3
626       \override StaffSymbol.staff-space = #(magstep -3)
627       \override StaffSymbol.thickness = #(magstep -3)
628       firstClef = ##f
629     }
630     { e4 d f e }
631   >>
632   c4 b c2
633 }
634 @end lilypond
635
636 多くの別個のオッシア譜が必要である場合、@c
637 ある特有の @emph{コンテキスト ID} を持つ空の @code{Staff} コンテキストを@c
638 作成する方が適切かもしれません:
639 このコンテキストを @emph{呼び出し}、@c
640 オッシア譜が必要とされる場所で @code{\startStaff} と @code{\stopStaff}
641 を用いることでオッシア譜が作成されます。@c
642 この手法の利点は、以下の例よりも長い楽曲であれば、明らかです。
643
644 @lilypond[verbatim,quote,ragged-right]
645 <<
646   \new Staff = ossia \with {
647     \remove "Time_signature_engraver"
648     \hide Clef
649     fontSize = #-3
650     \override StaffSymbol.staff-space = #(magstep -3)
651     \override StaffSymbol.thickness = #(magstep -3)
652   }
653   { \stopStaff s1*6 }
654
655   \new Staff \relative {
656     c'4 b c2
657     <<
658       { e4 f e2 }
659       \context Staff = ossia {
660         \startStaff e4 g8 f e2 \stopStaff
661       }
662     >>
663     g4 a g2 \break
664     c4 b c2
665     <<
666       { g4 a g2 }
667       \context Staff = ossia {
668         \startStaff g4 e8 f g2 \stopStaff
669       }
670     >>
671     e4 d c2
672   }
673 >>
674 @end lilypond
675
676 オッシア譜を作成するための代替手段として、@c
677 @code{\RemoveEmptyStaffContext} コマンドが用いられるかもしれません。@c
678 この手法は、オッシア譜が改行の直後に発生する場合、最も便利な手法です。@c
679 @c そのようなケースでは、空白休符を使用する必要はまったくありません:
680 @c @code{\startStaff} と @code{\stopStaff} が必要であるだけです。@c
681 @code{\RemoveEmptyStaffContext} についての更なる情報は、@c
682 @ref{Hiding staves} を参照してください。
683
684 @lilypond[verbatim,quote,ragged-right]
685 <<
686   \new Staff = ossia \with {
687     \remove "Time_signature_engraver"
688     \hide Clef
689     fontSize = #-3
690     \override StaffSymbol.staff-space = #(magstep -3)
691     \override StaffSymbol.thickness = #(magstep -3)
692   } \relative {
693     R1*3
694     c''4 e8 d c2
695   }
696   \new Staff \relative {
697     c'4 b c2
698     e4 f e2
699     g4 a g2 \break
700     c4 b c2
701     g4 a g2
702     e4 d c2
703   }
704 >>
705
706 \layout {
707   \context {
708     \Staff \RemoveEmptyStaves
709     \override VerticalAxisGroup.remove-first = ##t
710   }
711 }
712 @end lilypond
713
714
715 @snippets
716
717 @lilypondfile[verbatim,quote,texidoc,doctitle]
718 {vertically-aligning-ossias-and-lyrics.ly}
719
720 @seealso
721 音楽用語集:
722 @rglos{ossia},
723 @rglos{staff},
724 @rglos{Frenched staff}
725
726 学習マニュアル:
727 @rlearning{Nesting music expressions},
728 @rlearning{Size of objects},
729 @rlearning{Length and thickness of objects}
730
731 記譜法リファレンス:
732 @ref{Hiding staves}
733
734 コード断片集:
735 @rlsr{Staff notation}
736
737 内部リファレンス:
738 @rinternals{StaffSymbol}
739
740
741 @node 譜を隠す
742 @unnumberedsubsubsec 譜を隠す
743 @translationof Hiding staves
744
745 @c 未訳
746 @cindex Frenched score
747 @c 未訳
748 @cindex Frenched staff
749 @cindex staff, hiding (譜を隠す)
750 @cindex staff, empty (空の譜)
751 @cindex hiding of staves (譜を隠す)
752 @cindex empty staves (空の譜)
753
754 @funindex \RemoveEmptyStaves
755 @funindex Staff_symbol_engraver
756 @funindex \stopStaff
757
758 @code{Staff} コンテキストから @code{Staff_symbol_engraver} を@c
759 削除することによって、譜線を隠すことができます。@c
760 そうする代わりに、@code{\stopStaff} を用いることもできます。
761
762 @lilypond[verbatim,quote]
763 \new Staff \with {
764   \remove "Staff_symbol_engraver"
765 }
766 \relative { a''8 f e16 d c b a2 }
767 @end lilypond
768
769 @c 未訳: Frenched Score
770 @code{\layout} ブロックの中で
771 @code{\RemoveEmptyStaffContext} コマンドをセットすることによって、@c
772 空の譜を隠すことができます。@c
773 オーケストラ譜では、@c
774 このようなスタイルの譜は @q{Frenched Score} として知られています。@c
775 デフォルトでは、このコマンドは@c
776 最初のシステム以外のところにあるすべての空の譜を隠して、削除します。
777
778 @warning{譜が空であると見なされるのは、@c
779 それが複数小節にわたる休符、休符、スキップ、空白休符、@c
780 あるいはそれらの要素の組み合わせだけで構成されている場合です。}
781
782 @lilypond[verbatim,quote,ragged-right]
783 \layout {
784   \context {
785     \Staff \RemoveEmptyStaves
786   }
787 }
788
789 \relative <<
790   \new Staff {
791     e'4 f g a \break
792     b1 \break
793     a4 b c2
794   }
795   \new Staff {
796     c,4 d e f \break
797     R1 \break
798     f4 g c,2
799   }
800 >>
801 @end lilypond
802
803 @cindex ossia (オッシア)
804
805 @noindent
806 譜に対してオッシア セクションを作成するために、@c
807 @code{\RemoveEmptyStaffContext} を用いることもできます。@c
808 詳細は @ref{Ossia staves} を参照してください。
809
810 @cindex hiding ancient staves (古代譜を隠す)
811 @cindex hiding rhythmic staves (リズム譜を隠す)
812
813 @funindex \RemoveEmptyStaves
814
815 古代音楽コンテキストの中にある空の譜を隠すために、@c
816 @code{\VaticanaStaff \RemoveEmptyStaves} コマンドが用いられることがあります。@c
817 同様に、空の @code{RhythmicStaff} コンテキストを隠すために、@c
818 @code{\RhythmicStaff \RemoveEmptyStaves} が用いられることがあります。
819
820
821 @predefined
822 @code{\Staff \RemoveEmptyStaves},
823 @code{\VaticanaStaff \RemoveEmptyStaves},
824 @code{\RhythmicStaff \RemoveEmptyStaves}
825 @endpredefined
826
827
828 @snippets
829
830 @lilypondfile[verbatim,quote,texidoc,doctitle]
831 {removing-the-first-empty-line.ly}
832
833 @seealso
834 音楽用語集:
835 @rglos{Frenched staff}
836
837 学習マニュアル:
838 @rlearning{Visibility and color of objects}
839
840 記譜法リファレンス:
841 @ref{Changing context default settings},
842 @ref{Staff symbol},
843 @ref{Ossia staves},
844 @ref{Hidden notes},
845 @ref{Invisible rests},
846 @ref{Visibility of objects}
847
848 コード断片集:
849 @rlsr{Staff notation}
850
851 内部リファレンス:
852 @rinternals{ChordNames},
853 @rinternals{FiguredBass},
854 @rinternals{Lyrics},
855 @rinternals{Staff},
856 @rinternals{VerticalAxisGroup},
857 @rinternals{Staff_symbol_engraver}
858
859 @knownissues
860 @code{Staff_symbol_engraver} を削除すると、小節線も隠されます。@c
861 小節線が強制的に可視になるよう設定されている場合、@c
862 フォーマット エラーが発生するかもしれません。@c
863 そのような場合は、エングラーバを削除する代わりに、@c
864 以下のオーバライドを使用してください:
865
866 @example
867 \omit StaffSymbol
868 \override NoteHead.no-ledgers = ##t
869 @end example
870
871 @code{\Staff \RemoveEmptyStaves} に関連する既知の問題と警告は
872 @ref{Changing context default settings} を参照してください。
873
874
875 @node パートを記述する
876 @subsection パートを記述する
877 @translationof Writing parts
878
879 このセクションでは、テンポ指示と楽器名を楽譜に挿入する方法について説明します。@c
880 他のボイスを引用する方法と、演奏指示音符を譜刻する方法についても記述します。
881
882 @menu
883 * 楽器名::
884 * 他のボイスを引用する::
885 * 合図音符をフォーマットする::
886 @end menu
887
888
889 @node 楽器名
890 @unnumberedsubsubsec 楽器名
891 @translationof Instrument names
892
893 @cindex instrument names (楽器名)
894 @cindex instrument names, short (短縮楽器名)
895
896 @code{Staff}, @code{PianoStaff}, @code{StaffGroup}, @code{GrandStaff}
897 それに @code{ChoirStaff} コンテキストの中にある譜の左側に、@c
898 楽器名を譜刻することができます。@c
899 @code{instrumentName} の値が最初の行の譜に対して使用され、@c
900 @code{shortInstrumentName} の値がそれに続くすべての@c
901 行の譜に対して使用されます。
902
903 @lilypond[verbatim,quote,ragged-right]
904 \new Staff \with {
905   instrumentName = #"Violin "
906   shortInstrumentName = #"Vln. "
907 } \relative {
908   c'4.. g'16 c4.. g'16 \break | c1 |
909 }
910 @end lilypond
911
912 @cindex instrument names, complex (複雑な楽器名)
913
914 @code{\markup} を用いて、より複雑な楽器名を作成することができます:
915
916 @lilypond[verbatim,quote]
917 \new Staff \with {
918   instrumentName = \markup {
919     \column { "Clarinetti"
920       \line { "in B" \smaller \flat }
921     }
922   }
923 } \relative {
924   c''4 c,16 d e f g2
925 }
926 @end lilypond
927
928 @cindex instrument names, centering (楽器名を中央揃えする)
929
930 2 つ以上の譜コンテキストがグループ化されている場合、@c
931 デフォルトでは楽器名と短縮楽器名は中央揃えされます。@c
932 複数行にわたる楽器名を中央揃えするには、@c
933 @code{\center-column} を用いる必要があります:
934
935 @lilypond[verbatim,quote,indent=1.5\cm]
936 <<
937   \new Staff \with {
938     instrumentName = #"Flute"
939   } \relative {
940     f''2 g4 f
941 }
942   \new Staff \with {
943     instrumentName = \markup {
944       \center-column { "Clarinet"
945         \line { "in B" \smaller \flat }
946       }
947     }
948   } \relative { c''4 b c2 }
949 >>
950 @end lilypond
951
952 @funindex indent
953 @funindex short-indent
954
955 しかしながら、楽器名が長い場合、@code{indent} 設定と @code{short-indent}
956 設定の値を増やさない限り、譜グループの中にある楽器名は中央揃えされません。@c
957 これらの設定についての詳細は @ref{シフトとインデントのための paper 変数,,シフトとインデントのための @code{@bs{}paper} 変数}
958 を参照してください。
959
960 @lilypond[verbatim,quote,ragged-right]
961 <<
962   \new Staff \with {
963     instrumentName = #"Alto Flute in G"
964     shortInstrumentName = #"Flt."
965   } \relative {
966     f''2 g4 f \break
967     g4 f g2
968   }
969   \new Staff \with {
970     instrumentName = #"Clarinet"
971     shortInstrumentName = #"Clar."
972   } \relative {
973     c''4 b c2 \break
974     c2 b4 c
975   }
976 >>
977
978 \layout {
979   indent = 3.0\cm
980   short-indent = 1.5\cm
981 }
982 @end lilypond
983
984 @cindex instrument names, adding to other contexts (楽器名を他のコンテキストに付け加える)
985
986 楽器名を他のコンテキスト (@code{ChordNames} や @code{FiguredBass} など)
987 に付け加えるには、
988 そのコンテキストに @code{Instrument_name_engraver} を追加する必要があります。@c
989 詳細は @ref{Modifying context plug-ins} を参照してください。
990
991 @cindex instrument names, changing (楽器名を変更する)
992 @cindex changing instrument names (楽器名を変更する)
993
994 楽曲の途中で @code{shortInstrumentName} を変更することもできます。@c
995 しかしながら、@code{instrumentName} は最初のインスタンスが譜刻され、@c
996 楽曲の途中での変更は無視されます:
997
998 @lilypond[verbatim,quote,ragged-right,relative=1]
999 \new Staff \with {
1000   instrumentName = #"Flute"
1001   shortInstrumentName = #"Flt."
1002 }
1003 {
1004   c1 c c c \break
1005   c1 c c c \break
1006   \set Staff.instrumentName = #"Clarinet"
1007   \set Staff.shortInstrumentName = #"Clt."
1008   c1 c c c \break
1009   c1 c c c \break
1010 }
1011 @end lilypond
1012
1013 @cindex instrument switch (楽器を切り換える)
1014 @cindex switching instruments (楽器を切り換える)
1015
1016 @funindex \addInstrumentDefinition
1017 @funindex \instrumentSwitch
1018
1019 楽器の @emph{切り替え} が必要な場合、切り替えのために必要とされる@c
1020 変更の詳細なリストを作成するために、@code{\addInstrumentDefinition} を
1021 @code{\instrumentSwitch} と組み合わせて使用することがあります。@c
1022 @code{\addInstrumentDefinition} コマンドは 2 つの引数をとります:
1023 識別文字列と、楽器で使用されるコンテキスト プロパティと値の連想リストです。@c
1024 このコマンドは最上位のスコープに配置する必要があります。@c
1025 @code{\instrumentSwitch} は音楽表記の中で使用され、楽器の切り替えを宣言します:
1026
1027 @lilypond[verbatim,quote,ragged-right]
1028 \addInstrumentDefinition #"contrabassoon"
1029   #`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
1030      (shortInstrumentName . "Cbsn.")
1031      (clefGlyph . "clefs.F")
1032      (middleCPosition . 6)
1033      (clefPosition . 2)
1034      (instrumentCueName . ,(make-bold-markup "cbsn."))
1035      (midiInstrument . "bassoon"))
1036
1037 \new Staff \with {
1038   instrumentName = #"Bassoon"
1039 }
1040 \relative c' {
1041   \clef tenor
1042   \compressFullBarRests
1043   c2 g'
1044   R1*16
1045   \instrumentSwitch "contrabassoon"
1046   c,,2 g \break
1047   c,1 ~ | 1
1048 }
1049 @end lilypond
1050
1051
1052 @seealso
1053 記譜法リファレンス:
1054 @ref{シフトとインデントのための paper 変数,,シフトとインデントのための @code{@bs{}paper} 変数},
1055 @ref{Modifying context plug-ins}
1056
1057 コード断片集:
1058 @rlsr{Staff notation}
1059
1060 内部リファレンス:
1061 @rinternals{InstrumentName},
1062 @rinternals{PianoStaff},
1063 @rinternals{Staff}
1064
1065
1066 @node 他のボイスを引用する
1067 @unnumberedsubsubsec 他のボイスを引用する
1068 @translationof Quoting other voices
1069
1070 @cindex quote, voices (ボイスの引用)
1071 @cindex voices, quoting (ボイスを引用する)
1072 @cindex fragments, quoting (楽曲の断片を引用する)
1073 @cindex cue notes (演奏指示音符)
1074
1075 @funindex \addQuote
1076 @funindex \quoteDuring
1077 @funindex \transposition
1078
1079 あるボイスが他のボイスと同じ音符を演奏することはごく一般的なことです。@c
1080 例えば、第 1 バイオリンと第2バイオリンがあるパッセージで同じフレーズを@c
1081 演奏することがあります。@c
1082 これは、ボイスに他のボイスを @emph{引用} させることで実現でき、@c
1083 第 2 ボイスの音楽全体を再入力する必要はありません。
1084
1085 最上位レベルのスコープで用いる @code{\addQuote} コマンドは@c
1086 一部を引用することができる音楽を定義します。
1087
1088 @code{\quoteDuring} コマンドを用いて、引用を開始する位置を示します。@c
1089 このコマンドは 2 つの引数をとります:
1090 @code{\addQuote} で定義した引用するボイスの名前と、@c
1091 引用部分の演奏時間を示す音楽表記です。
1092
1093 @lilypond[verbatim,quote]
1094 fluteNotes = \relative {
1095   a'4 gis g gis | b4^"quoted" r8 ais\p a4( f)
1096 }
1097
1098 oboeNotes = \relative {
1099   c''4 cis c b \quoteDuring #"flute" { s1 }
1100 }
1101
1102 \addQuote "flute" { \fluteNotes }
1103
1104 \score {
1105   <<
1106     \new Staff \with { instrumentName = "Flute" } \fluteNotes
1107     \new Staff \with { instrumentName = "Oboe" } \oboeNotes
1108   >>
1109 }
1110 @end lilypond
1111
1112 @code{\quoteDuring} で使用される音楽表記が空白休符や複数小節休符ではなく@c
1113 音符を保持している場合、@c
1114 引用は多声となり、予期しない結果となる可能性があります。
1115
1116 @lilypond[verbatim,quote]
1117 fluteNotes = \relative {
1118   a'4 gis g gis | b4^"quoted" r8 ais\p a4( f)
1119 }
1120
1121 oboeNotes = \relative {
1122   c''4 cis c b \quoteDuring #"flute" { e4 r8 ais b4 a }
1123 }
1124
1125 \addQuote "flute" { \fluteNotes }
1126
1127 \score {
1128   <<
1129     \new Staff \with { instrumentName = "Flute" } \fluteNotes
1130     \new Staff \with { instrumentName = "Oboe" } \oboeNotes
1131   >>
1132 }
1133 @end lilypond
1134
1135 @code{\quoteDuring} コマンドは引用されるパートと引用するパート両方の
1136 @code{\transposition} を使用して、@c
1137 引用されるパートと同じ響きのピッチに変換して、@c
1138 引用するパートの音符を作り出します。
1139
1140 @lilypond[verbatim,quote]
1141 clarinetNotes = \relative c'' {
1142   \transposition bes
1143   \key d \major
1144   b4 ais a ais | cis4^"quoted" r8 bis\p b4( f)
1145 }
1146
1147 oboeNotes = \relative {
1148   c''4 cis c b \quoteDuring #"clarinet" { s1 }
1149 }
1150
1151 \addQuote "clarinet" { \clarinetNotes }
1152
1153
1154 \score {
1155   <<
1156     \new Staff \with { instrumentName = "Clarinet" } \clarinetNotes
1157     \new Staff \with { instrumentName = "Oboe" } \oboeNotes
1158   >>
1159 }
1160 @end lilypond
1161
1162 @cindex note-event
1163 @cindex articulation-event
1164 @cindex dynamic-event
1165 @cindex rest-event
1166
1167 @funindex quotedEventTypes
1168 @funindex quotedCueEventTypes
1169
1170 デフォルトでは引用される音楽はすべてのアーティキュレーション、強弱記号、@c
1171 マークアップ等を含んでいます。@c
1172 @code{quotedEventTypes} コンテキスト プロパティを用いることで、@c
1173 引用される音楽から引用するオブジェクトを選択することが可能です。
1174
1175 @lilypond[verbatim,quote]
1176 fluteNotes = \relative {
1177   a'2 g2 |
1178   b4\<^"quoted" r8 ais a4\f( c->)
1179  }
1180
1181 oboeNotes = \relative {
1182   c''2. b4 |
1183   \quoteDuring #"flute" { s1 }
1184 }
1185
1186 \addQuote "flute" { \fluteNotes }
1187
1188 \score {
1189   <<
1190     \set Score.quotedEventTypes = #'(note-event articulation-event
1191                                      crescendo-event rest-event
1192                                      slur-event dynamic-event)
1193     \new Staff \with { instrumentName = "Flute" } \fluteNotes
1194     \new Staff \with { instrumentName = "Oboe" } \oboeNotes
1195   >>
1196 }
1197 @end lilypond
1198
1199 引用にもタグを付けることができます。@c
1200 @ref{Using tags} を参照してください。
1201
1202 @seealso
1203 記譜法リファレンス:
1204 @ref{Instrument transpositions},
1205 @ref{Using tags}
1206
1207 コード断片集:
1208 @rlsr{Staff notation}
1209
1210 内部リファレンス:
1211 +@rinternals{Music classes},
1212 @rinternals{QuoteMusic},
1213 @rinternals{Voice}
1214
1215 @knownissues
1216 @code{\addQuote} 中にある最初の @code{Voice} の内容だけが引用されます。@c
1217 そのため、音楽表記が @code{\new} や @code{\context Voice} を含んでいても、@c
1218 それらの内容は引用されません。@c
1219 装飾小音符の引用はサポートされておらず、@c
1220 LilyPond がクラッシュする可能性さえあります。
1221 ネストされた連符を引用しようとしてもうまくいきません。
1222
1223
1224 @node 合図音符をフォーマットする
1225 @unnumberedsubsubsec 合図音符をフォーマットする
1226 @translationof Formatting cue notes
1227
1228 @cindex cue notes (合図音符)
1229 @cindex fragments (楽譜の一部分)
1230 @cindex cue notes, formatting (合図音符をフォーマットする)
1231 @cindex formatting, cue notes (合図音符をフォーマットする)
1232 @cindex voices, quoting(ボイスを引用する)
1233
1234 @funindex \cueDuring
1235 @funindex \cueClef
1236 @funindex \cueDuringWithClef
1237 @funindex \quoteDuring
1238
1239 @cindex notes, smaller (小さな音符)
1240 @cindex smaller notes (小さな音符)
1241 @cindex CueVoice
1242
1243 合図音符をフォーマットする最も簡単な方法は、@c
1244 パートの中で明示的に @code{CueVoice} コンテキストを作成することです。
1245
1246 @lilypond[verbatim]
1247 \relative {
1248   R1
1249   <<
1250     { e'2\rest r4. e8 }
1251     \new CueVoice {
1252       \stemUp d'8^"flute" c d e fis2
1253     }
1254   >>
1255   d,4 r a r
1256 }
1257 @end lilypond
1258
1259 音部記号の変更が必要で、合図音符に適切なサイズの音部記号を譜刻する場合、@c
1260 @code{\cueClef} コマンドは明示的な @code{CueVoice} コンテキストと共に@c
1261 用いられます。@c
1262 その後、@code{\cueClefUnset} コマンドを用いて、@c
1263 オリジナルの音部記号 -- 再度、適切なサイズにされた -- に戻すことができます。
1264
1265 @lilypond[verbatim,noragged-right]
1266 \relative {
1267   \clef "bass"
1268   R1
1269   <<
1270     { e'2\rest r4. \cueClefUnset e,8 }
1271     \new CueVoice {
1272       \cueClef "treble" \stemUp d''8^"flute" c d e fis2
1273     }
1274   >>
1275   d,,4 r a r
1276 }
1277 @end lilypond
1278
1279 必要があれば、@code{CueVoice} 無しで
1280 @code{\cueClef} コマンドと @code{\cueClefUnset} コマンドを用いることもできます。
1281
1282 @lilypond[verbatim,noragged-right]
1283 \relative {
1284   \clef "bass"
1285   R1
1286   \cueClef "treble"
1287   d''8^"flute" c d e fis2
1288   \cueClefUnset
1289   d,,4 r a r
1290 }
1291 @end lilypond
1292
1293 もっと複雑な合図音符
1294 -- 例えば、移調を含んでいる、複数の音楽ソースからの合図音符を挿入する --
1295 の場合、@c
1296 @code{\cueDuring} コマンドや @code{\cueDuringWithClef} コマンドを@c
1297 用いることができます。@c
1298 これらのコマンドは @code{\quoteDuring} を特殊化したものです。@c
1299 @code{\quoteDuring} については、@c
1300 前のセクションの @ref{Quoting other voices} を参照してください。
1301
1302 構文は以下の通りです:
1303
1304 @example
1305 \cueDuring #@var{quotename} #@var{direction} #@var{music}
1306 @end example
1307
1308
1309
1310 @example
1311 \cueDuringWithClef #@var{quotename} #@var{direction} #@var{clef} #@var{music}
1312 @end example
1313
1314 @code{@var{quotename}} に対応する小節の音楽は
1315 @code{CueVoice} コンテキストとして追加されて
1316 @code{@var{music}} と同時進行して、@c
1317 多声になります。@c
1318 @code{@var{direction}} は引数 @code{UP} または @code{DOWN} を取り、@c
1319 それぞれ第 1 及び第 2 ボイスと調和して、@c
1320 合図音符が他のボイスに対してどのように譜刻されるかを決定します。
1321
1322 このコマンドは @code{@var{partname}} の該当する小節から音符と休符だけを
1323 @code{CueVoice} にコピーします。@c
1324 @code{CueVoice} は暗黙的に作成されて @code{@var{music}} と同時進行し、@c
1325 結果として多声になります。@c
1326 引数 @code{@var{voice}} は合図音符を第 1 ボイスとして記譜すべきか、@c
1327 第 2 ボイスとして記譜すべきかを決定します。@c
1328 @code{UP} は第 1 ボイスに相当し、@code{DOWN} は第 2 ボイスに相当します。
1329
1330 @lilypond[verbatim,quote]
1331 fluteNotes = \relative {
1332   r2. c''4 | d8 c d e fis2 | g2 d |
1333 }
1334
1335 oboeNotes = \relative c'' {
1336   R1
1337   \new CueVoice { \set instrumentCueName = "flute" }
1338   \cueDuring #"flute" #UP { R1 }
1339   g2 c,
1340 }
1341
1342 \addQuote "flute" { \fluteNotes }
1343
1344 \new Staff {
1345   \oboeNotes
1346 }
1347 @end lilypond
1348
1349 @noindent
1350
1351 @code{instrumentCueName} プロパティを設定することによって、@c
1352 @code{\cueDuring} で音楽のどの側面を引用するか調節することができます。@c
1353 このプロパティのデフォルト値は @code{'(note-event rest-event
1354 tie-event beam-event tuplet-span-event)} であり、音符、休符、タイ、連桁、@c
1355 それに連符だけが引用され、アーティキュレーション、強弱記号、マークアップ等は@c
1356 引用されません。
1357
1358 @warning{以下の例のように @code{Voice} が @code{\cueDuring} で始まる場合、@c
1359 @code{Voice} を明示的に宣言する必要があります。@c
1360 そうしないと音楽表記全体が @code{CueVoice} コンテキストに属してしまいます。}
1361
1362 @lilypond[verbatim,quote]
1363 oboeNotes = \relative {
1364   r2 r8 d''16(\f f e g f a)
1365   g8 g16 g g2.
1366 }
1367 \addQuote "oboe" { \oboeNotes }
1368
1369 \new Voice \relative c'' {
1370   \set Score.quotedCueEventTypes = #'(note-event rest-event tie-event
1371                                       beam-event tuplet-span-event
1372                                       dynamic-event slur-event)
1373   \cueDuring #"oboe" #UP { R1 }
1374   g2 c,
1375 }
1376 @end lilypond
1377
1378 @c ここから L2334
1379 一時的な @code{CueVoice} コンテキストの中の @code{instrumentCueName}
1380 プロパティを設定することで、合図を演奏する楽器の名前を表示させることが@c
1381 できます。@c
1382 @code{instrumentCueName} の位置とスタイルは @code{\instrumentSwitch}
1383 オブジェクトによって制御されます -- @ref{Instrument names} を参照して@c
1384 ください。@c
1385 合図音符が音符記号の変更を必要とする場合、手動で変更することができますが、@c
1386 合図音符が終わったところで手動で元の音部記号に戻す必要がありmす。
1387
1388 @lilypond[verbatim,quote]
1389 fluteNotes = \relative {
1390   r2. c''4 d8 c d e fis2 g2 d2
1391 }
1392
1393 bassoonNotes = \relative c {
1394   \clef bass
1395   R1
1396   \clef treble
1397   \new CueVoice { \set instrumentCueName = "flute" }
1398   \cueDuring #"flute" #UP { R1 }
1399   \clef bass
1400   g4. b8 d2
1401 }
1402
1403 \addQuote "flute" { \fluteNotes }
1404
1405 \new Staff {
1406   \bassoonNotes
1407 }
1408 @end lilypond
1409
1410 あるいはまた、代わりに @code{\cueDuringWithClef} 関数を用いることができます。@c
1411 このコマンドは追加の引数で音部の変更を指定して、@c
1412 合図音符に音部記号を譜刻しますが、@c
1413 合図音部が終了したところで元の音部記号を自動的に譜刻します。
1414
1415 @lilypond[verbatim,quote]
1416 fluteNotes = \relative {
1417   r2. c''4 d8 c d e fis2 g2 d2
1418 }
1419
1420 bassoonNotes = \relative c {
1421   \clef bass
1422   R1
1423   \new CueVoice { \set instrumentCueName = "flute" }
1424   \cueDuringWithClef #"flute" #UP #"treble" { R1 }
1425   g4. b8 d2
1426 }
1427
1428 \addQuote "flute" { \fluteNotes }
1429
1430 \new Staff {
1431   \bassoonNotes
1432 }
1433 @end lilypond
1434
1435 @funindex \transposedCueDuring
1436
1437 @code{\quoteDuring} と同様に、@code{\cueDuring} は楽器の移調を考慮します。@c
1438 合図音符は合図を受け取る楽器のピッチで作り出され、@c
1439 ソース楽器の同じ響きのピッチになります。
1440
1441 合図音符を移調させるには @code{\transposedCueDuring} を使用します。@c
1442 このコマンドはコンサート ミドル C の音を表すピッチを (絶対モードで) 指定する@c
1443 追加の引数を取ります。@c
1444 これは、全く別の場所で登録された楽器から合図を取る場合に有用です。
1445
1446 @lilypond[verbatim,quote]
1447 piccoloNotes = \relative {
1448   \clef "treble^8"
1449   R1
1450   c'''8 c c e g2
1451   c4 g g2
1452 }
1453
1454 bassClarinetNotes = \relative c' {
1455   \key d \major
1456   \transposition bes,
1457   d4 r a r
1458   \transposedCueDuring #"piccolo" #UP d { R1 }
1459   d4 r a r
1460 }
1461
1462 \addQuote "piccolo" { \piccoloNotes }
1463
1464 <<
1465   \new Staff \piccoloNotes
1466   \new Staff \bassClarinetNotes
1467 >>
1468 @end lilypond
1469
1470 @cindex removing cue notes (合図音符を削除する)
1471 @cindex cue notes, removing (合図音符を削除する)
1472
1473 @funindex \killCues
1474 @funindex \addInstrumentDefinition
1475
1476 @code{\killCues} コマンドは音楽表記から合図音符を削除します。@c
1477 これにより、同じ音楽表記を使って合図を持つ楽器パートと楽譜を作り出すことが@c
1478 可能です。@c
1479 @code{\killCues} コマンドは @code{\cueDuring} によって引用された@c
1480 音符とイベントだけを削除します。@c
1481 合図に関連する他のマークアップ
1482 -- 音部変更と引用元の楽器を識別するラベルなど --
1483 にはタグを付けて楽譜に含めるかどうかを選択することができます。@c
1484 @ref{Using tags} を参照してください。
1485
1486 @lilypond[verbatim,quote]
1487 fluteNotes = \relative {
1488   r2. c''4 d8 c d e fis2 g2 d2
1489 }
1490
1491 bassoonNotes = \relative c {
1492   \clef bass
1493   R1
1494   \tag #'part {
1495     \clef treble
1496   \new CueVoice { \set instrumentCueName = "flute" }
1497   }
1498   \cueDuring #"flute" #UP { R1 }
1499   \tag #'part \clef bass
1500   g4. b8 d2
1501 }
1502
1503 \addQuote "flute" { \fluteNotes }
1504
1505 \new Staff {
1506   \bassoonNotes
1507 }
1508
1509 \new StaffGroup <<
1510   \new Staff {
1511     \fluteNotes
1512   }
1513   \new Staff {
1514     \removeWithTag #'part { \killCues { \bassoonNotes } }
1515   }
1516 >>
1517 @end lilypond
1518
1519 あるいはまた、音部変更や楽器ラベルを再利用するために、@c
1520 @code{\addInstrumentDefinition} を用いて楽器の定義に含めることができます。@c
1521 @code{\addInstrumentDefinition} についての説明は
1522 @ref{Instrument names} を参照してください。
1523
1524 @seealso
1525 記譜法リファレンス:
1526 @ref{Quoting other voices},
1527 @ref{Instrument transpositions},
1528 @ref{Instrument names},
1529 @ref{Clef},
1530 @ref{Musical cues},
1531 @ref{Using tags}
1532
1533 コード断片集:
1534 @rlsr{Staff notation}
1535
1536 内部リファレンス:
1537 @rinternals{CueVoice},
1538 @rinternals{Voice}
1539
1540 @knownissues
1541 @code{\cueDuring} を使用した場合、@code{Voice} コンテキストと @code{CueVoice}
1542 コンテキストの間で休符の衝突が発生する可能性があります。@c
1543 @code{\cueDuringWithClef} や @code{\transposedCueDuring} を使用する場合、@c
1544 追加で必要となる引数は引用と向きの後に配置する必要があります。