[ << デフォルトを変更する ] | [トップ][目次][インデックス][ ? ] | [ Notation manual tables >> ] | ||
[ < コンテキストのプラグインを変更する ] | [ 上へ : コンテキストを理解する ] | [ 新しいコンテキストを定義する > ] |
5.1.5 コンテキストのデフォルト設定を変更する
Score
, Staff
それに Voice
コンテキストにおいてデフォルトで使用されるコンテキスト設定は、以下の例で示すように、\layout
ブロックの中で指定することができます。\layout
ブロックは、それを適用する \score
ブロックの中で、かつ、音楽表記の外側に配置する必要があります。
以下のような方法でコンテキストのデフォルト値を指定する場合、
\set
コマンドとコンテキストを省略する必要があるということに注意してください:
\score { \relative c'' { a4^"Really small, thicker stems, no time signature" a a a a a a a } \layout { \context { \Staff fontSize = #-4 \override Stem #'thickness = #4.0 \remove "Time_signature_engraver" } } }
上記の例の中で、
\Staff
コマンドは、後に続く記述をその score ブロックの中にあるすべての譜に適用するということを指定しています。
同様の方法で、
Score
コンテキストや Voice
コンテキストに変更を適用することができます。
コンテキストの変更を変数に格納することができます。コンテキストの変更に
\with
を付けて変数に格納して、その変数をコンテキスト定義の前に置くことにより、変更をコンテキストに適用することができます:
blubb = \with { fontSize = #-4 \override Stem #'thickness = #4.0 \remove "Time_signature_engraver" } bla = \with { fontSize = #3 \override Stem #'thickness = #-2.0 } melody = \relative c'' { a4 a a a | a4 a a a | } \score { << \new Staff << \melody s1*0^"Small, thicker stems, no time signature" >> \new Staff \bla << \melody s1*0^"Different" >> >> \layout { \context { \Staff \blubb } } }
[ << デフォルトを変更する ] | [トップ][目次][インデックス][ ? ] | [ Notation manual tables >> ] | ||
[ < コンテキストのプラグインを変更する ] | [ 上へ : コンテキストを理解する ] | [ 新しいコンテキストを定義する > ] |
他の言語: English, deutsch, español, français, italiano
About automatic language selection.