1 @c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
3 Translation of GIT committish: d5647c5fd1c38d4124d2374725b923f4901f3661
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 (タブ譜)
70 @funindex RhythmicStaff
72 @funindex MensuralStaff
73 @funindex VaticanaStaff
74 @funindex GregorianTranscriptionStaff
76 @notation{stave: 譜} (@notation{staff}: 譜 (表) の単称) は
77 @code{\new} コマンドや @code{\context} コマンドで作成されます。@c
78 詳細は @ref{Creating contexts} を参照してください。
80 基本的な譜コンテキストは @code{Staff} です:
82 @lilypond[verbatim,quote,relative=2]
83 \new Staff { c4 d e f }
86 @code{DrumStaff} コンテキストは、一般的なドラム セットのための 5 線譜を@c
89 @code{\drummode} コマンドの後に続けて、楽器をドラム モードで入力します。@c
91 詳細は @ref{Percussion staves} を参照してください。
93 @lilypond[verbatim,quote]
95 \drummode { cymc hh ss tomh }
99 @code{RhythmicStaff} は、入力のリズム価だけを表示する単線譜を作成します。@c
100 (ピッチは無視されますが) 演奏時間が保持されます。@c
101 詳細は @ref{Showing melody rhythms} を参照してください。
103 @lilypond[verbatim,quote,relative=2]
104 \new RhythmicStaff { c4 d e f }
107 @code{TabStaff} は、標準のギター チューニングの 6 弦のタブ譜を作成します。@c
108 詳細は @ref{Default tablatures} を参照してください。
110 @lilypond[verbatim,quote,relative=2]
111 \new TabStaff { c4 d e f }
114 古代音楽の記譜法のために 2 つの譜コンテキストが用意されています:
115 @code{MensuralStaff} と @code{VaticanaStaff} です。@c
116 これらのことは @ref{Pre-defined contexts} で説明されています。
118 @code{GregorianTranscriptionStaff} コンテキストは、@c
119 現代グレゴリア聖歌を記譜するための譜を作成します。@c
122 @lilypond[verbatim,quote,relative=2]
123 \new GregorianTranscriptionStaff { c4 d e f e d }
126 新たに単一譜コンテキストを定義する場合があります。@c
127 詳細は @ref{Defining new contexts} を参照してください。
135 @ref{Creating contexts},
136 @ref{Percussion staves},
137 @ref{Showing melody rhythms},
138 @ref{Default tablatures},
139 @ref{Pre-defined contexts},
141 @ref{Gregorian chant contexts},
142 @ref{Mensural contexts},
143 @ref{Defining new contexts}
146 @rlsr{Staff notation}
150 @rinternals{DrumStaff},
151 @rinternals{GregorianTranscriptionStaff},
152 @rinternals{RhythmicStaff},
153 @rinternals{TabStaff},
154 @rinternals{MensuralStaff},
155 @rinternals{VaticanaStaff},
156 @rinternals{StaffSymbol}
160 @unnumberedsubsubsec 譜をグループ化する
161 @translationof Grouping staves
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 (システム)
178 複数の譜からなるシステムを形成するために譜をグループ化する@c
180 グループ化を行うコンテキストはそれぞれにシステム開始境界線のスタイルと@c
183 コンテキストが指定されていない場合、デフォルトのプロパティが使用されます:
184 グループは垂直の線で始まり、小節線はつながりません。
186 @lilypond[verbatim,quote,relative=2]
193 @code{StaffGroup} コンテキストでは、グループは角括弧で始まり、@c
196 @lilypond[verbatim,quote,relative=2]
203 @code{ChoirStaff} では、グループは角括弧で始まりますが、小節線はつながりません。
205 @lilypond[verbatim,quote,relative=2]
212 @code{GrandStaff} では、グループは波括弧で始まり、小節線はすべての譜を貫きます。
214 @lilypond[verbatim,quote,relative=2]
221 @code{PianoStaff} は @code{GrandStaff} と同一ですが、@c
222 例外として楽器名を刻譜することができます。@c
223 詳細は @ref{Instrument names} を参照してください。
225 @lilypond[verbatim,quote,relative=2]
227 \set PianoStaff.instrumentName = #"Piano"
233 各譜グループ化コンテキストはプロパティ @code{systemStartDelimiter} を@c
235 @code{SystemStartBar}, @code{SystemStartBrace} あるいは
236 @code{SystemStartBracket}。@c
237 4 つ目の境界線 -- @code{SystemStartSquare} も利用可能ですが、@c
240 新たな譜グループ化コンテキストを定義することもできます。@c
241 詳細は @ref{Defining new contexts} を参照してください。
246 @lilypondfile[verbatim,quote,texidoc,doctitle]
247 {use-square-bracket-at-the-start-of-a-staff-group.ly}
249 @lilypondfile[verbatim,quote,texidoc,doctitle]
250 {display-bracket-with-only-one-staff-in-a-system.ly}
253 @cindex mensurstriche layout
254 @cindex renaissance music)
255 @cindex transcription of mensural music
256 @cindex mensural music, transcription of
258 @lilypondfile[verbatim,quote,texidoc,doctitle]
259 {mensurstriche-layout-bar-lines-between-the-staves.ly}
268 @ref{Instrument names},
269 @ref{Defining new contexts}
272 @rlsr{Staff notation}
276 @rinternals{StaffGroup},
277 @rinternals{ChoirStaff},
278 @rinternals{GrandStaff},
279 @rinternals{PianoStaff},
280 @rinternals{SystemStartBar},
281 @rinternals{SystemStartBrace},
282 @rinternals{SystemStartBracket},
283 @rinternals{SystemStartSquare}
286 デフォルトでは @code{PianoStaff} は @code{ChordNames} を受け付けません。
290 @unnumberedsubsubsec ネストされた譜グループ
291 @translationof Nested staff groups
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 (波括弧をネストする)
301 譜グループ化コンテキストは任意の深さにネストすることができます。@c
302 そうした場合、それぞれの子コンテキストは、@c
303 親グループの角括弧に隣接して新しい角括弧を作成します。
305 @lilypond[verbatim,quote,relative=2]@lilypond[verbatim,quote,relative=2]
307 \new Staff { c2 c | c2 c }
309 \new Staff { g2 g | g2 g }
310 \new StaffGroup \with {
311 systemStartDelimiter = #'SystemStartSquare
314 \new Staff { e2 e | e2 e }
315 \new Staff { c2 c | c2 c }
321 新たにネストされた譜グループ化コンテキストを定義することができます。@c
322 詳細は @ref{Defining new contexts} を参照してください。
327 @lilypondfile[verbatim,quote,texidoc,doctitle]
332 @ref{Grouping staves},
333 @ref{Instrument names},
334 @ref{Defining new contexts}
337 @rlsr{Staff notation}
340 @rinternals{StaffGroup},
341 @rinternals{ChoirStaff},
342 @rinternals{SystemStartBar},
343 @rinternals{SystemStartBrace},
344 @rinternals{SystemStartBracket},
345 @rinternals{SystemStartSquare}
349 @node Separating systems
350 @unnumberedsubsubsec Separating systems
352 @cindex system separator mark
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.
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]
382 system-separator-markup = \slashSeparator
383 % following commands are needed only to format this documentation
385 paper-height = 100\mm
396 @rlsr{Staff notation}.
400 @subsection 個々の譜を変更する
401 @translationof Modifying single staves
403 このセクションでは、譜の属性を変更する方法について説明します:
404 例えば、譜線の本数や譜サイズを変更します。@c
405 譜を開始/終了する方法とオッシア セクションをセットする方法についても記述します。
415 @unnumberedsubsubsec 譜シンボル
416 @translationof Staff symbol
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 (加線を変更する)
425 @funindex \startStaff
430 @code{\stopStaff} コマンドと @code{\startStaff} コマンドを使って、@c
431 楽譜内の任意の場所で譜線を停止あるいは (再) 開始させることができます。
433 @lilypond[verbatim,quote,relative=2]
434 \stopStaff f4 d \startStaff g, e
435 f'4 d \stopStaff g, e
436 f'4 d \startStaff g, e
444 @code{StaffSymbol} グラフィカル オブジェクト (加線を含む) に属する譜の線は@c
445 @code{StaffSymbol} プロパティを用いて変更することができます。@c
446 しかしながら、変更は譜が (再) 開始する前に行う必要があります。
450 @lilypond[verbatim,quote,relative=2]
452 \override Staff.StaffSymbol #'line-count = #2
456 \revert Staff.StaffSymbol #'line-count
460 各譜線の位置を変更することもできます。@c
461 値の単位は譜線の間隔の @emph{半分} で、@c
462 新しい位置は通常の中央線からの相対位置です。@c
463 1 つの値に対して 1 本の譜線が譜刻されるので、@c
464 1 つのオーバライドで譜線の位置と本数を変更することができます。
466 @lilypond[verbatim,quote,relative=2]
468 \override Staff.StaffSymbol #'line-positions = #'(1 3 5 -1 -3)
471 \override Staff.StaffSymbol #'line-positions = #'(8 6.5 -6 -8 -0.5)
476 音部記号とミドル C の位置を調節する必要があるかもしれません。@c
477 @ref{音部記号} を参照してください。
480 デフォルトでは、加線 (訳者注: ledger line, 譜の上下に突き出た符頭と符幹に@c
481 付けられる短い譜線) と符幹の太さも影響を受けます。@c
483 @lilypond[verbatim,quote,relative=2]
485 \override StaffSymbol #'thickness = #3
490 しかしながら、加線の太さを譜線の太さから独立して設定することができます。@c
491 2 つの値は譜線の太さと譜線の間隔に掛け算され、@c
492 それらを加算した値が加線の太さになります。
494 @lilypond[verbatim,quote,relative=2]
496 \override StaffSymbol #'thickness = #2
497 \override StaffSymbol #'ledger-line-thickness = #'(0.5 . 0.4)
502 加線の垂直方向の位置を変更することができます:
504 @lilypond[verbatim,quote,relative=2]
506 \override StaffSymbol #'ledger-positions = #'(-3 -2 -1 2 5 6)
511 符頭の位置と加線を持つ他の符頭との関係に応じて、@c
512 符頭の上または下に追加の加線を配置することできます。
514 @lilypond[verbatim,quote,relative=2]
516 \override StaffSymbol #'ledger-extra = #4
521 譜の内部に加線を表示させることもできます。@c
522 この場合、譜線のカスタマイズが必要です。@c
523 以下の例は明示的に @code{legder-position} をセットしない場合とした場合の@c
525 以下の例で、@code{StaffSymbol} 全体に対する @code{\override} を元に戻すには@c
526 @code{\stopStaff} を行う必要があります。
528 @lilypond[fragment,quote,relative=1]
529 \override Staff.StaffSymbol #'line-positions = #'(-8 0 2 4)
533 \override Staff.StaffSymbol #'ledger-positions = #'(-8 -6 (-4 -2) 0)
537 譜線の間隔を変えることができます。この設定は加線の間隔にも影響を与えます。
539 @lilypond[verbatim,quote,relative=2]
541 \override StaffSymbol #'staff-space = #1.5
547 @lilypondfile[verbatim,quote,texidoc,doctitle]
548 {making-some-staff-lines-thicker-than-the-others.ly}
560 @rlsr{Staff notation}
563 @rinternals{StaffSymbol},
564 @rinternals{staff-symbol-interface}
568 @unnumberedsubsubsec オッシア譜
569 @translationof Ossia staves
572 @cindex staff, Frenched
575 @cindex Frenched staves
576 @cindex staff, resizing of (譜をリサイズする)
577 @cindex resizing of staves (譜をリサイズする)
579 @funindex \startStaff
584 適切な位置で新しく同時進行の譜を作成することによって、@c
585 @notation{オッシア} 譜をセットすることができます:
587 @lilypond[verbatim,quote]
588 \new Staff \relative c'' {
592 \new Staff { e4 d f e }
599 しかしながら、上の例は通常は望ましいものではありません。@c
600 オリジナルの譜の上にあり、拍子記号や音部記号を持たず、@c
601 小さなサイズのフォントを使用するオッシア譜を作成するには調整が必要です。@c
602 学習マニュアルの @rlearning{Nesting music expressions} に望ましいオッシア譜を@c
605 以下の例は、オッシア譜をオリジナルの譜の上に配置するために
606 @code{alignAboveContext} プロパティを用いています。@c
607 この手法は、2, 3 のオッシア譜が必要とされているだけである場合であれば、@c
610 @lilypond[verbatim,quote]
611 \new Staff = main \relative c'' {
617 \remove "Time_signature_engraver"
618 alignAboveContext = #"main"
620 \override StaffSymbol #'staff-space = #(magstep -3)
621 \override StaffSymbol #'thickness = #(magstep -3)
630 多くの別個のオッシア譜が必要である場合、@c
631 ある特有の @emph{コンテキスト ID} を持つ空の @code{Staff} コンテキストを@c
633 このコンテキストを @emph{呼び出し}、@c
634 オッシア譜が必要とされる場所で @code{\startStaff} と @code{\stopStaff}
635 を用いることでオッシア譜が作成されます。@c
636 この手法の利点は、以下の例よりも長い楽曲であれば、明らかです。
638 @lilypond[verbatim,quote,ragged-right]
640 \new Staff = ossia \with {
641 \remove "Time_signature_engraver"
642 \override Clef #'transparent = ##t
644 \override StaffSymbol #'staff-space = #(magstep -3)
645 \override StaffSymbol #'thickness = #(magstep -3)
649 \new Staff \relative c' {
653 \context Staff = ossia {
654 \startStaff e4 g8 f e2 \stopStaff
661 \context Staff = ossia {
662 \startStaff g4 e8 f g2 \stopStaff
670 オッシア譜を作成するための代替手段として、@c
671 @code{\RemoveEmptyStaffContext} コマンドが用いられるかもしれません。@c
672 この手法は、オッシア譜が改行の直後に発生する場合、最も便利な手法です。@c
673 @c そのようなケースでは、空白休符を使用する必要はまったくありません:
674 @c @code{\startStaff} と @code{\stopStaff} が必要であるだけです。@c
675 @code{\RemoveEmptyStaffContext} についての更なる情報は、@c
676 @ref{譜を隠す} を参照してください。
678 @lilypond[verbatim,quote,ragged-right]
680 \new Staff = ossia \with {
681 \remove "Time_signature_engraver"
682 \override Clef #'transparent = ##t
684 \override StaffSymbol #'staff-space = #(magstep -3)
685 \override StaffSymbol #'thickness = #(magstep -3)
690 \new Staff \relative c' {
702 \Staff \RemoveEmptyStaves
703 \override VerticalAxisGroup #'remove-first = ##t
711 @lilypondfile[verbatim,quote,texidoc,doctitle]
712 {vertically-aligning-ossias-and-lyrics.ly}
718 @rglos{Frenched staff}
721 @rlearning{Nesting music expressions},
722 @rlearning{Size of objects},
723 @rlearning{Length and thickness of objects}
729 @rlsr{Staff notation}
732 @rinternals{StaffSymbol}
736 @unnumberedsubsubsec 譜を隠す
737 @translationof Hiding staves
740 @cindex Frenched score
742 @cindex Frenched staff
743 @cindex staff, hiding (譜を隠す)
744 @cindex staff, empty (空の譜)
745 @cindex hiding of staves (譜を隠す)
746 @cindex empty staves (空の譜)
748 @funindex \RemoveEmptyStaves
749 @funindex Staff_symbol_engraver
753 @code{Staff} コンテキストから @code{Staff_symbol_engraver} を@c
754 削除することによって、譜線を隠すことができます。@c
755 そうする代わりに、@code{\stopStaff} を用いることもできます。
757 @lilypond[verbatim,quote]
759 \remove "Staff_symbol_engraver"
761 \relative c''' { a8 f e16 d c b a2 }
764 @c 未訳: Frenched Score
765 @code{\layout} ブロックの中で
766 @code{\RemoveEmptyStaffContext} コマンドをセットすることによって、@c
769 このようなスタイルの譜は @q{Frenched Score} として知られています。@c
771 最初のシステム以外のところにあるすべての空の譜を隠して、削除します。
773 @warning{譜が空であると見なされるのは、@c
774 それが複数小節にわたる休符、休符、スキップ、空白休符、@c
775 あるいはそれらの要素の組み合わせだけで構成されている場合です。}
777 @lilypond[verbatim,quote,ragged-right]
780 \Staff \RemoveEmptyStaves
801 譜に対してオッシア セクションを作成するために、@c
802 @code{\RemoveEmptyStaffContext} を用いることもできます。@c
803 詳細は @ref{オッシア譜} を参照してください。
805 @cindex hiding ancient staves (古代譜を隠す)
806 @cindex hiding rhythmic staves (リズム譜を隠す)
808 @funindex \RemoveEmptyStaves
810 古代音楽コンテキストの中にある空の譜を隠すために、@c
811 @code{\VaticanaStaff \RemoveEmptyStaves} コマンドが用いられることがあります。@c
812 同様に、空の @code{RhythmicStaff} コンテキストを隠すために、@c
813 @code{\RhythmicStaff \RemoveEmptyStaves} が用いられることがあります。
817 @code{\Staff \RemoveEmptyStaves},
818 @code{\VaticanaStaff \RemoveEmptyStaves},
819 @code{\RhythmicStaff \RemoveEmptyStaves}
825 @lilypondfile[verbatim,quote,texidoc,doctitle]
826 {removing-the-first-empty-line.ly}
830 @rglos{Frenched staff}
833 @rlearning{Visibility and color of objects}
836 @ref{Changing context default settings},
840 @ref{Invisible rests},
841 @ref{Visibility of objects}
844 @rlsr{Staff notation}
847 @rinternals{ChordNames},
848 @rinternals{FiguredBass},
851 @rinternals{VerticalAxisGroup},
852 @rinternals{Staff_symbol_engraver}
855 @code{Staff_symbol_engraver} を削除すると、小節線も隠されます。@c
856 小節線が強制的に可視になるよう設定されている場合、@c
857 フォーマット エラーが発生するかもしれません。@c
858 そのような場合は、エングラーバを削除する代わりに、@c
862 \override StaffSymbol #'stencil = ##f
863 \override NoteHead #'no-ledgers = ##t
866 @code{\Staff \RemoveEmptyStaves} に関連する既知の問題と警告は
867 @ref{Changing context default settings} を参照してください。
872 @translationof Writing parts
874 このセクションでは、テンポ指示と楽器名を楽譜に挿入する方法について説明します。@c
875 他のボイスを引用する方法と、演奏指示音符を譜刻する方法についても記述します。
885 @unnumberedsubsubsec 楽器名
886 @translationof Instrument names
888 @cindex instrument names (楽器名)
889 @cindex instrument names, short (短縮楽器名)
891 @code{Staff}, @code{PianoStaff}, @code{StaffGroup}, @code{GrandStaff}
892 それに @code{ChoirStaff} コンテキストの中にある譜の左側に、@c
894 @code{instrumentName} の値が最初の行の譜に対して使用され、@c
895 @code{shortInstrumentName} の値がそれに続くすべての@c
898 @lilypond[verbatim,quote,ragged-right,relative=1]
900 instrumentName = #"Violin "
901 shortInstrumentName = #"Vln. "
903 { c4.. g'16 c4.. g'16 \break | c1 }
906 @cindex instrument names, complex (複雑な楽器名)
908 @code{\markup} を用いて、より複雑な楽器名を作成することができます:
910 @lilypond[verbatim,quote,relative=2]
912 instrumentName = \markup {
913 \column { "Clarinetti"
914 \line { "in B" \smaller \flat }
921 @cindex instrument names, centering (楽器名を中央揃えする)
923 2 つ以上の譜コンテキストがグループ化されている場合、@c
924 デフォルトでは楽器名と短縮楽器名は中央揃えされます。@c
925 複数行にわたる楽器名を中央揃えするには、@c
926 @code{\center-column} を用いる必要があります:
928 @lilypond[verbatim,quote,indent=1.5\cm,relative=2]
931 instrumentName = #"Flute"
935 instrumentName = \markup {
936 \center-column { "Clarinet" }
937 \line { "in B" \smaller \flat }
945 @funindex short-indent
947 しかしながら、楽器名が長い場合、@code{indent} 設定と @code{short-indent}
948 設定の値を増やさない限り、譜グループの中にある楽器名は中央揃えされません。@c
949 これらの設定についての詳細は @ref{シフトとインデントのための \paper 変数}
952 @lilypond[verbatim,quote,ragged-right]
956 instrumentName = #"Alto Flute in G"
957 shortInstrumentName = #"Flt."
964 instrumentName = #"Clarinet"
965 shortInstrumentName = #"Clar."
976 short-indent = 1.5\cm
980 @cindex instrument names, adding to other contexts (楽器名を他のコンテキストに付け加える)
982 楽器名を他のコンテキスト (@code{ChordNames} や @code{FiguredBass} など)
984 そのコンテキストに @code{Instrument_name_engraver} を追加する必要があります。@c
985 詳細は @ref{コンテキストのプラグインを変更する} を参照してください。
987 @cindex instrument names, changing (楽器名を変更する)
988 @cindex changing instrument names (楽器名を変更する)
990 楽曲の途中で @code{shortInstrumentName} を変更することもできます。@c
991 しかしながら、@code{instrumentName} は最初のインスタンスが譜刻され、@c
994 @lilypond[verbatim,quote,ragged-right,relative=1]
996 instrumentName = #"Flute"
997 shortInstrumentName = #"Flt."
1002 \set Staff.instrumentName = #"Clarinet"
1003 \set Staff.shortInstrumentName = #"Clt."
1009 @cindex instrument switch (楽器を切り換える)
1010 @cindex switching instruments (楽器を切り換える)
1012 @funindex \addInstrumentDefinition
1013 @funindex addInstrumentDefinition
1014 @funindex \instrumentSwitch
1015 @funindex instrumentSwitch
1017 楽器の @emph{切り替え} が必要な場合、切り替えのために必要とされる@c
1018 変更の詳細なリストを作成するために、@code{\addInstrumentDefinition} を
1019 @code{\instrumentSwitch} と組み合わせて使用することがあります。@c
1020 @code{\addInstrumentDefinition} コマンドは 2 つの引数をとります:
1021 識別文字列と、楽器で使用されるコンテキスト プロパティと値の連想リストです。@c
1022 このコマンドは最上位のスコープに配置する必要があります。@c
1023 @code{\instrumentSwitch} は音楽表記の中で使用され、楽器の切り替えを宣言します:
1025 @lilypond[verbatim,quote,ragged-right]
1026 \addInstrumentDefinition #"contrabassoon"
1027 #`((instrumentTransposition . ,(ly:make-pitch -1 0 0))
1028 (shortInstrumentName . "Cbsn.")
1029 (clefGlyph . "clefs.F")
1030 (middleCPosition . 6)
1032 (instrumentCueName . ,(make-bold-markup "cbsn."))
1033 (midiInstrument . "bassoon"))
1036 instrumentName = #"Bassoon"
1040 \compressFullBarRests
1043 \instrumentSwitch "contrabassoon"
1052 @ref{\paper variables for shifts and indents},
1053 @ref{Modifying context plug-ins}
1056 @rlsr{Staff notation}
1059 @rinternals{InstrumentName},
1060 @rinternals{PianoStaff},
1065 @unnumberedsubsubsec 他のボイスを引用する
1066 @translationof Quoting other voices
1068 @cindex quote, voices (ボイスの引用)
1069 @cindex voices, quoting (ボイスを引用する)
1070 @cindex fragments, quoting (楽曲の断片を引用する)
1071 @cindex cue notes (演奏指示音符)
1075 @funindex \quoteDuring
1076 @funindex quoteDuring
1077 @funindex \transposition
1078 @funindex transposition
1080 あるボイスが他のボイスと同じ音符を演奏することはごく一般的なことです。@c
1081 例えば、第 1 バイオリンと第2バイオリンがあるパッセージで同じフレーズを@c
1083 これは、ボイスに他のボイスを @emph{引用} させることで実現でき、@c
1084 第 2 ボイスの音楽全体を再入力する必要はありません。
1086 最上位レベルのスコープで用いる @code{\addQuote} コマンドは@c
1087 一部を引用することができる音楽を定義します。
1089 @code{\quoteDuring} コマンドを用いて、引用を開始する位置を示します。@c
1090 このコマンドは 2 つの引数をとります:
1091 @code{\addQuote} で定義した引用するボイスの名前と、@c
1094 @lilypond[verbatim,quote]
1095 fluteNotes = \relative c'' {
1096 a4 gis g gis | b4^"quoted" r8 ais\p a4( f)
1099 oboeNotes = \relative c'' {
1100 c4 cis c b \quoteDuring #"flute" { s1 }
1103 \addQuote "flute" { \fluteNotes }
1107 \new Staff \with { instrumentName = "Flute" } \fluteNotes
1108 \new Staff \with { instrumentName = "Oboe" } \oboeNotes
1113 @code{\quoteDuring} で使用される音楽表記が空白休符や複数小節休符ではなく@c
1115 引用は多声となり、予期しない結果となる可能性があります。
1117 @lilypond[verbatim,quote]
1118 fluteNotes = \relative c'' {
1119 a4 gis g gis | b4^"quoted" r8 ais\p a4( f)
1122 oboeNotes = \relative c'' {
1123 c4 cis c b \quoteDuring #"flute" { e4 r8 ais b4 a }
1126 \addQuote "flute" { \fluteNotes }
1130 \new Staff \with { instrumentName = "Flute" } \fluteNotes
1131 \new Staff \with { instrumentName = "Oboe" } \oboeNotes
1136 @code{\quoteDuring} コマンドは引用されるパートと引用するパート両方の
1137 @code{\transposition} を使用して、@c
1138 引用されるパートと同じ響きのピッチに変換して、@c
1141 @lilypond[verbatim,quote]
1142 clarinetNotes = \relative c'' {
1145 b4 ais a ais | cis4^"quoted" r8 bis\p b4( f)
1148 oboeNotes = \relative c'' {
1149 c4 cis c b \quoteDuring #"clarinet" { s1 }
1152 \addQuote "clarinet" { \clarinetNotes }
1157 \new Staff \with { instrumentName = "Clarinet" } \clarinetNotes
1158 \new Staff \with { instrumentName = "Oboe" } \oboeNotes
1164 @cindex articulation-event
1165 @cindex dynamic-event
1168 @funindex quotedEventTypes
1169 @funindex quotedCueEventTypes
1171 デフォルトでは引用される音楽はすべてのアーティキュレーション、強弱記号、@c
1173 @code{quotedEventTypes} コンテキスト プロパティを用いることで、@c
1174 引用される音楽から引用するオブジェクトを選択することが可能です。
1176 @lilypond[verbatim,quote]
1177 fluteNotes = \relative c'' {
1179 b4\<^"quoted" r8 ais a4\f( c->)
1182 oboeNotes = \relative c'' {
1184 \quoteDuring #"flute" { s1 }
1187 \addQuote "flute" { \fluteNotes }
1191 \set Score.quotedEventTypes = #'(note-event articulation-event
1192 crescendo-event rest-event
1193 slur-event dynamic-event)
1194 \new Staff \with { instrumentName = "Flute" } \fluteNotes
1195 \new Staff \with { instrumentName = "Oboe" } \oboeNotes
1200 引用にもタグを付けることができます。@c
1201 @ref{タグを使用する} を参照してください。
1205 @ref{Instrument transpositions},
1209 @rlsr{Staff notation}
1212 +@rinternals{Music classes},
1213 @rinternals{QuoteMusic},
1217 @code{\addQuote} 中にある最初の @code{Voice} の内容だけが引用されます。@c
1218 そのため、音楽表記が @code{\new} や @code{\context Voice} を含んでいても、@c
1220 装飾小音符の引用はサポートされておらず、@c
1221 LilyPond がクラッシュする可能性さえあります。
1222 ネストされた連符を引用しようとしてもうまくいきません。
1226 @unnumberedsubsubsec 合図音符をフォーマットする
1227 @translationof Formatting cue notes
1229 @cindex cue notes (合図音符)
1230 @cindex fragments (楽譜の一部分)
1231 @cindex cue notes, formatting (合図音符をフォーマットする)
1232 @cindex formatting, cue notes (合図音符をフォーマットする)
1233 @cindex voices, quoting(ボイスを引用する)
1235 @funindex \cueDuring
1239 @funindex \cueDuringWithClef
1240 @funindex cueDuringWithClef
1241 @funindex \quoteDuring
1242 @funindex quoteDuring
1244 @cindex notes, smaller (小さな音符)
1245 @cindex smaller notes (小さな音符)
1248 合図音符をフォーマットする最も簡単な方法は、@c
1249 パートの中で明示的に @code{CueVoice} コンテキストを作成することです。
1251 @lilypond[verbatim,relative=1]
1256 \stemUp d'8^"flute" c d e fis2
1262 音部記号の変更が必要で、合図音符に適切なサイズの音部記号を譜刻する場合、@c
1263 @code{\cueClef} コマンドは明示的な @code{CueVoice} コンテキストと共に@c
1265 その後、@code{\cueClefUnset} コマンドを用いて、@c
1266 オリジナルの音部記号 -- 再度、適切なサイズにされた -- に戻すことができます。
1268 @lilypond[verbatim,noragged-right,relative=1]
1272 { e2\rest r4. \cueClefUnset e,8 }
1274 \cueClef "treble" \stemUp d''8^"flute" c d e fis2
1280 必要があれば、@code{CueVoice} 無しで
1281 @code{\cueClef} コマンドと @code{\cueClefUnset} コマンドを用いることもできます。
1283 @lilypond[verbatim,noragged-right,relative=1]
1287 d'8^"flute" c d e fis2
1293 -- 例えば、移調を含んでいる、複数の音楽ソースからの合図音符を挿入する --
1295 @code{\cueDuring} コマンドや @code{\cueDuringWithClef} コマンドを@c
1297 これらのコマンドは @code{\quoteDuring} を特殊化したものです。@c
1298 @code{\quoteDuring} については、@c
1299 前のセクションの @ref{他のボイスを引用する} を参照してください。
1304 \cueDuring #@var{quotename} #@var{direction} #@var{music}
1310 \cueDuringWithClef #@var{quotename} #@var{direction} #@var{clef} #@var{music}
1313 @code{@var{quotename}} に対応する小節の音楽は
1314 @code{CueVoice} コンテキストとして追加されて
1315 @code{@var{music}} と同時進行して、@c
1317 @code{@var{direction}} は引数 @code{UP} または @code{DOWN} を取り、@c
1318 それぞれ第 1 及び第 2 ボイスと調和して、@c
1319 合図音符が他のボイスに対してどのように譜刻されるかを決定します。
1321 このコマンドは @code{@var{partname}} の該当する小節から音符と休符だけを
1322 @code{CueVoice} にコピーします。@c
1323 @code{CueVoice} は暗黙的に作成されて @code{@var{music}} と同時進行し、@c
1325 引数 @code{@var{voice}} は合図音符を第 1 ボイスとして記譜すべきか、@c
1326 第 2 ボイスとして記譜すべきかを決定します。@c
1327 @code{UP} は第 1 ボイスに相当し、@code{DOWN} は第 2 ボイスに相当します。
1329 @lilypond[verbatim,quote]
1330 fluteNotes = \relative c'' {
1331 r2. c4 | d8 c d e fis2 | g2 d |
1334 oboeNotes = \relative c'' {
1336 \new CueVoice { \set instrumentCueName = "flute" }
1337 \cueDuring #"flute" #UP { R1 }
1341 \addQuote "flute" { \fluteNotes }
1350 @code{instrumentCueName} プロパティを設定することによって、@c
1351 @code{\cueDuring} で音楽のどの側面を引用するか調節することができます。@c
1352 このプロパティのデフォルト値は @code{'(note-event rest-event
1353 tie-event beam-event tuplet-span-event)} であり、音符、休符、タイ、連桁、@c
1354 それに連符だけが引用され、アーティキュレーション、強弱記号、マークアップ等は@c
1357 @warning{以下の例のように @code{Voice} が @code{\cueDuring} で始まる場合、@c
1358 @code{Voice} を明示的に宣言する必要があります。@c
1359 そうしないと音楽表記全体が @code{CueVoice} コンテキストに属してしまいます。}
1361 @lilypond[verbatim,quote]
1362 oboeNotes = \relative c'' {
1363 r2 r8 d16(\f f e g f a)
1366 \addQuote "oboe" { \oboeNotes }
1368 \new Voice \relative c'' {
1369 \set Score.quotedCueEventTypes = #'(note-event rest-event tie-event
1370 beam-event tuplet-span-event
1371 dynamic-event slur-event)
1372 \cueDuring #"oboe" #UP { R1 }
1378 一時的な @code{CueVoice} コンテキストの中の @code{instrumentCueName}
1379 プロパティを設定することで、合図を演奏する楽器の名前を表示させることが@c
1381 @code{instrumentCueName} の位置とスタイルは @code{\instrumentSwitch}
1382 オブジェクトによって制御されます -- @ref{Instrument names} を参照して@c
1384 合図音符が音符記号の変更を必要とする場合、手動で変更することができますが、@c
1385 合図音符が終わったところで手動で元の音部記号に戻す必要がありmす。
1387 @lilypond[verbatim,quote]
1388 fluteNotes = \relative c'' {
1389 r2. c4 d8 c d e fis2 g2 d2
1392 bassoonNotes = \relative c {
1396 \new CueVoice { \set instrumentCueName = "flute" }
1397 \cueDuring #"flute" #UP { R1 }
1402 \addQuote "flute" { \fluteNotes }
1409 あるいはまた、代わりに @code{\cueDuringWithClef} 関数を用いることができます。@c
1410 このコマンドは追加の引数で音部の変更を指定して、@c
1412 合図音部が終了したところで元の音部記号を自動的に譜刻します。
1414 @lilypond[verbatim,quote]
1415 fluteNotes = \relative c'' {
1416 r2. c4 d8 c d e fis2 g2 d2
1419 bassoonNotes = \relative c {
1422 \new CueVoice { \set instrumentCueName = "flute" }
1423 \cueDuringWithClef #"flute" #UP #"treble" { R1 }
1427 \addQuote "flute" { \fluteNotes }
1434 @funindex \transposedCueDuring
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 c''' {
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 (合図音符を削除する)
1475 @funindex \addInstrumentDefinition
1476 @funindex addInstrumentDefinition
1478 @code{\killCues} コマンドは音楽表記から合図音符を削除します。@c
1479 これにより、同じ音楽表記を使って合図を持つ楽器パートと楽譜を作り出すことが@c
1481 @code{\killCues} コマンドは @code{\cueDuring} によって引用された@c
1484 -- 音部変更と引用元の楽器を識別するラベルなど --
1485 にはタグを付けて楽譜に含めるかどうかを選択することができます。@c
1486 @ref{タグを使用する} を参照してください。
1488 @lilypond[verbatim,quote]
1489 fluteNotes = \relative c'' {
1490 r2. c4 d8 c d e fis2 g2 d2
1493 bassoonNotes = \relative c {
1498 \new CueVoice { \set instrumentCueName = "flute" }
1500 \cueDuring #"flute" #UP { R1 }
1501 \tag #'part \clef bass
1505 \addQuote "flute" { \fluteNotes }
1516 \removeWithTag #'part { \killCues { \bassoonNotes } }
1521 あるいはまた、音部変更や楽器ラベルを再利用するために、@c
1522 @code{\addInstrumentDefinition} を用いて楽器の定義に含めることができます。@c
1523 @code{\addInstrumentDefinition} についての説明は
1524 @ref{Instrument names} を参照してください。
1528 @ref{Quoting other voices},
1529 @ref{Instrument transpositions},
1530 @ref{Instrument names},
1536 @rlsr{Staff notation}
1539 @rinternals{CueVoice},
1543 @code{\cueDuring} を使用した場合、@code{Voice} コンテキストと @code{CueVoice}
1544 コンテキストの間で休符の衝突が発生する可能性があります。@c
1545 @code{\cueDuringWithClef} や @code{\transposedCueDuring} を使用する場合、@c
1546 追加で必要となる引数は引用と向きの後に配置する必要があります。