1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
3 Translation of GIT committish: fabcd22c8f88ea9a87241597f1e48c0a9adbfc6e
5 When revising a translation, copy the HEAD committish of the
6 version that you are working on. See TRANSLATION for details.
12 @c Translators: Yoshiki Sawada
13 @c Translation status: post-GDP
18 @translationof Staff notation
20 @c The line width is a bit of a hack to allow space for the
22 @lilypondfile[quote,ragged-right,line-width=14.5\cm,staffsize=16]{staff-headword.ly}
24 このセクションでは、譜の見た目を変える方法、複数の譜を持つ楽譜を譜刻する方法、@c
25 それに、テンポ指示と演奏指示楽節の音符を譜に付け加える方法について説明します。
36 @translationof Displaying staves
38 このセクションでは、譜を作成する方法と、@c
39 譜をグループ化する方法をいくつか説明します。
45 * Separating systems::
50 @unnumberedsubsubsec 新たに譜をインスタンス化する
51 @translationof Instantiating new staves
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 (タブ譜)
69 @funindex RhythmicStaff
71 @funindex MensuralStaff
72 @funindex VaticanaStaff
73 @funindex GregorianTranscriptionStaff
75 @notation{stave: 譜} (@notation{staff}: 譜 (表) の単称) は
76 @code{\new} コマンドや @code{\context} コマンドで作成されます。@c
77 詳細は @ref{Creating and referencing contexts} を参照してください。
79 基本的な譜コンテキストは @code{Staff} です:
81 @lilypond[verbatim,quote]
82 \new Staff \relative { c''4 d e f }
85 @code{DrumStaff} コンテキストは、一般的なドラム セットのための 5 線譜を@c
88 @code{\drummode} コマンドの後に続けて、楽器をドラム モードで入力します。@c
90 詳細は @ref{Percussion staves} を参照してください。
92 @lilypond[verbatim,quote]
94 \drummode { cymc hh ss tomh }
98 @code{RhythmicStaff} は、入力のリズム価だけを表示する単線譜を作成します。@c
99 (ピッチは無視されますが) 演奏時間が保持されます。@c
100 詳細は @ref{Showing melody rhythms} を参照してください。
102 @lilypond[verbatim,quote]
103 \new RhythmicStaff { c4 d e f }
106 @code{TabStaff} は、標準のギター チューニングの 6 弦のタブ譜を作成します。@c
107 詳細は @ref{Default tablatures} を参照してください。
109 @lilypond[verbatim,quote]
110 \new TabStaff \relative { c''4 d e f }
113 古代音楽の記譜法のために 2 つの譜コンテキストが用意されています:
114 @code{MensuralStaff} と @code{VaticanaStaff} です。@c
115 これらのことは @ref{Pre-defined contexts} で説明されています。
117 @code{GregorianTranscriptionStaff} コンテキストは、@c
118 現代グレゴリア聖歌を記譜するための譜を作成します。@c
121 @lilypond[verbatim,quote]
122 \new GregorianTranscriptionStaff \relative { c''4 d e f e d }
125 新たに単一譜コンテキストを定義する場合があります。@c
126 詳細は @ref{Defining new contexts} を参照してください。
134 @ref{Creating and referencing contexts},
135 @ref{Percussion staves},
136 @ref{Showing melody rhythms},
137 @ref{Default tablatures},
138 @ref{Pre-defined contexts},
140 @ref{Gregorian chant contexts},
141 @ref{Mensural contexts},
142 @ref{Defining new contexts}
145 @rlsr{Staff notation}
149 @rinternals{DrumStaff},
150 @rinternals{GregorianTranscriptionStaff},
151 @rinternals{RhythmicStaff},
152 @rinternals{TabStaff},
153 @rinternals{MensuralStaff},
154 @rinternals{VaticanaStaff},
155 @rinternals{StaffSymbol}
159 @unnumberedsubsubsec 譜をグループ化する
160 @translationof Grouping staves
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 (システム)
177 複数の譜からなるシステムを形成するために譜をグループ化する@c
179 グループ化を行うコンテキストはそれぞれにシステム開始境界線のスタイルと@c
182 コンテキストが指定されていない場合、デフォルトのプロパティが使用されます:
183 グループは垂直の線で始まり、小節線はつながりません。
185 @lilypond[verbatim,quote]
187 \new Staff \relative { c''1 c }
188 \new Staff \relative { c''1 c }
192 @code{StaffGroup} コンテキストでは、グループは角括弧で始まり、@c
195 @lilypond[verbatim,quote]
197 \new Staff \relative { c''1 c }
198 \new Staff \relative { c''1 c }
202 @code{ChoirStaff} では、グループは角括弧で始まりますが、小節線はつながりません。
204 @lilypond[verbatim,quote]
206 \new Staff \relative { c''1 c }
207 \new Staff \relative { c''1 c }
211 @code{GrandStaff} では、グループは波括弧で始まり、小節線はすべての譜を貫きます。
213 @lilypond[verbatim,quote]
215 \new Staff \relative { c''1 c }
216 \new Staff \relative { c''1 c }
220 @code{PianoStaff} は @code{GrandStaff} と同一ですが、@c
221 例外として楽器名を刻譜することができます。@c
222 詳細は @ref{Instrument names} を参照してください。
224 @lilypond[verbatim,quote]
226 \set PianoStaff.instrumentName = #"Piano"
227 \new Staff \relative { c''1 c }
228 \new Staff \relative { \clef bass c1 c }
232 各譜グループ化コンテキストはプロパティ @code{systemStartDelimiter} を@c
234 @code{SystemStartBar}, @code{SystemStartBrace} あるいは
235 @code{SystemStartBracket}。@c
236 4 つ目の境界線 -- @code{SystemStartSquare} も利用可能ですが、@c
239 新たな譜グループ化コンテキストを定義することもできます。@c
240 詳細は @ref{Defining new contexts} を参照してください。
245 @lilypondfile[verbatim,quote,texidoc,doctitle]
246 {use-square-bracket-at-the-start-of-a-staff-group.ly}
248 @lilypondfile[verbatim,quote,texidoc,doctitle]
249 {display-bracket-with-only-one-staff-in-a-system.ly}
252 @cindex mensurstriche layout
253 @cindex renaissance music)
254 @cindex transcription of mensural music
255 @cindex mensural music, transcription of
257 @lilypondfile[verbatim,quote,texidoc,doctitle]
258 {mensurstriche-layout-bar-lines-between-the-staves.ly}
267 @ref{Instrument names},
268 @ref{Defining new contexts}
271 @rlsr{Staff notation}
275 @rinternals{StaffGroup},
276 @rinternals{ChoirStaff},
277 @rinternals{GrandStaff},
278 @rinternals{PianoStaff},
279 @rinternals{SystemStartBar},
280 @rinternals{SystemStartBrace},
281 @rinternals{SystemStartBracket},
282 @rinternals{SystemStartSquare}
285 デフォルトでは @code{PianoStaff} は @code{ChordNames} を受け付けません。
289 @unnumberedsubsubsec ネストされた譜グループ
290 @translationof Nested staff groups
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 (波括弧をネストする)
300 譜グループ化コンテキストは任意の深さにネストすることができます。@c
301 そうした場合、それぞれの子コンテキストは、@c
302 親グループの角括弧に隣接して新しい角括弧を作成します。
304 @lilypond[verbatim,quote,relative=2]@lilypond[verbatim,quote,relative=2]
306 \new Staff { c2 c | c2 c }
308 \new Staff { g2 g | g2 g }
309 \new StaffGroup \with {
310 systemStartDelimiter = #'SystemStartSquare
313 \new Staff { e2 e | e2 e }
314 \new Staff { c2 c | c2 c }
320 新たにネストされた譜グループ化コンテキストを定義することができます。@c
321 詳細は @ref{Defining new contexts} を参照してください。
326 @lilypondfile[verbatim,quote,texidoc,doctitle]
331 @ref{Grouping staves},
332 @ref{Instrument names},
333 @ref{Defining new contexts}
336 @rlsr{Staff notation}
339 @rinternals{StaffGroup},
340 @rinternals{ChoirStaff},
341 @rinternals{SystemStartBar},
342 @rinternals{SystemStartBrace},
343 @rinternals{SystemStartBracket},
344 @rinternals{SystemStartSquare}
348 @node Separating systems
349 @unnumberedsubsubsec Separating systems
351 @cindex system separator mark
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.
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]
381 system-separator-markup = \slashSeparator
382 % following commands are needed only to format this documentation
384 paper-height = 100\mm
395 @rlsr{Staff notation}.
399 @subsection 個々の譜を変更する
400 @translationof Modifying single staves
402 このセクションでは、譜の属性を変更する方法について説明します:
403 例えば、譜線の本数や譜サイズを変更します。@c
404 譜を開始/終了する方法とオッシア セクションをセットする方法についても記述します。
414 @unnumberedsubsubsec 譜シンボル
415 @translationof Staff symbol
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 (加線を変更する)
424 @funindex \startStaff
427 @code{\stopStaff} コマンドと @code{\startStaff} コマンドを使って、@c
428 楽譜内の任意の場所で譜線を停止あるいは (再) 開始させることができます。
430 @lilypond[verbatim,quote]
432 \stopStaff f''4 d \startStaff g, e
433 f'4 d \stopStaff g, e
434 f'4 d \startStaff g, e
443 @code{StaffSymbol} グラフィカル オブジェクト (加線を含む) に属する譜の線は@c
444 @code{StaffSymbol} プロパティを用いて変更することができます。@c
445 しかしながら、変更は譜が (再) 開始する前に行う必要があります。
449 @lilypond[verbatim,quote]
452 \override Staff.StaffSymbol.line-count = #2
456 \revert Staff.StaffSymbol.line-count
461 各譜線の位置を変更することもできます。@c
462 値の単位は譜線の間隔の @emph{半分} で、@c
463 新しい位置は通常の中央線からの相対位置です。@c
464 1 つの値に対して 1 本の譜線が譜刻されるので、@c
465 1 つのオーバライドで譜線の位置と本数を変更することができます。
467 @lilypond[verbatim,quote]
470 \override Staff.StaffSymbol.line-positions = #'(1 3 5 -1 -3)
473 \override Staff.StaffSymbol.line-positions = #'(8 6.5 -6 -8 -0.5)
479 音部記号とミドル C の位置を調節する必要があるかもしれません。@c
480 @ref{Clef} を参照してください。
483 デフォルトでは、加線 (訳者注: ledger line, 譜の上下に突き出た符頭と符幹に@c
484 付けられる短い譜線) と符幹の太さも影響を受けます。@c
486 @lilypond[verbatim,quote]
488 \override StaffSymbol.thickness = #3
494 しかしながら、加線の太さを譜線の太さから独立して設定することができます。@c
495 2 つの値は譜線の太さと譜線の間隔に掛け算され、@c
496 それらを加算した値が加線の太さになります。
498 @lilypond[verbatim,quote]
500 \override StaffSymbol.thickness = #2
501 \override StaffSymbol.ledger-line-thickness = #'(0.5 . 0.4)
507 加線の垂直方向の位置を変更することができます:
509 @lilypond[verbatim,quote]
511 \override StaffSymbol.ledger-positions = #'(-3 -2 -1 2 5 6)
517 符頭の位置と加線を持つ他の符頭との関係に応じて、@c
518 符頭の上または下に追加の加線を配置することできます。
520 @lilypond[verbatim,quote]
522 \override StaffSymbol.ledger-extra = #4
528 譜の内部に加線を表示させることもできます。@c
529 この場合、譜線のカスタマイズが必要です。@c
530 以下の例は明示的に @code{ledger-position} をセットしない場合とした場合の@c
532 以下の例で、@code{StaffSymbol} 全体に対する @code{\override} を元に戻すには@c
533 @code{\stopStaff} を行う必要があります。
535 @lilypond[fragment,quote,relative=1]
536 \override Staff.StaffSymbol.line-positions = #'(-8 0 2 4)
540 \override Staff.StaffSymbol.ledger-positions = #'(-8 -6 (-4 -2) 0)
544 譜線の間隔を変えることができます。この設定は加線の間隔にも影響を与えます。
546 @lilypond[verbatim,quote]
548 \override StaffSymbol.staff-space = #1.5
555 @lilypondfile[verbatim,quote,texidoc,doctitle]
556 {making-some-staff-lines-thicker-than-the-others.ly}
568 @rlsr{Staff notation}
571 @rinternals{StaffSymbol},
572 @rinternals{staff-symbol-interface}
576 @unnumberedsubsubsec オッシア譜
577 @translationof Ossia staves
580 @cindex staff, Frenched
583 @cindex Frenched staves
584 @cindex staff, resizing of (譜をリサイズする)
585 @cindex resizing of staves (譜をリサイズする)
587 @funindex \startStaff
590 適切な位置で新しく同時進行の譜を作成することによって、@c
591 @notation{オッシア} 譜をセットすることができます:
593 @lilypond[verbatim,quote]
594 \new Staff \relative {
598 \new Staff { e4 d f e }
605 しかしながら、上の例は通常は望ましいものではありません。@c
606 オリジナルの譜の上にあり、拍子記号や音部記号を持たず、@c
607 小さなサイズのフォントを使用するオッシア譜を作成するには調整が必要です。@c
608 学習マニュアルの @rlearning{Nesting music expressions} に望ましいオッシア譜を@c
611 以下の例は、オッシア譜をオリジナルの譜の上に配置するために
612 @code{alignAboveContext} プロパティを用いています。@c
613 この手法は、2, 3 のオッシア譜が必要とされているだけである場合であれば、@c
616 @lilypond[verbatim,quote]
617 \new Staff = main \relative {
623 \remove "Time_signature_engraver"
624 alignAboveContext = #"main"
626 \override StaffSymbol.staff-space = #(magstep -3)
627 \override StaffSymbol.thickness = #(magstep -3)
636 多くの別個のオッシア譜が必要である場合、@c
637 ある特有の @emph{コンテキスト ID} を持つ空の @code{Staff} コンテキストを@c
639 このコンテキストを @emph{呼び出し}、@c
640 オッシア譜が必要とされる場所で @code{\startStaff} と @code{\stopStaff}
641 を用いることでオッシア譜が作成されます。@c
642 この手法の利点は、以下の例よりも長い楽曲であれば、明らかです。
644 @lilypond[verbatim,quote,ragged-right]
646 \new Staff = ossia \with {
647 \remove "Time_signature_engraver"
650 \override StaffSymbol.staff-space = #(magstep -3)
651 \override StaffSymbol.thickness = #(magstep -3)
655 \new Staff \relative {
659 \context Staff = ossia {
660 \startStaff e4 g8 f e2 \stopStaff
667 \context Staff = ossia {
668 \startStaff g4 e8 f g2 \stopStaff
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} を参照してください。
684 @lilypond[verbatim,quote,ragged-right]
686 \new Staff = ossia \with {
687 \remove "Time_signature_engraver"
690 \override StaffSymbol.staff-space = #(magstep -3)
691 \override StaffSymbol.thickness = #(magstep -3)
696 \new Staff \relative {
708 \Staff \RemoveEmptyStaves
709 \override VerticalAxisGroup.remove-first = ##t
717 @lilypondfile[verbatim,quote,texidoc,doctitle]
718 {vertically-aligning-ossias-and-lyrics.ly}
724 @rglos{Frenched staff}
727 @rlearning{Nesting music expressions},
728 @rlearning{Size of objects},
729 @rlearning{Length and thickness of objects}
735 @rlsr{Staff notation}
738 @rinternals{StaffSymbol}
742 @unnumberedsubsubsec 譜を隠す
743 @translationof Hiding staves
746 @cindex Frenched score
748 @cindex Frenched staff
749 @cindex staff, hiding (譜を隠す)
750 @cindex staff, empty (空の譜)
751 @cindex hiding of staves (譜を隠す)
752 @cindex empty staves (空の譜)
754 @funindex \RemoveEmptyStaves
755 @funindex Staff_symbol_engraver
758 @code{Staff} コンテキストから @code{Staff_symbol_engraver} を@c
759 削除することによって、譜線を隠すことができます。@c
760 そうする代わりに、@code{\stopStaff} を用いることもできます。
762 @lilypond[verbatim,quote]
764 \remove "Staff_symbol_engraver"
766 \relative { a''8 f e16 d c b a2 }
769 @c 未訳: Frenched Score
770 @code{\layout} ブロックの中で
771 @code{\RemoveEmptyStaffContext} コマンドをセットすることによって、@c
774 このようなスタイルの譜は @q{Frenched Score} として知られています。@c
776 最初のシステム以外のところにあるすべての空の譜を隠して、削除します。
778 @warning{譜が空であると見なされるのは、@c
779 それが複数小節にわたる休符、休符、スキップ、空白休符、@c
780 あるいはそれらの要素の組み合わせだけで構成されている場合です。}
782 @lilypond[verbatim,quote,ragged-right]
785 \Staff \RemoveEmptyStaves
806 譜に対してオッシア セクションを作成するために、@c
807 @code{\RemoveEmptyStaffContext} を用いることもできます。@c
808 詳細は @ref{Ossia staves} を参照してください。
810 @cindex hiding ancient staves (古代譜を隠す)
811 @cindex hiding rhythmic staves (リズム譜を隠す)
813 @funindex \RemoveEmptyStaves
815 古代音楽コンテキストの中にある空の譜を隠すために、@c
816 @code{\VaticanaStaff \RemoveEmptyStaves} コマンドが用いられることがあります。@c
817 同様に、空の @code{RhythmicStaff} コンテキストを隠すために、@c
818 @code{\RhythmicStaff \RemoveEmptyStaves} が用いられることがあります。
822 @code{\Staff \RemoveEmptyStaves},
823 @code{\VaticanaStaff \RemoveEmptyStaves},
824 @code{\RhythmicStaff \RemoveEmptyStaves}
830 @lilypondfile[verbatim,quote,texidoc,doctitle]
831 {removing-the-first-empty-line.ly}
835 @rglos{Frenched staff}
838 @rlearning{Visibility and color of objects}
841 @ref{Changing context default settings},
845 @ref{Invisible rests},
846 @ref{Visibility of objects}
849 @rlsr{Staff notation}
852 @rinternals{ChordNames},
853 @rinternals{FiguredBass},
856 @rinternals{VerticalAxisGroup},
857 @rinternals{Staff_symbol_engraver}
860 @code{Staff_symbol_engraver} を削除すると、小節線も隠されます。@c
861 小節線が強制的に可視になるよう設定されている場合、@c
862 フォーマット エラーが発生するかもしれません。@c
863 そのような場合は、エングラーバを削除する代わりに、@c
868 \override NoteHead.no-ledgers = ##t
871 @code{\Staff \RemoveEmptyStaves} に関連する既知の問題と警告は
872 @ref{Changing context default settings} を参照してください。
877 @translationof Writing parts
879 このセクションでは、テンポ指示と楽器名を楽譜に挿入する方法について説明します。@c
880 他のボイスを引用する方法と、演奏指示音符を譜刻する方法についても記述します。
890 @unnumberedsubsubsec 楽器名
891 @translationof Instrument names
893 @cindex instrument names (楽器名)
894 @cindex instrument names, short (短縮楽器名)
896 @code{Staff}, @code{PianoStaff}, @code{StaffGroup}, @code{GrandStaff}
897 それに @code{ChoirStaff} コンテキストの中にある譜の左側に、@c
899 @code{instrumentName} の値が最初の行の譜に対して使用され、@c
900 @code{shortInstrumentName} の値がそれに続くすべての@c
903 @lilypond[verbatim,quote,ragged-right]
905 instrumentName = #"Violin "
906 shortInstrumentName = #"Vln. "
908 c'4.. g'16 c4.. g'16 \break | c1 |
912 @cindex instrument names, complex (複雑な楽器名)
914 @code{\markup} を用いて、より複雑な楽器名を作成することができます:
916 @lilypond[verbatim,quote]
918 instrumentName = \markup {
919 \column { "Clarinetti"
920 \line { "in B" \smaller \flat }
928 @cindex instrument names, centering (楽器名を中央揃えする)
930 2 つ以上の譜コンテキストがグループ化されている場合、@c
931 デフォルトでは楽器名と短縮楽器名は中央揃えされます。@c
932 複数行にわたる楽器名を中央揃えするには、@c
933 @code{\center-column} を用いる必要があります:
935 @lilypond[verbatim,quote,indent=1.5\cm]
938 instrumentName = #"Flute"
943 instrumentName = \markup {
944 \center-column { "Clarinet"
945 \line { "in B" \smaller \flat }
948 } \relative { c''4 b c2 }
953 @funindex short-indent
955 しかしながら、楽器名が長い場合、@code{indent} 設定と @code{short-indent}
956 設定の値を増やさない限り、譜グループの中にある楽器名は中央揃えされません。@c
957 これらの設定についての詳細は @ref{シフトとインデントのための paper 変数,,シフトとインデントのための @code{@bs{}paper} 変数}
960 @lilypond[verbatim,quote,ragged-right]
963 instrumentName = #"Alto Flute in G"
964 shortInstrumentName = #"Flt."
970 instrumentName = #"Clarinet"
971 shortInstrumentName = #"Clar."
980 short-indent = 1.5\cm
984 @cindex instrument names, adding to other contexts (楽器名を他のコンテキストに付け加える)
986 楽器名を他のコンテキスト (@code{ChordNames} や @code{FiguredBass} など)
988 そのコンテキストに @code{Instrument_name_engraver} を追加する必要があります。@c
989 詳細は @ref{Modifying context plug-ins} を参照してください。
991 @cindex instrument names, changing (楽器名を変更する)
992 @cindex changing instrument names (楽器名を変更する)
994 楽曲の途中で @code{shortInstrumentName} を変更することもできます。@c
995 しかしながら、@code{instrumentName} は最初のインスタンスが譜刻され、@c
998 @lilypond[verbatim,quote,ragged-right,relative=1]
1000 instrumentName = #"Flute"
1001 shortInstrumentName = #"Flt."
1006 \set Staff.instrumentName = #"Clarinet"
1007 \set Staff.shortInstrumentName = #"Clt."
1013 @cindex instrument switch (楽器を切り換える)
1014 @cindex switching instruments (楽器を切り換える)
1016 @funindex \addInstrumentDefinition
1017 @funindex \instrumentSwitch
1019 楽器の @emph{切り替え} が必要な場合、切り替えのために必要とされる@c
1020 変更の詳細なリストを作成するために、@code{\addInstrumentDefinition} を
1021 @code{\instrumentSwitch} と組み合わせて使用することがあります。@c
1022 @code{\addInstrumentDefinition} コマンドは 2 つの引数をとります:
1023 識別文字列と、楽器で使用されるコンテキスト プロパティと値の連想リストです。@c
1024 このコマンドは最上位のスコープに配置する必要があります。@c
1025 @code{\instrumentSwitch} は音楽表記の中で使用され、楽器の切り替えを宣言します:
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)
1034 (instrumentCueName . ,(make-bold-markup "cbsn."))
1035 (midiInstrument . "bassoon"))
1038 instrumentName = #"Bassoon"
1042 \compressFullBarRests
1045 \instrumentSwitch "contrabassoon"
1054 @ref{シフトとインデントのための paper 変数,,シフトとインデントのための @code{@bs{}paper} 変数},
1055 @ref{Modifying context plug-ins}
1058 @rlsr{Staff notation}
1061 @rinternals{InstrumentName},
1062 @rinternals{PianoStaff},
1067 @unnumberedsubsubsec 他のボイスを引用する
1068 @translationof Quoting other voices
1070 @cindex quote, voices (ボイスの引用)
1071 @cindex voices, quoting (ボイスを引用する)
1072 @cindex fragments, quoting (楽曲の断片を引用する)
1073 @cindex cue notes (演奏指示音符)
1076 @funindex \quoteDuring
1077 @funindex \transposition
1079 あるボイスが他のボイスと同じ音符を演奏することはごく一般的なことです。@c
1080 例えば、第 1 バイオリンと第2バイオリンがあるパッセージで同じフレーズを@c
1082 これは、ボイスに他のボイスを @emph{引用} させることで実現でき、@c
1083 第 2 ボイスの音楽全体を再入力する必要はありません。
1085 最上位レベルのスコープで用いる @code{\addQuote} コマンドは@c
1086 一部を引用することができる音楽を定義します。
1088 @code{\quoteDuring} コマンドを用いて、引用を開始する位置を示します。@c
1089 このコマンドは 2 つの引数をとります:
1090 @code{\addQuote} で定義した引用するボイスの名前と、@c
1093 @lilypond[verbatim,quote]
1094 fluteNotes = \relative {
1095 a'4 gis g gis | b4^"quoted" r8 ais\p a4( f)
1098 oboeNotes = \relative {
1099 c''4 cis c b \quoteDuring #"flute" { s1 }
1102 \addQuote "flute" { \fluteNotes }
1106 \new Staff \with { instrumentName = "Flute" } \fluteNotes
1107 \new Staff \with { instrumentName = "Oboe" } \oboeNotes
1112 @code{\quoteDuring} で使用される音楽表記が空白休符や複数小節休符ではなく@c
1114 引用は多声となり、予期しない結果となる可能性があります。
1116 @lilypond[verbatim,quote]
1117 fluteNotes = \relative {
1118 a'4 gis g gis | b4^"quoted" r8 ais\p a4( f)
1121 oboeNotes = \relative {
1122 c''4 cis c b \quoteDuring #"flute" { e4 r8 ais b4 a }
1125 \addQuote "flute" { \fluteNotes }
1129 \new Staff \with { instrumentName = "Flute" } \fluteNotes
1130 \new Staff \with { instrumentName = "Oboe" } \oboeNotes
1135 @code{\quoteDuring} コマンドは引用されるパートと引用するパート両方の
1136 @code{\transposition} を使用して、@c
1137 引用されるパートと同じ響きのピッチに変換して、@c
1140 @lilypond[verbatim,quote]
1141 clarinetNotes = \relative c'' {
1144 b4 ais a ais | cis4^"quoted" r8 bis\p b4( f)
1147 oboeNotes = \relative {
1148 c''4 cis c b \quoteDuring #"clarinet" { s1 }
1151 \addQuote "clarinet" { \clarinetNotes }
1156 \new Staff \with { instrumentName = "Clarinet" } \clarinetNotes
1157 \new Staff \with { instrumentName = "Oboe" } \oboeNotes
1163 @cindex articulation-event
1164 @cindex dynamic-event
1167 @funindex quotedEventTypes
1168 @funindex quotedCueEventTypes
1170 デフォルトでは引用される音楽はすべてのアーティキュレーション、強弱記号、@c
1172 @code{quotedEventTypes} コンテキスト プロパティを用いることで、@c
1173 引用される音楽から引用するオブジェクトを選択することが可能です。
1175 @lilypond[verbatim,quote]
1176 fluteNotes = \relative {
1178 b4\<^"quoted" r8 ais a4\f( c->)
1181 oboeNotes = \relative {
1183 \quoteDuring #"flute" { s1 }
1186 \addQuote "flute" { \fluteNotes }
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
1199 引用にもタグを付けることができます。@c
1200 @ref{Using tags} を参照してください。
1204 @ref{Instrument transpositions},
1208 @rlsr{Staff notation}
1211 +@rinternals{Music classes},
1212 @rinternals{QuoteMusic},
1216 @code{\addQuote} 中にある最初の @code{Voice} の内容だけが引用されます。@c
1217 そのため、音楽表記が @code{\new} や @code{\context Voice} を含んでいても、@c
1219 装飾小音符の引用はサポートされておらず、@c
1220 LilyPond がクラッシュする可能性さえあります。
1221 ネストされた連符を引用しようとしてもうまくいきません。
1225 @unnumberedsubsubsec 合図音符をフォーマットする
1226 @translationof Formatting cue notes
1228 @cindex cue notes (合図音符)
1229 @cindex fragments (楽譜の一部分)
1230 @cindex cue notes, formatting (合図音符をフォーマットする)
1231 @cindex formatting, cue notes (合図音符をフォーマットする)
1232 @cindex voices, quoting(ボイスを引用する)
1234 @funindex \cueDuring
1236 @funindex \cueDuringWithClef
1237 @funindex \quoteDuring
1239 @cindex notes, smaller (小さな音符)
1240 @cindex smaller notes (小さな音符)
1243 合図音符をフォーマットする最も簡単な方法は、@c
1244 パートの中で明示的に @code{CueVoice} コンテキストを作成することです。
1252 \stemUp d'8^"flute" c d e fis2
1259 音部記号の変更が必要で、合図音符に適切なサイズの音部記号を譜刻する場合、@c
1260 @code{\cueClef} コマンドは明示的な @code{CueVoice} コンテキストと共に@c
1262 その後、@code{\cueClefUnset} コマンドを用いて、@c
1263 オリジナルの音部記号 -- 再度、適切なサイズにされた -- に戻すことができます。
1265 @lilypond[verbatim,noragged-right]
1270 { e'2\rest r4. \cueClefUnset e,8 }
1272 \cueClef "treble" \stemUp d''8^"flute" c d e fis2
1279 必要があれば、@code{CueVoice} 無しで
1280 @code{\cueClef} コマンドと @code{\cueClefUnset} コマンドを用いることもできます。
1282 @lilypond[verbatim,noragged-right]
1287 d''8^"flute" c d e fis2
1294 -- 例えば、移調を含んでいる、複数の音楽ソースからの合図音符を挿入する --
1296 @code{\cueDuring} コマンドや @code{\cueDuringWithClef} コマンドを@c
1298 これらのコマンドは @code{\quoteDuring} を特殊化したものです。@c
1299 @code{\quoteDuring} については、@c
1300 前のセクションの @ref{Quoting other voices} を参照してください。
1305 \cueDuring #@var{quotename} #@var{direction} #@var{music}
1311 \cueDuringWithClef #@var{quotename} #@var{direction} #@var{clef} #@var{music}
1314 @code{@var{quotename}} に対応する小節の音楽は
1315 @code{CueVoice} コンテキストとして追加されて
1316 @code{@var{music}} と同時進行して、@c
1318 @code{@var{direction}} は引数 @code{UP} または @code{DOWN} を取り、@c
1319 それぞれ第 1 及び第 2 ボイスと調和して、@c
1320 合図音符が他のボイスに対してどのように譜刻されるかを決定します。
1322 このコマンドは @code{@var{partname}} の該当する小節から音符と休符だけを
1323 @code{CueVoice} にコピーします。@c
1324 @code{CueVoice} は暗黙的に作成されて @code{@var{music}} と同時進行し、@c
1326 引数 @code{@var{voice}} は合図音符を第 1 ボイスとして記譜すべきか、@c
1327 第 2 ボイスとして記譜すべきかを決定します。@c
1328 @code{UP} は第 1 ボイスに相当し、@code{DOWN} は第 2 ボイスに相当します。
1330 @lilypond[verbatim,quote]
1331 fluteNotes = \relative {
1332 r2. c''4 | d8 c d e fis2 | g2 d |
1335 oboeNotes = \relative c'' {
1337 \new CueVoice { \set instrumentCueName = "flute" }
1338 \cueDuring #"flute" #UP { R1 }
1342 \addQuote "flute" { \fluteNotes }
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
1358 @warning{以下の例のように @code{Voice} が @code{\cueDuring} で始まる場合、@c
1359 @code{Voice} を明示的に宣言する必要があります。@c
1360 そうしないと音楽表記全体が @code{CueVoice} コンテキストに属してしまいます。}
1362 @lilypond[verbatim,quote]
1363 oboeNotes = \relative {
1364 r2 r8 d''16(\f f e g f a)
1367 \addQuote "oboe" { \oboeNotes }
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 }
1379 一時的な @code{CueVoice} コンテキストの中の @code{instrumentCueName}
1380 プロパティを設定することで、合図を演奏する楽器の名前を表示させることが@c
1382 @code{instrumentCueName} の位置とスタイルは @code{\instrumentSwitch}
1383 オブジェクトによって制御されます -- @ref{Instrument names} を参照して@c
1385 合図音符が音符記号の変更を必要とする場合、手動で変更することができますが、@c
1386 合図音符が終わったところで手動で元の音部記号に戻す必要がありmす。
1388 @lilypond[verbatim,quote]
1389 fluteNotes = \relative {
1390 r2. c''4 d8 c d e fis2 g2 d2
1393 bassoonNotes = \relative c {
1397 \new CueVoice { \set instrumentCueName = "flute" }
1398 \cueDuring #"flute" #UP { R1 }
1403 \addQuote "flute" { \fluteNotes }
1410 あるいはまた、代わりに @code{\cueDuringWithClef} 関数を用いることができます。@c
1411 このコマンドは追加の引数で音部の変更を指定して、@c
1413 合図音部が終了したところで元の音部記号を自動的に譜刻します。
1415 @lilypond[verbatim,quote]
1416 fluteNotes = \relative {
1417 r2. c''4 d8 c d e fis2 g2 d2
1420 bassoonNotes = \relative c {
1423 \new CueVoice { \set instrumentCueName = "flute" }
1424 \cueDuringWithClef #"flute" #UP #"treble" { R1 }
1428 \addQuote "flute" { \fluteNotes }
1435 @funindex \transposedCueDuring
1437 @code{\quoteDuring} と同様に、@code{\cueDuring} は楽器の移調を考慮します。@c
1438 合図音符は合図を受け取る楽器のピッチで作り出され、@c
1439 ソース楽器の同じ響きのピッチになります。
1441 合図音符を移調させるには @code{\transposedCueDuring} を使用します。@c
1442 このコマンドはコンサート ミドル C の音を表すピッチを (絶対モードで) 指定する@c
1444 これは、全く別の場所で登録された楽器から合図を取る場合に有用です。
1446 @lilypond[verbatim,quote]
1447 piccoloNotes = \relative {
1454 bassClarinetNotes = \relative c' {
1458 \transposedCueDuring #"piccolo" #UP d { R1 }
1462 \addQuote "piccolo" { \piccoloNotes }
1465 \new Staff \piccoloNotes
1466 \new Staff \bassClarinetNotes
1470 @cindex removing cue notes (合図音符を削除する)
1471 @cindex cue notes, removing (合図音符を削除する)
1474 @funindex \addInstrumentDefinition
1476 @code{\killCues} コマンドは音楽表記から合図音符を削除します。@c
1477 これにより、同じ音楽表記を使って合図を持つ楽器パートと楽譜を作り出すことが@c
1479 @code{\killCues} コマンドは @code{\cueDuring} によって引用された@c
1482 -- 音部変更と引用元の楽器を識別するラベルなど --
1483 にはタグを付けて楽譜に含めるかどうかを選択することができます。@c
1484 @ref{Using tags} を参照してください。
1486 @lilypond[verbatim,quote]
1487 fluteNotes = \relative {
1488 r2. c''4 d8 c d e fis2 g2 d2
1491 bassoonNotes = \relative c {
1496 \new CueVoice { \set instrumentCueName = "flute" }
1498 \cueDuring #"flute" #UP { R1 }
1499 \tag #'part \clef bass
1503 \addQuote "flute" { \fluteNotes }
1514 \removeWithTag #'part { \killCues { \bassoonNotes } }
1519 あるいはまた、音部変更や楽器ラベルを再利用するために、@c
1520 @code{\addInstrumentDefinition} を用いて楽器の定義に含めることができます。@c
1521 @code{\addInstrumentDefinition} についての説明は
1522 @ref{Instrument names} を参照してください。
1526 @ref{Quoting other voices},
1527 @ref{Instrument transpositions},
1528 @ref{Instrument names},
1534 @rlsr{Staff notation}
1537 @rinternals{CueVoice},
1541 @code{\cueDuring} を使用した場合、@code{Voice} コンテキストと @code{CueVoice}
1542 コンテキストの間で休符の衝突が発生する可能性があります。@c
1543 @code{\cueDuringWithClef} や @code{\transposedCueDuring} を使用する場合、@c
1544 追加で必要となる引数は引用と向きの後に配置する必要があります。