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