@c -*- coding: utf-8; mode: texinfo; documentlanguage: ja -*-
@ignore
- Translation of GIT committish: c028761d49ac4820206806dbc58e9704a87b4a8
+ Translation of GIT committish: c1b0482f63f881bd3f67845e5f76a3e04675ef2a
When revising a translation, copy the HEAD committish of the
version that you are working on. For details, see the Contributors'
Guide, node Updating translation committishes..
@end ignore
-@c \version "2.13.39"
+@c \version "2.19.22"
@c Translators: Yoshiki Sawada
@c Translation status: post-GDP
しかしながら、この例はスタート地点として役に立ちます。
@funindex \book
-@funindex book
@funindex \score
-@funindex score
@cindex book
@cindex score
LilyPond は以下のような入力:
@example
-\relative c'' @{
- c4 a d c
+\relative @{
+ c''4 a d c
@}
@end example
\score @{
\new Staff @{
\new Voice @{
- \relative c'' @{
- c4 a b c
+ \relative @{
+ c''4 a b c
@}
@}
@}
@end example
@funindex \header
-@funindex header
@funindex \layout
-@funindex layout
@funindex \midi
-@funindex midi
@cindex header (ヘッダ)
@cindex layout (レイアウト)
@cindex midi
@noindent
これら 3 つのコマンド -- @code{\header}, @code{\layout}, @code{\midi} -- は@c
-特別なものであるということに注意してください:
+特別なものであるということに注意してください:
バックスラッシュ (@code{@bs{}}) で始まる他の多くのコマンドとは異なり、@c
これらは音楽表記 @emph{ではなく}、何らかの音楽表記の一部でもありません。@c
そのため、これらは @code{\score} ブロックの中に置くこともできますし、@c
-- 例えば、このセクションの最初の例のように @code{\header} は@c
しばしば @code{\score} コマンドの上に置かれます。
-以前は見なかった他の 2 つのコマンドは @code{\layout @{ @}} と
+以前は見なかった他の 2 つのコマンドは @code{\layout @{ @}} と
@code{\midi @{ @}} です。@c
それらが上記のように記述された場合、LilyPond はそれぞれ譜刻された楽譜と
MIDI 出力を作り出します。@c
-それらは記譜法リファレンスの @ruser{Score layout} と
+それらは記譜法リファレンスの @ruser{Score layout} と
@ruser{Creating MIDI files} で完全に記述されています。
@cindex scores, multiple (複数の Score)
@cindex book block, implicit (暗黙の book ブロック)
@cindex implicit book block (暗黙の book ブロック)
@funindex \book
-@funindex book
あなたは複数の @code{\score} ブロックを記述するかもしれません。@c
それらはそれぞれ別々の楽譜として扱われますが、それらは結合されて@c
@cindex layout block, effect of location (レイアウト ブロックの配置場所による影響)
-各 @code{\layout} ブロックはそのブロックを含んでいる @code{\score} ブロックや
-@code{\book} ブロックに影響を与えます --
+各 @code{\layout} ブロックはそのブロックを含んでいる @code{\score} ブロックや
+@code{\book} ブロックに影響を与えます --
つまり、ある @code{\score} ブロックの内部にある @code{\layout} ブロックは@c
その @code{\score} ブロックにだけ影響を与え、@code{\score} ブロックの@c
外部にある (それゆえ、明示的あるいは暗黙的に @code{\book} ブロックの中に@c
すべてのテンプレートがこれを使っています:
@example
-melody = \relative c' @{
- c4 a b c
+melody = \relative @{
+ c'4 a b c
@}
\score @{
@translationof Score is a (single) compound musical expression
@funindex \score
-@funindex score
@cindex score
@cindex contents of a score block (score ブロックの内容)
@cindex score block, contents of (score ブロックの内容)
@cindex compound music expression (複合音楽表記)
@cindex music expression, compound (複合音楽表記)
-前のセクション -- @ref{LilyPond ファイル構造の紹介} -- で
+前のセクション -- @ref{LilyPond ファイル構造の紹介} -- で
LilyPond 入力ファイルの一般的な構造について見てきました。@c
-しかしながら、我々は最も重要な部分を飛ばしてきたようです:
+しかしながら、我々は最も重要な部分を飛ばしてきたようです:
どうやって @code{\score} の後に記述するものを見つけ出すのでしょうか?
我々はそのことを完全には飛ばしてきませんでした。@c
@end quotation
@noindent
-音楽表記と複合音楽表記が意味しているものを理解するには、チュートリアルの
+音楽表記と複合音楽表記が意味しているものを理解するには、チュートリアルの
@ref{音楽表記についての説明} を読み返すと役に立つかもしれません。@c
そこでは、小さな音楽表記 -- 音符から始めて、それから和音など -- から@c
大きな音楽表記を構築する方法を説明しています。@c
ワーグナーのオペラの長さはこのマニュアルの軽く 2 倍はあります。@c
そのため、歌手とピアノだけを加えることにします。@c
-このアンサンブルでは複数の譜をまとめて左端に波括弧を付ける
+このアンサンブルでは複数の譜をまとめて左端に波括弧を付ける
@code{StaffGroup} は必要ありません。@c
そのため、それを削除します。@c
しかしながら、歌手とピアノが@emph{必要}です。
@end example
@end ignore
-歌手とピアノが同時進行であることを示すために @code{@{ ... @}} の代わりに
+歌手とピアノが同時進行であることを示すために @code{@{ ... @}} の代わりに
@code{<< ... >>} を使用するということを思い出してください。@c
こうすることで、ボーカル パートはピアノ パートの上に表示されます。@c
上の例で歌手の譜が一続きの音楽表記を保持するだけであるのなら
@code{\new Voice = "vocal"} の後の波括弧の中に、以下を書き加えることができます:
@example
-\relative c'' @{
- r4 d8\noBeam g, c4 r
+\relative @{
+ r4 d''8\noBeam g, c4 r
@}
@end example
これで、実際の楽譜の一部ができます:
@lilypond[verbatim,quote,ragged-right]
-melody = \relative c'' { r4 d8\noBeam g, c4 r }
+melody = \relative { r4 d''8\noBeam g, c4 r }
text = \lyricmode { And God said, }
-upper = \relative c'' { <g d g,>2~ <g d g,> }
-lower = \relative c { b2 e }
+upper = \relative { <g' d g,>2~ <g d g,> }
+lower = \relative { b,2 e }
\score {
<<
@lilypond[verbatim,quote,ragged-right]
\new Staff {
- \relative g' {
- r4 g8 g c4 c8 d |
+ \relative {
+ r4 g'8 g c4 c8 d |
e4 r8
<<
{ f8 c c }
@lilypond[verbatim,quote,ragged-right]
\new Staff = "main" {
- \relative g' {
- r4 g8 g c4 c8 d |
+ \relative {
+ r4 g'8 g c4 c8 d |
e4 r8
<<
{ f8 c c }
オッシアはしばしば音部記号や拍子記号無しで描かれ、@c
通常は小さなフォントで描かれます。@c
これらはまだ紹介されていない追加のコマンドを必要とします。@c
-@ref{オブジェクトのサイズ} と @ruser{Ossia staves} を参照してください。
+@ref{オブジェクトのサイズ} と @ruser{オッシア譜} を参照してください。
@node ネストされない括弧とタイ
-- @code{[ @{ ( .. ) @} ]} のように --
が一般的な使い方であり、@c
括弧の終わりの順序は正確に括弧の始まりの順序と逆になります。@c
-このことは上記の表で @q{囲みます} という言葉で記述されている
+このことは上記の表で @q{囲みます} という言葉で記述されている
3 種類の括弧に対しては@strong{必須}となります
-- それらは適切にネストされなければなりません。@c
しかしながら、残りの括弧のような構成物
タイが 2 つの連符にまたがっていて、@c
さらにフレージング スラーが連符の外にまで伸びています (行 3 と 4)。
-@lilypond[quote,verbatim,ragged-right,relative=1]
-r16[ g \times 2/3 { r16 e'8] }
-g,16( a \times 2/3 { b16 d) e }
-g,8[( a \times 2/3 { b8 d) e~] } |
-\times 4/5 { e32\( a, b d e } a4.\)
+@lilypond[quote,verbatim,ragged-right]
+\relative {
+ r16[ g' \tuplet 3/2 { r16 e'8] }
+ g,16( a \tuplet 3/2 { b16 d) e }
+ g,8[( a \tuplet 3/2 { b8 d) e~] } |
+ \tuplet 5/4 { e32\( a, b d e } a4.\)
+}
@end lilypond
歌手は歌うボイスを必要とし、@c
LilyPond も歌う (演奏する) ボイスを必要とします。@c
-楽譜の中にあるすべての楽器に対する実際の音楽はボイスの中に保持されます
+楽譜の中にあるすべての楽器に対する実際の音楽はボイスの中に保持されます
-- このことは LilyPond すべてのコンセプトの中での最も基礎的なことです。
@menu
* 私はボイスを聴いている::
-* ã\83\9cã\82¤ã\82¹ã\81®æ\98\8e示ç\9a\84ã\81ªã\82¤ã\83³ã\82¹ã\82¿ã\83³ã\82¹å\8c\96::
+* ã\83\9cã\82¤ã\82¹ã\82\92æ\98\8e示ç\9a\84ã\81«ã\82¤ã\83³ã\82¹ã\82¿ã\83³ã\82¹å\8c\96ã\81\99ã\82\8b::
* ボイスとボーカル::
@end menu
@cindex voices vs. chords (ボイス vs. 和音)
@cindex chords vs. voices (和音 vs. ボイス)
-LilyPond の楽譜の中で最も低レベルで、最も基礎的であり、最も内部にあるレイヤは
+LilyPond の楽譜の中で最も低レベルで、最も基礎的であり、最も内部にあるレイヤは
@q{ボイス コンテキスト} または縮めて単に @q{ボイス} と呼ばれます。@c
ボイスはときどき他の記譜法パッケージの中で @q{レイヤ} と呼ばれます。
ボイス コンテキストが明示的に宣言されていない場合、この章の始めで@c
見てきたようにボイス コンテキストが 1 つ自動的に生成されます。@c
オーボエなどといった楽器は同時に 1 つの音符だけを演奏できます。@c
-そのような楽器のために書かれた音楽は単声であり、ボイスを 1 つだけを@c
-必要とします。@c
+そのような楽器のために書かれた楽譜はボイスを 1 つだけを必要とします。@c
ピアノのように同時に複数の音符を演奏することができる楽器はしばしば、@c
それらが演奏することのできる同時進行の異なる音符やリズムを@c
エンコードするために、複数のボイスを必要とします。
この例は単一の山括弧からなる和音記号 @code{< ... >} を使って@c
表記することができ、必要とされるボイスは 1 つだけです。@c
-しかしながら、F シャープが A に移行する際に、F シャープは実際には
+しかしながら、F シャープが A に移行する際に、F シャープは実際には
8 分音符であり、そのあとに 8 分音符の G が続くとしたらどうでしょうか?@c
そのような場合、同時に開始されるが演奏時間が異なる 2 つの音符を@c
持つことになります: 4 分音符の D と 8 分音符の F シャープです。@c
これらの音符をどのように記述すればよいのでしょうか?@c
これらの音符は和音として記述することはできません。@c
なぜなら、和音の中の音符はすべて同じ演奏時間でなければならないからです。@c
-そして、それらの音符は同時に開始しなければならないので、2 つのシーケンシャルな
+そして、それらの音符は同時に開始しなければならないので、2 つのシーケンシャルな
(連続した) 音符として記述することもできません。@c
この場合は 2 つのボイスが必要となります。
ダブル バックスラッシュ @code{\\} で区切られなければなりません。@c
ダブル バックスラッシュが無ければ、すべての音符は単一のボイスの中に挿入され、@c
通常はエラーとなります。@c
-ã\81\93ã\81®ã\83\86ã\82¯ã\83\8bã\83\83ã\82¯ã\81¯ã\80\81大é\83¨å\88\86ã\81\8cå\8d\98声ã\81§ã\81\82ã\82\8aã\80\81@c
-時々短い部分で多声になる楽曲に特に適しています。
+ã\81\93ã\81®ã\83\86ã\82¯ã\83\8bã\83\83ã\82¯ã\81¯ã\80\81大é\83¨å\88\86ã\81\8cå\90\8cã\81\98é\9f³ã\81§ã\80\81æ\99\82ã\80\85ç\9fã\81\84é\83¨å\88\86ã\81§å¤\9a声ã\81«ã\81ªã\82\8b楽æ\9b²ã\81«ç\89¹ã\81«@c
+適しています。
以下では、上記の例の和音を 2 つのボイスに分け、経過音とスラーを付け加えています:
-@lilypond[quote,verbatim,ragged-right,relative=2]
-\key g \major
-% Voice "1" Voice "2"
-<< { g4 fis8( g) a4 g } \\ { d4 d d d } >>
+@lilypond[quote,verbatim,ragged-right]
+\relative {
+ \key g \major
+ % Voice = "1" Voice = "2"
+ << { g'4 fis8( g) a4 g } \\ { d4 d d d } >>
+}
@end lilypond
この例では 2 番目のボイスの符幹が下向きになっていることに気付いてください。
今度はもう 1 つ簡単な例を挙げてみます:
-
@lilypond[quote,verbatim,fragment,ragged-right,relative=2]
\key d \minor
-% Voice "1" Voice "2"
+% Voice = "1" Voice = "2"
<< { r4 g g4. a8 } \\ { d,2 d4 g } >> |
<< { bes4 bes c bes } \\ { g4 g g8( a) g4 } >> |
<< { a2. r4 } \\ { fis2. s4 } >> |
しかしながら、各小節に多くの音符がある場合、@c
以下のようにボイス毎に分離した方が良いかもしれません:
-@lilypond[quote,verbatim,ragged-right,relative=2]
-\key d \minor
-<< {
- % Voice "1"
- r4 g g4. a8 |
- bes4 bes c bes |
- a2. r4 |
-} \\ {
- % Voice "2"
- d,2 d4 g |
- g4 g g8( a) g4 |
- fis2. s4 |
-} >>
+@lilypond[quote,verbatim,ragged-right]
+<<
+ \key d \minor
+ \relative { % Voice = "1"
+ r4 g' g4. a8 |
+ bes4 bes c bes |
+ a2. r4 |
+ } \\
+ \relative { % Voice = "2"
+ d'2 d4 g |
+ g4 g g8( a) g4 |
+ fis2. s4 |
+ }
+>>
@end lilypond
付け加えることによって、3 つかそれ以上のボイスを持たせることが可能です。
ボイス コンテキストは @code{"1"}, @code{"2"} などの名前を持ちます。@c
-各コンテキストの中では、スラー、符幹、タイ、強弱記号などの@c
-垂直方向の向きは適切にセットされます。
+最初の 2 つのコンテキストは @emph{外側} のボイスをセットして、@c
+上のボイスはコンテキスト @code{"1"}、下のボイスはコンテキスト @code{"2"}
+になります。@c
+内側のボイスはコンテキスト @code{"3"} と @code{"4"} になります。@c
+これらの各コンテキストでは、スラー、符幹、タイ、強弱記号などの垂直方向の@c
+向きは適切にセットされます。
@lilypond[quote,verbatim,fragment]
-\new Staff \relative c' {
+\new Staff \relative {
% Main voice
- c16 d e f
- % Voice "1" Voice "2" Voice "3"
+ c'16 d e f
+ % Voice = "1" Voice = "2" Voice = "3"
<< { g4 f e } \\ { r8 e4 d c8 ~ } >> |
- << { d2 e2 } \\ { c8 b16 a b8 g ~ g2 } \\ { s4 b4 c2 } >> |
+ << { d2 e2 } \\ { c8 b16 a b8 g ~ 2 } \\ { s4 b4 c2 } >> |
}
@end lilypond
またがって分かれるかもしれないということに注意してください。
@lilypond[quote,verbatim]
-\new Staff \relative c' {
+\new Staff \relative {
% Main voice
- c16 d e f
+ c'16 d e f
<< % Bar 1
{
\voiceOneStyle
{ d2 e }
\\
% Voice 2 continues
- { c8 b16 a b8 g~ g2 }
+ { c8 b16 a b8 g~ 2 }
\\
{
\voiceThreeStyle
@code{\voiceNeutralStyle} (これもここでは使用されていません) は@c
符頭のスタイルをデフォルトに戻します。@c
後ほど、ユーザがこのようなコマンドを作成するための方法を見ていきます。@c
-@ref{オブジェクトの可視性と色} と @ref{調整のために変数を使用する}
+@ref{オブジェクトの可視性と色} と @ref{調整のために変数を使用する}
を参照してください。
@cindex polyphony and relative note entry (多声と相対音符入力)
@c The following should appear as music without code
@lilypond[quote,ragged-right]
-\new Staff \relative c'' {
+\new Staff \relative {
\key aes \major
<< % Voice one
- { c2 aes4. bes8 }
+ { c''2 aes4. bes8 }
\\ % Voice two
- { aes2 f4 fes }
- \\ % No voice three
- \\ % Voice four
{
% Ignore these for now - they are explained in Ch 4
- \once \override NoteColumn #'force-hshift = #0
- <ees c>2
- \once \override NoteColumn #'force-hshift = #0.5
+ \once \override NoteColumn.ignore-collision = ##t
+ <ees, c>2
+ \once \override NoteColumn.force-hshift = #0.5
des2
}
+ \\ % No voice three
+ \\ % Voice four
+ {
+ \override NoteColumn.force-hshift = #0
+ aes'2 f4 fes
+ }
>> |
<c ees aes c>1 |
}
@c The following should appear as music without code
@c The three voice styles should be defined in -init
@lilypond[quote,ragged-right]
-\new Staff \relative c'' {
+\new Staff \relative {
\key aes \major
<<
{ % Voice one
\voiceOneStyle
- c2 aes4. bes8
+ c''2 aes4. bes8
}
\\ % Voice two
{ \voiceTwoStyle
- aes2 f4 fes
+ % Ignore these for now - they are explained in Ch 4
+ \once \override NoteColumn.ignore-collision = ##t
+ <ees, c>2
+ \once \override NoteColumn.force-hshift = #0.5
+ des2
}
\\ % No Voice three (we want stems down)
\\ % Voice four
{ \voiceThreeStyle
- % Ignore these for now - they are explained in Ch 4
- \once \override NoteColumn #'force-hshift = #0
- <ees c>2
- \once \override NoteColumn #'force-hshift = #0.5
- des2
+ \override NoteColumn.force-hshift = #0
+ aes'2 f4 fes
}
>> |
<c ees aes c>1 |
この音楽のコードをゼロから記述してみましょう。@c
これから見ていくように、いくつかの問題に遭遇します。@c
-すでに学んだように、最初の小節の音楽を 3 つのボイスに分けて記述するために
+すでに学んだように、最初の小節の音楽を 3 つのボイスに分けて記述するために
@code{<< \\ >>} 構造を使用します:
@c ignore
@lilypond[quote,verbatim,fragment,ragged-right]
-\new Staff \relative c'' {
+\new Staff \relative {
\key aes \major
<<
- { c2 aes4. bes8 } \\ { aes2 f4 fes } \\ { <ees c>2 des2 }
+ { c''2 aes4. bes8 } \\ { <ees, c>2 des } \\ { aes'2 f4 fes }
>>
<c ees aes c>1
}
ボイス 3 を省略するには、@code{\\} を 2 つ記述します:
@lilypond[quote,verbatim,fragment,ragged-right]
-\new Staff \relative c'' {
+\new Staff \relative {
\key aes \major
<< % Voice one
- { c2 aes4. bes8 }
+ { c''2 aes4. bes8 }
\\ % Voice two
- { aes2 f4 fes }
+ { <ees, c>2 des }
\\ % Omit Voice three
\\ % Voice four
- { <ees c>2 des2 }
+ { aes'2 f4 fes }
>> |
<c ees aes c>1 |
}
@noindent
これにより符幹の向きが修正されました。@c
-しかしながら、@c
-複数のボイスを持つ場合にしばしば発生する問題に遭遇してしまいました
--- あるボイスの中にある音符の符幹が他のボイスの中にある符頭と衝突しています。@c
-音符をレイアウトするときに、LilyPond は 2 つのボイスの符幹の向きを@c
-反対にすることによって 2 つのボイスの音符や和音が@c
-同じ垂直方向の音符列に位置することを可能にします。@c
-しかしながら、3 番目や 4 番目のボイスは符頭の衝突を避けるために@c
-必要があれば移動させられます。@c
-これは普通はうまくいきますが、この例では一番下のボイスの音符は@c
-デフォルトの状態では明らかにうまくいっていません。@c
-LilyPond は音符の水平方向位置を調節するためにいくつかの手段を提供します。@c
-我々はまだこの問題を修正するための方法を見ていく準備が整っていないので、@c
-この問題は後に残しておくことにします
--- @ref{表記の重なりを修正する} の @code{force-hshift} プロパティを@c
-参照してください。
+しかしながら、音符の水平方向の配置が望んだとおりになっていません。@c
+内側の音符の符頭や符幹が外側のボイスと衝突する場合 LilyPond は内側の@c
+音符の位置をずらしますが、これはピアノ譜では不適切です。@c
+他の状況でも、LilyPond が音符の位置をずらしても衝突が解決されない場合が@c
+あります。@c
+LilyPond は音符の水平方向の位置を調節するための手段をいくつか提供します。@c
+しかしながら、我々はまだこの問題を修正するための方法を見ていく準備が@c
+整っていないので、この問題は後に残しておくことにします
+-- @ref{Fixing overlapping notation} の @code{force-hshift} プロパティ@c
+を参照してください。
+@warning{歌詞、スパナ (スラー、タイ、強弱のヘアピン記号など) をボイスを@c
+@q{またいで} 作成することはできません。}
@seealso
-記譜法リファレンス: @ruser{Multiple voices}
-@c 複数のボイス
+記譜法リファレンス:
+@ruser{複数のボイス}
-@node ã\83\9cã\82¤ã\82¹ã\81®æ\98\8e示ç\9a\84ã\81ªã\82¤ã\83³ã\82¹ã\82¿ã\83³ã\82¹å\8c\96
-@subsection ã\83\9cã\82¤ã\82¹ã\81®æ\98\8e示ç\9a\84ã\81ªã\82¤ã\83³ã\82¹ã\82¿ã\83³ã\82¹å\8c\96
+@node ã\83\9cã\82¤ã\82¹ã\82\92æ\98\8e示ç\9a\84ã\81«ã\82¤ã\83³ã\82¹ã\82¿ã\83³ã\82¹å\8c\96ã\81\99ã\82\8b
+@subsection ã\83\9cã\82¤ã\82¹ã\82\92æ\98\8e示ç\9a\84ã\81«ã\82¤ã\83³ã\82¹ã\82¿ã\83³ã\82¹å\8c\96ã\81\99ã\82\8b
@translationof Explicitly instantiating voices
@funindex \voiceOne
-@funindex voiceOne
@funindex \voiceTwo
-@funindex voiceTwo
@funindex \voiceThree
-@funindex voiceThree
@funindex \voiceFour
-@funindex voiceFour
@funindex \oneVoice
-@funindex oneVoice
@funindex \new Voice
@cindex voice contexts, creating (ボイス コンテキストを作成する)
多声部音楽を作成するためにボイス コンテキストを手動で
@code{<< >>} ブロックの中に作成することもできます。@c
符幹、スラーなどの向きを示すために
-@code{\voiceOne} ... @code{\voiceFour} を使用します。@c
+@code{\voiceOne} @dots{} @code{\voiceFour} を使用します。@c
この手法は各ボイスを別々にして、より記述的な名前を与えることを可能にするため、@c
長い楽譜ではわかりやすいものになります。
@example
\new Staff @{
- \relative c' @{
- << @{ e4 f g a @} \\ @{ c,4 d e f @} >>
+ \relative @{
+ << @{ e'4 f g a @} \\ @{ c,4 d e f @} >>
@}
@}
@end example
@example
\new Staff <<
- \new Voice = "1" @{ \voiceOne \relative c' @{ e4 f g a @} @}
- \new Voice = "2" @{ \voiceTwo \relative c' @{ c4 d e f @} @}
+ \new Voice = "1" @{ \voiceOne \relative @{ e'4 f g a @} @}
+ \new Voice = "2" @{ \voiceTwo \relative @{ c'4 d e f @} @}
>>
@end example
@c The following example should not display the code
@lilypond[ragged-right,quote]
\new Staff <<
- \new Voice = "1" { \voiceOne \relative c' { e4 f g a } }
- \new Voice = "2" { \voiceTwo \relative c' { c4 d e f } }
+ \new Voice = "1" { \voiceOne \relative { e'4 f g a } }
+ \new Voice = "2" { \voiceTwo \relative { c'4 d e f } }
>>
@end lilypond
マークアップ、タイ、スラー、強弱記号に与える影響を見ていきましょう:
@lilypond[quote,ragged-right,verbatim]
-\relative c' {
+\relative {
% Default behavior or behavior after \oneVoice
- c4 d8~ d e4( f | g4 a) b-> c |
+ c'4 d8~ 8 e4( f | g4 a) b-> c |
}
@end lilypond
@lilypond[quote,ragged-right,verbatim]
-\relative c' {
+\relative {
\voiceOne
- c4 d8~ d e4( f | g4 a) b-> c |
+ c'4 d8~ 8 e4( f | g4 a) b-> c |
\oneVoice
- c,4 d8~ d e4( f | g4 a) b-> c |
+ c,4 d8~ 8 e4( f | g4 a) b-> c |
}
@end lilypond
@lilypond[quote,ragged-right,verbatim]
-\relative c' {
+\relative {
\voiceTwo
- c4 d8~ d e4( f | g4 a) b-> c |
+ c'4 d8~ 8 e4( f | g4 a) b-> c |
\oneVoice
- c,4 d8~ d e4( f | g4 a) b-> c |
+ c,4 d8~ 8 e4( f | g4 a) b-> c |
}
@end lilypond
-今度は、前のセクションの例を使って同じ多声部音楽のパッセージを
+今度は、前のセクションの例を使って同じ多声部音楽のパッセージを
3 つの異なる方法で表記する例を見ていきます。@c
それぞれ異なる状況で利点があります。
-1 つはメイン ボイスに属する @code{<< >>} の内部に直接表記を記述する方法です
+1 つはメイン ボイスに属する @code{<< >>} の内部に直接表記を記述する方法です
(しかしながら、音符は @code{<< \\ >>} 構造の中に置かれては@strong{いません})。@c
これはメイン ボイスの途中で追加のボイスが現れる場合に有用です。@c
ここでは例にさらに調整を加えます。@c
示しています。
@lilypond[quote,ragged-right,verbatim]
-\new Staff \relative c' {
+\new Staff \relative {
\voiceOneStyle
- % The following notes are monophonic
- c16^( d e f
+ % This section is homophonic
+ c'16^( d e f
% Start simultaneous section of three voices
<<
% Continue the main voice in parallel
\new Voice {
% Set stems, etc., down
\voiceTwo
- r8 e4 d c8~ | c8 b16 a b8 g~ g2 |
+ r8 e4 d c8~ | 8 b16 a b8 g~ 2 |
}
% Initiate third voice
\new Voice {
@cindex voices, nesting (ボイスをネストさせる)
@lilypond[quote,ragged-right,verbatim]
-\new Staff \relative c' {
- c16^( d e f
+\new Staff \relative {
+ c'16^( d e f
<<
{ g4 f e | d2 e) | }
\new Voice {
\voiceTwo
r8 e4 d c8~ |
<<
- { c8 b16 a b8 g~ g2 | }
+ { c8 b16 a b8 g~ 2 | }
\new Voice {
\voiceThree
s4 b c2 |
ボイスが無音の場所を飛ばすには以下のように空白音符を使用します:
@lilypond[quote,ragged-right,verbatim]
-\new Staff \relative c' <<
+\new Staff \relative <<
% Initiate first voice
\new Voice {
\voiceOne
- c16^( d e f g4 f e | d2 e) |
+ c'16^( d e f g4 f e | d2 e) |
}
% Initiate second voice
\new Voice {
% Set stems, etc, down
\voiceTwo
- s4 r8 e4 d c8~ | c8 b16 a b8 g~ g2 |
+ s4 r8 e4 d c8~ | 8 b16 a b8 g~ 2 |
}
% Initiate third voice
\new Voice {
@cindex collisions, notes (音符の衝突)
@cindex shift commands (シフト コマンド)
@funindex \shiftOff
-@funindex shiftOff
@funindex \shiftOn
-@funindex shiftOn
@funindex \shiftOnn
-@funindex shiftOnn
@funindex \shiftOnnn
-@funindex shiftOnnn
和音の中で小さな間隔で置かれる音符、@c
あるいは異なるボイスで同時に発生する音符は、@c
2 小節目でボイス 2 の C はボイス 1 の D との関係で右にシフトされていて、@c
最後の和音でボイス 3 の C も他の音符との関係で右にシフトされています。
-@code{\shiftOn}, @code{\shiftOnn}, @code{\shiftOnnn}, それに @code{\shiftOff}
+@code{\shiftOn}, @code{\shiftOnn}, @code{\shiftOnnn}, それに @code{\shiftOff}
コマンドは、衝突が起こる場合に音符や和音をシフトさせる度合いを指定します。@c
デフォルトでは、外側のボイス (通常はボイス 1 と 2) には @code{\shiftOff} が@c
指定されていて、内側のボイス (ボイス 3 と 4) には @code{\shiftOn} が@c
@code{\shiftOnn} と @code{\shiftOnnn} はさらなるシフト レベルを@c
定義するものであり、複雑な状況での衝突を解決するために@c
-一時的に指定されるかもしれません --
+一時的に指定されるかもしれません --
@ref{実際の音楽からの例} を参照してください。
ある音符列は上向きの符幹を持つボイスからの音符 (あるいは和音) を 1 つだけ、@c
@seealso
-記譜法リファレンス: @ruser{Multiple voices}
-@c 複数のボイス?
+記譜法リファレンス:
+@ruser{複数のボイス}
@node ボイスとボーカル
@funindex \new Lyrics
@funindex \lyricsto
-@funindex lyricsto
@funindex Lyrics
@cindex Lyrics context, creating (歌詞コンテキストを作成する)
@cindex lyrics, linking to voice (歌詞をボイスにリンクさせる)
すでに @code{\addlyrics@{@}} コマンドを見てきました。@c
これは簡単な楽譜であればうまく処理できます。@c
しかしながら、この方法では限界があります。@c
-より複雑な音楽では、@code{\new Lyrics} を使って歌詞を
-@code{Lyrics} コンテキストに取り込み、ボイスに割り当ている名前を使って
+より複雑な音楽では、@code{\new Lyrics} を使って歌詞を
+@code{Lyrics} コンテキストに取り込み、ボイスに割り当ている名前を使って
@code{\lyricsto@{@}} でその歌詞を明示的に音符にリンクさせます。
@lilypond[quote,verbatim]
<<
\new Voice = "one" {
- \relative c'' {
+ \relative {
\autoBeamOff
\time 2/4
- c4 b8. a16 | g4. f8 | e4 d | c2 |
+ c''4 b8. a16 | g4. f8 | e4 d | c2 |
}
}
\new Lyrics \lyricsto "one" {
@cindex lyrics and beaming (歌詞と連桁)
@cindex beaming and lyrics (連桁と歌詞)
@funindex \autoBeamOff
-@funindex autoBeamOff
LilyPond がデフォルトで使用する自動連桁は楽器だけの音楽では@c
うまく機能しますが、歌詞を持つ音楽ではそれほどうまく機能しません。@c
@funindex \new ChoirStaff
@funindex ChoirStaff
@funindex \lyricmode
-@funindex lyricmode
@cindex vocal score structure (ボーカル譜構造)
@cindex choir staff
@lilypond[quote,verbatim]
global = { \key f \major \time 6/8 \partial 8 }
-SopOneMusic = \relative c'' {
- c8 | c8([ bes)] a a([ g)] f | f'4. b, | c4.~ c4
+SopOneMusic = \relative {
+ c''8 | c8([ bes)] a a([ g)] f | f'4. b, | c4.~ 4
}
SopOneLyrics = \lyricmode {
Let | flee -- cy flocks the | hills a -- dorn, __
}
-SopTwoMusic = \relative c' {
- r8 | r4. r4 c8 | a'8([ g)] f f([ e)] d | e8([ d)] c bes'
+SopTwoMusic = \relative {
+ r8 | r4. r4 c'8 | a'8([ g)] f f([ e)] d | e8([ d)] c bes'
}
SopTwoLyrics = \lyricmode {
Let | flee -- cy flocks the | hills a -- dorn,
@cindex multiple vocal verses
@cindex verses, multiple vocal
-ここで、例として 4 つの歌詞 -- それぞれが SATB (ソプラノ、アルト、テナー、バス)
+ここで、例として 4 つの歌詞 -- それぞれが SATB (ソプラノ、アルト、テナー、バス)
に対してセットされている -- を持つ賛美歌の最初の 1 行目を取り上げます。@c
この歌の場合、4 つのパートに対する歌詞の言葉は同じです。@c
変数を使用して音楽記譜と歌詞の言葉を譜表構造から分離させている手法に@c
@lilypond[quote,verbatim]
keyTime = { \key c \major \time 4/4 \partial 4 }
-SopMusic = \relative c' { c4 | e4. e8 g4 g | a4 a g }
-AltoMusic = \relative c' { c4 | c4. c8 e4 e | f4 f e }
-TenorMusic = \relative c { e4 | g4. g8 c4. b8 | a8 b c d e4 }
-BassMusic = \relative c { c4 | c4. c8 c4 c | f8 g a b c4 }
+SopMusic = \relative { c'4 | e4. e8 g4 g | a4 a g }
+AltoMusic = \relative { c'4 | c4. c8 e4 e | f4 f e }
+TenorMusic = \relative { e4 | g4. g8 c4. b8 | a8 b c d e4 }
+BassMusic = \relative { c4 | c4. c8 c4 c | f8 g a b c4 }
VerseOne =
\lyricmode { E -- | ter -- nal fa -- ther, | strong to save, }
記譜要素を出力に追加しなければなりません。@c
例えば、以下の例で入力と出力を比較してください:
-@lilypond[quote,verbatim,relative=2]
-cis4 cis2. | a4 a2. |
+@lilypond[quote,verbatim]
+\relative { cis''4 cis2. | a4 a2. | }
@end lilypond
この入力は内容がやや乏しいですが、出力では小節線、臨時記号、音部記号、@c
他の例としては、小節線の同調はデフォルトでは @code{Score} コンテキストが@c
扱います。@c
-しかしながら、いくつかの音楽では小節線を同調させたくない場合もあります --
+しかしながら、いくつかの音楽では小節線を同調させたくない場合もあります --
4/4 拍子と 3/4 拍子の多声の楽譜といった場合です。@c
そのようなケースでは、@code{Score} と @code{Staff} コンテキストの@c
デフォルト設定を変更しなければなりません。
@translationof Creating contexts
@funindex \new
-@funindex new
@cindex new contexts (新しいコンテキスト)
@cindex creating contexts (コンテキストを作成する)
@cindex contexts, creating (コンテキストを作成する)
@noindent
ここで、@var{type} はコンテキスト名です (@code{Staff} や @code{Voice} など)。@c
-このコマンドは新しいコンテキストを作成し、そのコンテキストの中にある
+このコマンドは新しいコンテキストを作成し、そのコンテキストの中にある
@var{music-expression} の解釈を開始します。
@warning{必須の最上位 @code{Score} コンテキストとして @bs{}@code{new Score}
\clef "treble"
\key g \minor
\new Voice { % 右手の音符用のボイスを作成します
- \relative c'' { % 右手の音符の開始点
- d4 ees16 c8. |
+ \relative { % 右手の音符の開始点
+ d''4 ees16 c8. |
d4 ees16 c8. |
} % 右手の音符の終了点
} % 右手のボイスの終了点
\key g \minor
\new Voice { % 左手のボイス 1 を作成します
\voiceOne
- \relative g { % 左手のボイス 1 の音符の開始点
+ \relative { % 左手のボイス 1 の音符の開始点
g8 <bes d> ees, <g c> |
g8 <bes d> ees, <g c> |
} % 左手のボイス 1 の音符の終了点
} % 左手のボイス 1 の終了点
\new Voice { % 左手のボイス 2 を作成します
\voiceTwo
- \relative g { % 左手のボイス 2 の音符の開始点
+ \relative { % 左手のボイス 2 の音符の開始点
g4 ees |
g4 ees |
} % 左手のボイス 2 の音符の終了点
記述には括弧よりもスペースが 2 つ多いインデントを付けられていて、@c
閉じ括弧には括弧の開始行と同じインデントを付けられているということに@c
注意してください。@c
-これは必須ではありませんが、こうしておくと @q{unmatched backet}
+これは必須ではありませんが、こうしておくと @q{unmatched backet}
(「括弧が一致しない」) エラーを大幅に減らすことができますので、@c
強く推奨します。@c
これにより、音楽の構造を簡単に見て取ることができ、@c
@seealso
-記譜法リファレンス: @ruser{Creating contexts}
+記譜法リファレンス: @ruser{Creating and referencing contexts}
@node エングラーバの説明
@tab 音部記号を譜刻します。
@item Completion_heads_engraver
@tab 小節線をまたがる音符を分割します。
-@c The old Dynamic_engraver is deprecated. -jm
-@item New_dynamic_engraver
- @tab 強弱記号 (クレッシェンド、デクレッシェンド) と強弱テキスト (p や f など)
+@item Dynamic_engraver
+ @tab 強弱記号 (クレッシェンド、デクレッシェンド) と強弱テキスト (p や f など)
を作成します。
@item Forbid_line_break_engraver
- @tab 音楽要素がアクティブなままである場合に改行されることを防ぎます。(訳者:
+ @tab 音楽要素がアクティブなままである場合に改行されることを防ぎます。(訳者:
いわゆる禁則処理)
@item Key_engraver
@tab 調号を作成します。
@cindex context properties, modifying (コンテキスト プロパティを変更する)
@cindex modifying context properties (コンテキスト プロパティを変更する)
@funindex \set
-@funindex set
@funindex \unset
-@funindex unset
コンテキストにはいくつかのコンテキスト プロパティを保持する責任があります。@c
それらプロパティの多くは変更可能であり、変更することで入力の構文解釈に影響を@c
@lilypond[quote,verbatim,ragged-right]
<<
- \new Staff \relative c'' {
+ \new Staff \relative {
\set Staff.instrumentName = #"Soprano"
- c2 c
+ c''2 c
}
- \new Staff \relative c' {
+ \new Staff \relative {
\set instrumentName = #"Alto" % Wrong!
- d2 d
+ d'2 d
}
>>
@end lilypond
そのプロパティの裏づけを行い (LilyPondTool を持つ JEdit)、@c
あるいは未知のプロパティ名をハイライトします (ConTEXT)。@c
そのような機能を持つエディタを使用していないのなら、内部リファレンスで@c
-プロパティ名をチェックすることを推奨します:
-@rinternals{Tunable context properties} や @rinternals{Contexts}
+プロパティ名をチェックすることを推奨します:
+@rinternals{Tunable context properties} や @rinternals{Contexts}
を参照してください。
@code{instrumentName} プロパティは @code{Staff} コンテキストの中に@c
セットされた場合にのみ効果を持ちますが、いくつかのプロパティは複数の@c
コンテキストの中にセットすることができます。@c
-例えば、プロパティ @code{extraNatural} はすべての譜に対してデフォルトで
+例えば、プロパティ @code{extraNatural} はすべての譜に対してデフォルトで
@code{##t} (真) にセットされています。@c
ある特定の @code{Staff} コンテキストでこれを @code{##f} (偽) に@c
セットした場合、その譜表の臨時記号にのみ適用されます。@c
@lilypond[quote,verbatim,ragged-right]
<<
- \new Staff \relative c'' {
- ais2 aes
+ \new Staff \relative {
+ aeses'2 aes
}
- \new Staff \relative c'' {
+ \new Staff \relative {
\set Staff.extraNatural = ##f
- ais2 aes
+ aeses'2 aes
}
>>
@end lilypond
@lilypond[quote,verbatim,ragged-right]
<<
- \new Staff \relative c'' {
- ais2 aes
+ \new Staff \relative {
+ aeses'2 aes
}
- \new Staff \relative c'' {
+ \new Staff \relative {
\set Score.extraNatural = ##f
- ais2 aes
+ aeses'2 aes
}
>>
@end lilypond
-他の例としては、@code{clefOctavation} が @code{Score} コンテキストに@c
+他の例としては、@code{clefTransposition} が @code{Score} コンテキストに@c
セットされた場合、直ちにすべての譜でのオクターブの値を変更し、すべての譜に@c
適用される新しいデフォルト値をセットします。
変更は直前にセットされた値から行われるのではなく、デフォルト値から行われます。
@c KEEP LY
-@lilypond[quote,verbatim,ragged-right,relative=1]
-c4 d
-% 符頭を小さくします
-\set fontSize = #-4
-e4 f |
-% 符頭を大きくします
-\set fontSize = #2.5
-g4 a
-% デフォルトのサイズに戻します
-\unset fontSize
-b4 c |
+@lilypond[quote,verbatim,ragged-right]
+\relative {
+ c'4 d
+ % 符頭を小さくします
+ \set fontSize = #-4
+ e4 f |
+ % 符頭を大きくします
+ \set fontSize = #2.5
+ g4 a
+ % デフォルトのサイズに戻します
+ \unset fontSize
+ b4 c |
+}
@end lilypond
これまでにいくつかのタイプのプロパティ値をセットする方法を見てきました。@c
-整数と番号の前には常にハッシュ記号 @code{#} が付き、真と偽の値は
-2 つのハッシュ記号を付けて @code{##t} と @code{##f}
+整数と番号の前には常にハッシュ記号 @code{#} が付き、真と偽の値は
+2 つのハッシュ記号を付けて @code{##t} と @code{##f}
によって指定されてるということに注意してください。@c
テキスト プロパティは上で示したようにダブル クォーテーションによって@c
囲まれます。@c
@c Setting context properties with @code{\with}
@funindex \with
-@funindex with
@cindex context properties, setting with \with (\with でコンテキスト プロパティを設定する)
コンテキスト プロパティはコンテキストが作成されるときに@c
セットされることもあるかもしれません。@c
この設定がコンテキスト全体で保持される場合、この方法でプロパティ値を@c
指定すると明瞭になります。@c
-コンテキストが @code{@bs{}new} コマンドで作成されるとき、その直後に
+コンテキストが @code{@bs{}new} コマンドで作成されるとき、その直後に
@code{@bs{}with @{ .. @}} ブロックが続き、その中でプロパティ値が@c
セットされるかもしれません。@c
例えば、ある譜表全体で追加のナチュラルの表示を抑制しようとする場合、@c
@lilypond[quote,verbatim,ragged-right]
<<
\new Staff {
- \relative c'' {
- gis4 ges aes ais
+ \relative {
+ gisis'4 gis aeses aes
}
}
\new Staff \with { extraNatural = ##f } {
- \relative c'' {
- gis4 ges aes ais
+ \relative {
+ gisis'4 gis aeses aes
}
}
>>
@cindex context properties, setting with \context (\context でコンテキスト プロパティを設定する)
@funindex \context
-@funindex context
コンテキスト プロパティの値は単一のコマンドによってある特定のタイプの@c
-コンテキスト@emph{すべて} -- すべての @code{Staff} コンテキストなどのように
+コンテキスト@emph{すべて} -- すべての @code{Staff} コンテキストなどのように
-- にセットされるかもしれません。@c
プロパティをセットするコンテキストのタイプは、@code{Staff} のような@c
-そのコンテキストのタイプ名に接頭辞としてバック スラッシュを付けたもの
+そのコンテキストのタイプ名に接頭辞としてバック スラッシュを付けたもの
-- @code{\Staff} のように -- によって指定されます。@c
プロパティ値をセットするための記述は上で紹介した @code{\with} ブロックの中の@c
記述と同じです。@c
@lilypond[verbatim,quote]
\score {
\new Staff {
- \relative c'' {
- cis4 e d ces
+ \relative {
+ cisis''4 e d cis
}
}
\layout {
\score {
<<
\new Staff {
- \relative c'' {
- gis4 ges aes ais
+ \relative {
+ gisis'4 gis aeses aes
}
}
\new Staff {
- \relative c'' {
- gis4 ges aes ais
+ \relative {
+ gisis'4 gis aeses aes
}
}
>>
@noindent
この方法でセットされたコンテキスト プロパティは、@code{\with} ブロックの@c
-中の記述によって、さらには、音楽表記の中に埋め込まれた
+中の記述によって、さらには、音楽表記の中に埋め込まれた
@code{\set} コマンドによって、ある特定のコンテキスト インスタンスでは@c
上書きされるかもしれません。
@cindex removing engravers (エングラーバを削除する)
@funindex \consists
-@funindex consists
@funindex \remove
-@funindex remove
これまでに、コンテキストはそれぞれにいくつかのエングラーバを保持し、@c
それぞれのエングラーバは出力のある特定部分
@c Changing a single context
あるコンテキストからあるエングラーバを削除するには、前のセクションで@c
-見てたきたのと同様に、コンテキスト作成コマンドの直後に置く
+見てたきたのと同様に、コンテキスト作成コマンドの直後に置く
@code{\with} コマンドを使用します。
例として、前のセクションで使用した例から譜表線を取り除いてみましょう。@c
@c KEEP LY
@lilypond[quote,verbatim,ragged-right]
\new Staff \with {
- \remove Staff_symbol_engraver
+ \remove "Staff_symbol_engraver"
}
-\relative c' {
- c4 d
+\relative {
+ c'4 d
\set fontSize = #-4 % 符頭を小さくします
e4 f |
\set fontSize = #2.5 % 符頭を大きくします
@noindent
これを @code{\with} ブロックの中に置きます。@c
いくつかのボーカル譜は、その譜表の中にある音符の範囲を示すために、@c
-譜表の開始点に音域 (ambitus) を置きます --
+譜表の開始点に音域 (ambitus) を置きます --
@rglos{ambitus} を参照してください。@c
音域は @code{Ambitus_engraver} によって作成され、普通は、@c
これはどのコンテキストにも含まれません。@c
@lilypond[quote,verbatim,ragged-right]
\new Staff <<
\new Voice \with {
- \consists Ambitus_engraver
+ \consists "Ambitus_engraver"
} {
- \relative c'' {
+ \relative {
\voiceOne
- c4 a b g
+ c''4 a b g
}
}
\new Voice {
- \relative c' {
+ \relative {
\voiceTwo
- c4 e d f
+ c'4 e d f
}
}
>>
@lilypond[quote,verbatim,ragged-right]
\new Staff \with {
- \consists Ambitus_engraver
+ \consists "Ambitus_engraver"
}
<<
\new Voice {
- \relative c'' {
+ \relative {
\voiceOne
- c4 a b g
+ c''4 a b g
}
}
\new Voice {
- \relative c' {
+ \relative {
\voiceTwo
- c4 e d f
+ c'4 e d f
}
}
>>
@c Changing all contexts of the same type
@funindex \layout
-@funindex layout
上の例では、個々のコンテキストにエングラーバを追加あるいは削除する方法を@c
示しました。@c
\score {
<<
\new Staff {
- \relative c'' {
- c4 a b g
+ \relative {
+ c''4 a b g
}
}
\new Staff {
- \relative c' {
- c4 a b g
+ \relative {
+ c'4 a b g
}
}
\new Staff {
\clef "G_8"
- \relative c' {
- c4 a b g
+ \relative {
+ c'4 a b g
}
}
\new Staff {
\clef "bass"
- \relative c {
+ \relative {
c4 a b g
}
}
\layout {
\context {
\Staff
- \consists Ambitus_engraver
+ \consists "Ambitus_engraver"
}
}
}
@end lilypond
@noindent
-また、コンテキスト プロパティの値も、上記と同様に
+また、コンテキスト プロパティの値も、上記と同様に
@code{\context} ブロックの中に @code{\set} を含ませることによって、@c
ある特定のタイプのコンテキストすべてに対してセットすることができます。
あなたはどのように楽譜を書くかを知っていて、@c
基礎となるコンセプトを理解しています。@c
しかし、どうやったらあなたはあなたが望む譜を手に入れられるでしょうか?@c
-あなたにとって良いスタート地点となるかもしれない多くのテンプレートがあります
+あなたにとって良いスタート地点となるかもしれない多くのテンプレートがあります
(@ref{テンプレート} を参照してください)。@c
しかしながら、あなたの望むものがそこでカバーされていなかったらどうしましょう?@c
続きを読んでください。
@example
\version @w{"@version{}"}
-melody = \relative c' @{
+melody = \relative @{
\clef "treble"
\key c \major
\time 4/4
@example
\version @w{"@version{}"}
-melody = \relative c' @{
+melody = \relative @{
\clef "treble"
\key c \major
\time 4/4
@example
\version @w{"@version{}"}
-sopranoMusic = \relative c' @{
+sopranoMusic = \relative @{
\clef "treble"
\key c \major
\time 4/4
Aaa Bee Cee Dee
@}
-celloMusic = \relative c @{
+celloMusic = \relative @{
\clef "bass"
\key c \major
\time 4/4
ここで、完成したソプラノとチェロ用のテンプレートを挙げます。
@lilypond[quote,verbatim,ragged-right,addversion]
-sopranoMusic = \relative c' {
+sopranoMusic = \relative {
\clef "treble"
\key c \major
\time 4/4
Aaa Bee Cee Dee
}
-celloMusic = \relative c {
+celloMusic = \relative {
\clef "bass"
\key c \major
\time 4/4
@seealso
開始点となるテンプレートは付録 @q{テンプレート} で見つけることができます。@c
-@ref{単一の譜表} を参照してください。
+@ref{Single staff templates} を参照してください。
@node 4 パート SATB ボーカル譜
@cindex template, SATB (SATB テンプレート)
@cindex SATB template (SATB テンプレート)
-Mendelssohn の Elijah や Handel の Messiah などのオーケストラ伴奏付きの
+Mendelssohn の Elijah や Handel の Messiah などのオーケストラ伴奏付きの
4 パート聖歌隊のために書かれたボーカル譜の多くは 4 つの譜上に@c
-音符と歌詞を持ち、それぞれの譜は SATB (ソプラノ、アルト、テナー、バス) のうちの
+音符と歌詞を持ち、それぞれの譜は SATB (ソプラノ、アルト、テナー、バス) のうちの
1 つであり、その下にオーケストラ伴奏のピアノ譜が付きます。@c
ここで、Handel の Messiah から例を挙げます:
@lilypond[quote,ragged-right]
global = { \key d \major \time 4/4 }
-sopranoMusic = \relative c'' {
+sopranoMusic = \relative {
\clef "treble"
- r4 d2 a4 | d4. d8 a2 | cis4 d cis2 |
+ r4 d''2 a4 | d4. d8 a2 | cis4 d cis2 |
}
sopranoWords = \lyricmode {
Wor -- thy | is the lamb | that was slain |
}
-altoMusic = \relative a' {
+altoMusic = \relative {
\clef "treble"
- r4 a2 a4 | fis4. fis8 a2 | g4 fis e2 |
+ r4 a'2 a4 | fis4. fis8 a2 | g4 fis e2 |
}
altoWords = \sopranoWords
-tenorMusic = \relative c' {
+tenorMusic = \relative {
\clef "G_8"
- r4 fis2 e4 | d4. d8 d2 | e4 a, cis2 |
+ r4 fis'2 e4 | d4. d8 d2 | e4 a, cis2 |
}
tenorWords = \sopranoWords
-bassMusic = \relative c' {
+bassMusic = \relative {
\clef "bass"
- r4 d2 cis4 | b4. b8 fis2 | e4 d a'2 |
+ r4 d'2 cis4 | b4. b8 fis2 | e4 d a'2 |
}
bassWords = \sopranoWords
-upper = \relative a' {
+upper = \relative {
\clef "treble"
\global
- r4 <a d fis>2 <a e' a>4 |
+ r4 <a' d fis>2 <a e' a>4 |
<d fis d'>4. <d fis d'>8 <a d a'>2 |
<g cis g'>4 <a d fis> <a cis e>2 |
}
-lower = \relative c, {
+lower = \relative {
\clef "bass"
\global
- <d d'>4 <d d'>2 <cis cis'>4 |
+ <d, d'>4 <d d'>2 <cis cis'>4 |
<b b'>4. <b' b'>8 <fis fis'>2 |
<e e'>4 <d d'> <a' a'>2 |
}
@end lilypond
このレイアウトをそのまま提供するテンプレートはありません。@c
-最も近いのは @q{SATB ボーカル譜と自動ピアノ伴奏譜} -- @ref{合唱} を@c
-参照してください -- ですが、レイアウトを変更して、ボーカル パートから@c
-自動的に生成されたものではないピアノ伴奏譜を付け加える必要があります。@c
+最も近いのは @ref{SATB vocal score and automatic piano reduction}
+ですが、レイアウトを変更して、ボーカル パートから自動的に生成されたものでは@c
+ないピアノ伴奏譜を付け加える必要があります。@c
ボーカル パートのための音楽と歌詞を保持している変数はそのまま使えますが、@c
ピアノ伴奏譜のための変数を付け加える必要があります。
@c KEEP LY
@lilypond[quote,verbatim,ragged-right,addversion]
global = { \key d \major \time 4/4 }
-sopranoMusic = \relative c'' {
+sopranoMusic = \relative {
\clef "treble"
- r4 d2 a4 | d4. d8 a2 | cis4 d cis2 |
+ r4 d''2 a4 | d4. d8 a2 | cis4 d cis2 |
}
sopranoWords = \lyricmode {
Wor -- thy | is the lamb | that was slain |
}
-altoMusic = \relative a' {
+altoMusic = \relative {
\clef "treble"
- r4 a2 a4 | fis4. fis8 a2 | g4 fis fis2 |
+ r4 a'2 a4 | fis4. fis8 a2 | g4 fis fis2 |
}
altoWords = \sopranoWords
-tenorMusic = \relative c' {
+tenorMusic = \relative {
\clef "G_8"
- r4 fis2 e4 | d4. d8 d2 | e4 a, cis2 |
+ r4 fis'2 e4 | d4. d8 d2 | e4 a, cis2 |
}
tenorWords = \sopranoWords
-bassMusic = \relative c' {
+bassMusic = \relative {
\clef "bass"
- r4 d2 cis4 | b4. b8 fis2 | e4 d a'2 |
+ r4 d'2 cis4 | b4. b8 fis2 | e4 d a'2 |
}
bassWords = \sopranoWords
-upper = \relative a' {
+upper = \relative {
\clef "treble"
\global
- r4 <a d fis>2 <a e' a>4 |
+ r4 <a' d fis>2 <a e' a>4 |
<d fis d'>4. <d fis d'>8 <a d a'>2 |
<g cis g'>4 <a d fis> <a cis e>2 |
}
-lower = \relative c, {
+lower = \relative {
\clef "bass"
\global
- <d d'>4 <d d'>2 <cis cis'>4 |
+ <d, d'>4 <d d'>2 <cis cis'>4 |
<b b'>4. <b' b'>8 <fis fis'>2 |
<e e'>4 <d d'> <a' a'>2 |
}
次にペダル オルガンのための譜表を付け加える必要があります。@c
これは @code{PianoStaff} の下にきますが、@code{PianoStaff} と@c
-同時進行でなければなりませんので、ペダル オルガンのための譜表と
+同時進行でなければなりませんので、ペダル オルガンのための譜表と
@code{PianoStaff} を山括弧で囲む必要があります。@c
これを忘れるとエラーがログ ファイルに生成されます。@c
このエラーはあなたが早かれ遅かれ遭遇する一般的なミスです!@c
@}
>> % ManualOne Staff コンテキストの終了
\new Staff = "ManualTwo" \with @{
- \override VerticalAxisGroup
- #'staff-staff-spacing #'stretchability = 5
+ \override VerticalAxisGroup.staff-staff-spacing.stretchability = 5
@} <<
\keyTime
\clef "bass"
composer = "J S Bach"
}
keyTime = { \key c \minor \time 4/4 }
-ManualOneVoiceOneMusic = \relative g' {
- g4 g f ees |
+ManualOneVoiceOneMusic = \relative {
+ g'4 g f ees |
d2 c |
}
-ManualOneVoiceTwoMusic = \relative c' {
- ees16 d ees8~ ees16 f ees d c8 d~ d c~ |
- c8 c4 b8 c8. g16 c b c d |
+ManualOneVoiceTwoMusic = \relative {
+ ees'16 d ees8~ 16 f ees d c8 d~ d c~ |
+ 8 c4 b8 c8. g16 c b c d |
}
-ManualTwoMusic = \relative c' {
- c16 b c8~ c16 b c g a8 g~ g16 g aes ees |
- f16 ees f d g aes g f ees d e8~ ees16 f ees d |
+ManualTwoMusic = \relative {
+ c'16 b c8~ 16 b c g a8 g~ 16 g aes ees |
+ f16 ees f d g aes g f ees d ees8~ 16 f ees d |
}
-PedalOrganMusic = \relative c {
- r8 c16 d ees d ees8~ ees16 a, b g c b c8 |
+PedalOrganMusic = \relative {
+ r8 c16 d ees d ees8~ 16 a, b g c b c8 |
r16 g ees f g f g8 c,2 |
}
}
>> % ManualOne Staff コンテキストの終了
\new Staff = "ManualTwo" \with {
- \override VerticalAxisGroup
- #'staff-staff-spacing #'stretchability = 5
+ \override VerticalAxisGroup.staff-staff-spacing.stretchability = 5
} <<
\keyTime
\clef "bass"
これまでに、以下のような記述を見てきました:
@lilypond[quote,verbatim,ragged-right]
-hornNotes = \relative c'' { c4 b dis c }
+hornNotes = \relative { c''4 b dis c }
\score {
{
気付くかもしれません:
@lilypond[quote,verbatim,ragged-right]
-fragmentA = \relative c'' { a4 a8. b16 }
-fragmentB = \relative c'' { a8. gis16 ees4 }
+fragmentA = \relative { a'4 a8. b16 }
+fragmentB = \relative { a'8. gis16 ees4 }
violin = \new Staff {
\fragmentA \fragmentA |
@lilypond[quote,verbatim,ragged-right]
dolce = \markup { \italic \bold dolce }
-padText = { \once \override TextScript #'padding = #5.0 }
+padText = { \once \override TextScript.padding = #5.0 }
fthenp =_\markup {
\dynamic f \italic \small { 2nd } \hspace #0.1 \dynamic p
}
-violin = \relative c'' {
+violin = \relative {
\repeat volta 2 {
- c4._\dolce b8 a8 g a b |
+ c''4._\dolce b8 a8 g a b |
\padText
c4.^"hi there!" d8 e' f g d |
c,4.\fthenp b8 c4 c-. |
とても読み難く、特に最後の行が読み難いです。
@example
-violin = \relative c'' @{
+violin = \relative @{
\repeat volta 2 @{
- c4._\markup @{ \italic \bold dolce @} b8 a8 g a b |
- \once \override TextScript #'padding = #5.0
+ c''4._\markup @{ \italic \bold dolce @} b8 a8 g a b |
+ \once \override TextScript.padding = #5.0
c4.^"hi there!" d8 e' f g d |
c,4.\markup @{
\dynamic f \italic \small @{ 2nd @} \hspace #0.1 \dynamic p
@lilypond[quote,verbatim,ragged-right]
padText =
#(define-music-function
- (parser location padding)
+ (padding)
(number?)
#{
- \once \override TextScript #'padding = $padding
+ \once \override TextScript.padding = #padding
#})
-\relative c''' {
- c4^"piu mosso" b a b |
+\relative {
+ c'''4^"piu mosso" b a b |
\padText #1.8
c4^"piu mosso" d e f |
\padText #2.6
変数を使うことは、LilyPond 入力構文に変更があった場合の作業を減らす@c
良い方法でもあります (@rprogram{convert-ly を使ってファイルを更新する}
を参照してください)。@c
-あなたがあなたの入力ファイルすべてに使用する単一の定義
+あなたがあなたの入力ファイルすべてに使用する単一の定義
(@code{\dolce} のような) を持っていて、構文が変更された場合、@c
すべての @code{.ly} ファイルを変更する代わりに、@c
@code{@bs{}dolce} 定義をアップデートするだけで済みます。
以下のホルン/@/バスーン デュオのパートを保持しているとします:
@example
-hornNotes = \relative c @{
+hornNotes = \relative @{
\time 2/4
r4 f8 a | cis4 f | e4 d |
@}
この移調により出力は以下のようになります:
@lilypond[quote,ragged-right]
-\transpose f c' \relative c {
+\transpose f c' \relative {
\time 2/4
r4 f8 a | cis4 f | e4 d |
}
アンサンブルでは、しばしばボイスの 1 つが何小節も演奏されないことがあります。@c
これは特別な休符 -- 複小節休符 -- によって示されます。@c
-これは大文字の @code{R} とその後に続く演奏時間
+これは大文字の @code{R} とその後に続く演奏時間
(全音符には @code{1}、半音符には @code{2} などです) で入力されます。@c
この演奏時間に掛け算を行うことによって、@c
さらに長い休符を構築することができます。@c
以下のような結果になります:
@lilypond[quote,ragged-right]
-\transpose f c' \relative c {
+\transpose f c' \relative {
\time 2/4
\set Score.skipBars = ##t
R2*3 |
そして、以下のような楽譜になります:
@lilypond[quote,ragged-right]
-\relative c <<
+\relative <<
\new Staff {
\clef "treble"
\time 2/4