| [ << Simultaneous notes ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Simultaneous notes: 1 つの譜で 2 つの \partCombine を使用する ] | [ 上へ : Top ] | [ Staff notation: 音域をボイスごとに追加する > ] |
Staff notation
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation ] | [ 上へ : Staff notation ] | [ Staff notation: 改行時に譜を追加する > ] |
音域をボイスごとに追加する
音域をボイスごとに追加することができます。この場合、衝突を避けるために
Ambitus を手動で移動する必要があります。
\new Staff <<
\new Voice \with {
\consists "Ambitus_engraver"
} \relative c'' {
\override Ambitus.X-offset = #2.0
\voiceOne
c4 a d e
f1
}
\new Voice \with {
\consists "Ambitus_engraver"
} \relative c' {
\voiceTwo
es4 f g as
b1
}
>>
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 音域をボイスごとに追加する ] | [ 上へ : Staff notation ] | [ Staff notation: 譜を追加する > ] |
改行時に譜を追加する
改行時に譜を追加する場合、改行前の行末に不要な空間が追加されてしまいます
(これは調号の変化に対応するためのものですが、どちらにしろ表示されません)。これを解決するには、Staff.explicitKeySignatureVisibility を例のように設定します。
\score {
\new StaffGroup \relative c'' {
\new Staff
\key f \major
c1 c^"Unwanted extra space" \break
<< { c1 | c }
\new Staff {
\key f \major
\once \omit Staff.TimeSignature
c1 | c
}
>>
c1 | c^"Fixed here" \break
<< { c1 | c }
\new Staff {
\once \set Staff.explicitKeySignatureVisibility = #end-of-line-invisible
\key f \major
\once \omit Staff.TimeSignature
c1 | c
}
>>
}
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 改行時に譜を追加する ] | [ 上へ : Staff notation ] | [ Staff notation: 改行後に分かれる譜について、指示を表示する > ] |
譜を追加する
曲の開始時以外にも (一時的に) 譜を追加することができます。
\score {
<<
\new Staff \relative c'' {
c1 | c | c | c | c
}
\new StaffGroup \relative c'' {
\new Staff {
c1 | c
<<
{
c1 | d
}
\new Staff {
\once \omit Staff.TimeSignature
c1 | b
}
>>
c1
}
}
>>
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 譜を追加する ] | [ 上へ : Staff notation ] | [ Staff notation: ボーカル譜にオーケストラの合図音符を追加する > ] |
改行後に分かれる譜について、指示を表示する
このスニペットは \splitStaffBarLine, \convUpStaffBarLine,
\convDownStaffBarLine コマンドを追加します。これらは小節線に矢印を追加し、譜を共有するボイスが次のシステムで譜を分ける場合、あるいは再度合流する場合の指示を表示します。
#(define-markup-command (arrow-at-angle layout props angle-deg length fill)
(number? number? boolean?)
(let* (
(PI-OVER-180 (/ (atan 1 1) 34))
(degrees->radians (lambda (degrees) (* degrees PI-OVER-180)))
(angle-rad (degrees->radians angle-deg))
(target-x (* length (cos angle-rad)))
(target-y (* length (sin angle-rad))))
(interpret-markup layout props
(markup
#:translate (cons (/ target-x 2) (/ target-y 2))
#:rotate angle-deg
#:translate (cons (/ length -2) 0)
#:concat (#:draw-line (cons length 0)
#:arrow-head X RIGHT fill)))))
splitStaffBarLineMarkup = \markup \with-dimensions #'(0 . 0) #'(0 . 0) {
\combine
\arrow-at-angle #45 #(sqrt 8) ##t
\arrow-at-angle #-45 #(sqrt 8) ##t
}
splitStaffBarLine = {
\once \override Staff.BarLine.stencil =
#(lambda (grob)
(ly:stencil-combine-at-edge
(ly:bar-line::print grob)
X RIGHT
(grob-interpret-markup grob splitStaffBarLineMarkup)
0))
\break
}
convDownStaffBarLine = {
\once \override Staff.BarLine.stencil =
#(lambda (grob)
(ly:stencil-combine-at-edge
(ly:bar-line::print grob)
X RIGHT
(grob-interpret-markup grob #{
\markup\with-dimensions #'(0 . 0) #'(0 . 0) {
\translate #'(0 . -.13)\arrow-at-angle #-45 #(sqrt 8) ##t
}#})
0))
\break
}
convUpStaffBarLine = {
\once \override Staff.BarLine.stencil =
#(lambda (grob)
(ly:stencil-combine-at-edge
(ly:bar-line::print grob)
X RIGHT
(grob-interpret-markup grob #{
\markup\with-dimensions #'(0 . 0) #'(0 . 0) {
\translate #'(0 . .14)\arrow-at-angle #45 #(sqrt 8) ##t
}#})
0))
\break
}
\paper {
ragged-right = ##t
short-indent = 10\mm
}
separateSopranos = {
\set Staff.instrumentName = "AI AII"
\set Staff.shortInstrumentName = "AI AII"
\splitStaffBarLine
\change Staff = "up"
}
convSopranos = {
\convDownStaffBarLine
\change Staff = "shared"
\set Staff.instrumentName = "S A"
\set Staff.shortInstrumentName = "S A"
}
sI = {
\voiceOne
\repeat unfold 4 f''2
\separateSopranos
\repeat unfold 4 g''2
\convSopranos
\repeat unfold 4 c''2
}
sII = {
s1*2
\voiceTwo
\change Staff = "up"
\repeat unfold 4 d''2
}
aI = {
\voiceTwo
\repeat unfold 4 a'2
\voiceOne
\repeat unfold 4 b'2
\convUpStaffBarLine
\voiceTwo
\repeat unfold 4 g'2
}
aII = {
s1*2
\voiceTwo
\repeat unfold 4 g'2
}
ten = {
\voiceOne
\repeat unfold 4 c'2
\repeat unfold 4 d'2
\repeat unfold 4 c'2
}
bas = {
\voiceTwo
\repeat unfold 4 f2
\repeat unfold 4 g2
\repeat unfold 4 c2
}
\score {
<<
\new ChoirStaff <<
\new Staff = up \with {
instrumentName = "SI SII"
shortInstrumentName = "SI SII"
} {
s1*4
}
\new Staff = shared \with {
instrumentName = "S A"
shortInstrumentName = "S A"
} <<
\new Voice = sopI \sI
\new Voice = sopII \sII
\new Voice = altI \aI
\new Voice = altII \aII
>>
\new Lyrics \with {
alignBelowContext = up
}
\lyricsto sopII { e f g h }
\new Lyrics \lyricsto altI { a b c d e f g h i j k l }
\new Staff = men \with {
instrumentName = "T B"
shortInstrumentName = "T B"
} <<
\clef F
\new Voice = ten \ten
\new Voice = bas \bas
>>
\new Lyrics \lyricsto bas { a b c d e f g h i j k l }
>>
>>
\layout {
\context {
\Staff \RemoveEmptyStaves
\override VerticalAxisGroup.remove-first = ##t
}
}
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 改行後に分かれる譜について、指示を表示する ] | [ 上へ : Staff notation ] | [ Staff notation: 長いグリッサンドにタイミング マークを追加する > ] |
ボーカル譜にオーケストラの合図音符を追加する
これは、ボーカル譜に添えられるピアノ リダクションに多くのオーケストラの合図音符を追加しやすくするためのスニペットです。音楽関数 \cueWhile は 4 つの引数を取ります:
1 つ目は、\addQuote と同様の、合図音符の引用元となる音楽です。2 つ目は、合図音符の前に表示される名前です。3 つ目は、音符を \voiceOne で表示して名前を譜の上に表示するか、
音符を \voiceTwo で表示して名前を譜の下に表示するかを決定する
#UP または #DOWN です。4 つ目は、合図音符が出現する部分のピアノの音楽です。合図音符の前に表示される名前は、音符の左端に揃えられます。様々な楽節を合図音符として表示することができますが、一度に複数個重ねることはできません。
cueWhile =
#(define-music-function
(instrument name dir music)
(string? string? ly:dir? ly:music?)
#{
\cueDuring $instrument #dir {
\once \override TextScript.self-alignment-X = #RIGHT
\once \override TextScript.direction = $dir
<>-\markup { \tiny #name }
$music
}
#})
flute = \relative c'' {
\transposition c'
s4 s4 e g
}
\addQuote "flute" { \flute }
clarinet = \relative c' {
\transposition bes
fis4 d d c
}
\addQuote "clarinet" { \clarinet }
singer = \relative c'' { c4. g8 g4 bes4 }
words = \lyricmode { here's the lyr -- ics }
pianoRH = \relative c'' {
\transposition c'
\cueWhile "clarinet" "Clar." #DOWN { c4. g8 }
\cueWhile "flute" "Flute" #UP { g4 bes4 }
}
pianoLH = \relative c { c4 <c' e> e, <g c> }
\score {
<<
\new Staff {
\new Voice = "singer" {
\singer
}
}
\new Lyrics {
\lyricsto "singer"
\words
}
\new PianoStaff <<
\new Staff {
\new Voice {
\pianoRH
}
}
\new Staff {
\clef "bass"
\pianoLH
}
>>
>>
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: ボーカル譜にオーケストラの合図音符を追加する ] | [ 上へ : Staff notation ] | [ Staff notation: 小節番号を変更する > ] |
長いグリッサンドにタイミング マークを追加する
長いグリッサンド部分の拍をタイミング マークで表示する場合があります。これは通例符頭が無く符幹だけの音符として表され、この中間部分に発想記号を付け加えることもできます。
符幹がグリッサンドにうまく揃わない場合には、わずかに配置を調整する必要があるかもしれません。
glissandoSkipOn = {
\override NoteColumn.glissando-skip = ##t
\hide NoteHead
\override NoteHead.no-ledgers = ##t
}
glissandoSkipOff = {
\revert NoteColumn.glissando-skip
\undo \hide NoteHead
\revert NoteHead.no-ledgers
}
\relative c'' {
r8 f8\glissando
\glissandoSkipOn
f4 g a a8\noBeam
\glissandoSkipOff
a8
r8 f8\glissando
\glissandoSkipOn
g4 a8
\glissandoSkipOff
a8 |
r4 f\glissando \<
\glissandoSkipOn
a4\f \>
\glissandoSkipOff
b8\! r |
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 長いグリッサンドにタイミング マークを追加する ] | [ 上へ : Staff notation ] | [ Staff notation: Ambitus after key signature > ] |
小節番号を変更する
小節番号を付番する異なる方法が 2 つあり、繰り返しのある音楽に対して有用です。
\relative c'{
\set Score.alternativeNumberingStyle = #'numbers
\repeat volta 3 { c4 d e f | }
\alternative {
{ c4 d e f | c2 d \break }
{ f4 g a b | f4 g a b | f2 a | \break }
{ c4 d e f | c2 d }
}
c1 \break
\set Score.alternativeNumberingStyle = #'numbers-with-letters
\repeat volta 3 { c,4 d e f | }
\alternative {
{ c4 d e f | c2 d \break }
{ f4 g a b | f4 g a b | f2 a | \break }
{ c4 d e f | c2 d }
}
c1
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 小節番号を変更する ] | [ 上へ : Staff notation ] | [ Staff notation: 小節番号を中央揃えする > ] |
Ambitus after key signature
By default, ambitus are positioned at the left of the clef. The
\ambitusAfter function allows for changing this placement. Syntax is
\ambitusAfter grob-interface (see
Interfaces
Graphical Object Interfaces for a list of possible values for grob-interface).
A common use case is printing the ambitus between key signature and time
signature.
\new Staff \with {
\consists Ambitus_engraver
} \relative {
\ambitusAfter key-signature
\key d \major
es'8 g bes cis d2
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: Ambitus after key signature ] | [ 上へ : Staff notation ] | [ Staff notation: デフォルトの小節線を変更する > ] |
小節番号を中央揃えする
大きなアンサンブル スコアでは、小節番号がシステムの下に、また小節の中央に表示されるものがあります。このスニペットは Measure_counter_engraver を用いて、この慣習を模倣する方法を示しています。ここでは、Dynamics
コンテキストにエングラーバを追加しています。
\layout {
\context {
\Dynamics
\consists #Measure_counter_engraver
\override MeasureCounter.direction = #DOWN
\override MeasureCounter.font-encoding = #'latin1
\override MeasureCounter.font-shape = #'italic
% to control the distance of the Dynamics context from the staff:
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing.padding = #2
}
\context {
\Score
\remove "Bar_number_engraver"
}
}
pattern = \repeat unfold 7 { c'4 d' e' f' }
\new StaffGroup <<
\new Staff {
\pattern
}
\new Staff {
\pattern
}
\new Dynamics {
\startMeasureCount
s1*7
\stopMeasureCount
}
>>
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 小節番号を中央揃えする ] | [ 上へ : Staff notation ] | [ Staff notation: 譜線の数を変更する > ] |
デフォルトの小節線を変更する
デフォルトの小節線は、Score コンテキストで再定義することで変更することができます。
% http://lsr.di.unimi.it/LSR/Item?id=964
%%=> http://lists.gnu.org/archive/html/lilypond-user/2014-03/msg00126.html
%%=> http://lilypond.1069038.n5.nabble.com/Changing-the-default-end-repeat-bracket-tc169357.html
\layout {
\context {
\Score
%% Changing the defaults from engraver-init.ly
defaultBarType = #"!"
startRepeatType = #"[|:"
endRepeatType = #":|]"
doubleRepeatType = #":|][|:"
}
}
%% example:
{
c'1
\repeat volta 2 { \repeat unfold 2 c' }
\repeat volta 2 { \repeat unfold 2 c' }
\alternative {
{ c' }
{
%% v2.18 workaround
\once\override Score.VoltaBracket.shorten-pair = #'(1 . -1)
c'
}
}
\bar "|."
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: デフォルトの小節線を変更する ] | [ 上へ : Staff notation ] | [ Staff notation: 譜のサイズを変更する > ] |
譜線の数を変更する
譜線の数は StaffSymbol の line-count プロパティをオーバライドすることで変更できます。
upper = \relative c'' {
c4 d e f
}
lower = \relative c {
\clef bass
c4 b a g
}
\score {
\context PianoStaff <<
\new Staff {
\upper
}
\new Staff {
\override Staff.StaffSymbol.line-count = #4
\lower
}
>>
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 譜線の数を変更する ] | [ 上へ : Staff notation ] | [ Staff notation: 空の譜を作成する > ] |
譜のサイズを変更する
譜のサイズを変更する一番シンプルな方法は
#(set-global-staff-size xx) を使用することですが、譜ごとにサイズを変更するには staff-space や fontSize
プロパティを使用します。
<<
\new Staff {
\relative c'' {
\dynamicDown
c8\ff c c c c c c c
}
}
\new Staff \with {
fontSize = #-3
\override StaffSymbol.staff-space = #(magstep -3)
} {
\clef bass
c8 c c c c\f c c c
}
>>
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 譜のサイズを変更する ] | [ 上へ : Staff notation ] | [ Staff notation: カスタマイズされた調号を作成する > ] |
空の譜を作成する
空の譜を作成するには、空の小節を作って Score コンテキストから
Bar_number_engraver を削除します。また Staff コンテキストから
Time_signature_engraver, Clef_engraver, Bar_engraver
を削除します。
#(set-global-staff-size 20)
\score {
{
\repeat unfold 12 { s1 \break }
}
\layout {
indent = 0\in
\context {
\Staff
\remove "Time_signature_engraver"
\remove "Clef_engraver"
\remove "Bar_engraver"
}
\context {
\Score
\remove "Bar_number_engraver"
}
}
}
% uncomment these lines for "letter" size
%{
\paper {
#(set-paper-size "letter")
ragged-last-bottom = ##f
line-width = 7.5\in
left-margin = 0.5\in
bottom-margin = 0.25\in
top-margin = 0.25\in
}
%}
% uncomment these lines for "A4" size
%{
\paper {
#(set-paper-size "a4")
ragged-last-bottom = ##f
line-width = 180
left-margin = 15
bottom-margin = 10
top-margin = 10
}
%}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 空の譜を作成する ] | [ 上へ : Staff notation ] | [ Staff notation: 2 桁の運指記号を作成する > ] |
カスタマイズされた調号を作成する
LilyPond はカスタマイズされた調号をサポートしています。この例では、フラットを広範囲に表示する D マイナーを作成しています。
\new Staff \with {
\override StaffSymbol.line-count = #8
\override KeySignature.flat-positions = #'((-7 . 6))
\override KeyCancellation.flat-positions = #'((-7 . 6))
% presumably sharps are also printed in both octaves
\override KeySignature.sharp-positions = #'((-6 . 7))
\override KeyCancellation.sharp-positions = #'((-6 . 7))
\override Clef.stencil = #
(lambda (grob)(grob-interpret-markup grob
#{ \markup\combine
\musicglyph "clefs.C"
\translate #'(-3 . -2)
\musicglyph "clefs.F"
#}))
clefPosition = #3
middleCPosition = #3
middleCClefPosition = #3
}
{
\key d\minor
f bes, f bes,
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: カスタマイズされた調号を作成する ] | [ 上へ : Staff notation ] | [ Staff notation: 譜をまたがる符幹 > ] |
2 桁の運指記号を作成する
5 よりも大きな運指記号を作成することができます。
\relative c' {
c1-10
c1-50
c1-36
c1-29
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 2 桁の運指記号を作成する ] | [ 上へ : Staff notation ] | [ Staff notation: システムに譜が 1 つしか存在しない場合にも括弧を表示する > ] |
譜をまたがる符幹
このスニペットは、Span_stem_engraver と \crossStaff を用いて、自動的に譜をまたがる符幹を作成しています。
符幹の長さは自動的に計算されるため指定する必要はありません。
\layout {
\context {
\PianoStaff
\consists #Span_stem_engraver
}
}
{
\new PianoStaff <<
\new Staff {
<b d'>4 r d'16\> e'8. g8 r\!
e'8 f' g'4 e'2
}
\new Staff {
\clef bass
\voiceOne
\autoBeamOff
\crossStaff { <e g>4 e, g16 a8. c8} d
\autoBeamOn
g8 f g4 c2
}
>>
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 譜をまたがる符幹 ] | [ 上へ : Staff notation ] | [ Staff notation: TrillSpanner を延長する > ] |
システムに譜が 1 つしか存在しない場合にも括弧を表示する
ChoirStaff や StaffGroup に譜が 1 つだけ存在する場合、デフォルトでは括弧や行頭の小節線は表示されません。これは collapse-height
をオーバライドし、値を譜線の数より小さくセットすることで変更することができます。
括弧が波の形をしている
PianoStaff や GrandStaff のようなコンテキストでは、別のプロパティをセットする必要があります。例の 2 つ目のシステムを参照してください。
\score {
\new StaffGroup <<
% Must be lower than the actual number of staff lines
\override StaffGroup.SystemStartBracket.collapse-height = #4
\override Score.SystemStartBar.collapse-height = #4
\new Staff {
c'1
}
>>
}
\score {
\new PianoStaff <<
\override PianoStaff.SystemStartBrace.collapse-height = #4
\override Score.SystemStartBar.collapse-height = #4
\new Staff {
c'1
}
>>
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: システムに譜が 1 つしか存在しない場合にも括弧を表示する ] | [ 上へ : Staff notation ] | [ Staff notation: 繰り返しにまたがるグリッサンド > ] |
TrillSpanner を延長する
TrillSpanner に対しては、minimum プロパティは
set-spacing-rods プロシージャが明示的に呼ばれている場合に限り有効となります。そのためには、springs-and-rods プロパティをly:spanner::set-spacing-rods にセットします。
\relative c' {
\key c\minor
\time 2/4
c16( as') c,-. des-.
\once\override TrillSpanner.minimum-length = #15
\once\override TrillSpanner.springs-and-rods = #ly:spanner::set-spacing-rods
\afterGrace es4
\startTrillSpan { d16[( \stopTrillSpan es)] }
c( c' g es c g' es d
\hideNotes
c8)
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: TrillSpanner を延長する ] | [ 上へ : Staff notation ] | [ Staff notation: 平坦なタイ > ] |
繰り返しにまたがるグリッサンド
複数の \alternative ブロックにまたがるグリッサンドは、\alternative ブロックの始まりに見えない装飾音符を配置し、グリッサンドを付加することで模倣することができます。装飾音符のピッチはグリッサンドの始端と同じであるべきです。ここでは、装飾音符のピッチを引数に取る音楽関数を定義しています。
多声の音楽では、他のボイスの装飾音符と位置を合わせる必要があります。
repeatGliss = #(define-music-function (grace)
(ly:pitch?)
#{
% the next two lines ensure the glissando is long enough
% to be visible
\once \override Glissando.springs-and-rods
= #ly:spanner::set-spacing-rods
\once \override Glissando.minimum-length = #3.5
\once \hideNotes
\grace $grace \glissando
#})
\score {
\relative c'' {
\repeat volta 3 { c4 d e f\glissando }
\alternative {
{ g2 d }
{ \repeatGliss f g2 e }
{ \repeatGliss f e2 d }
}
}
}
music = \relative c' {
\voiceOne
\repeat volta 2 {
g a b c\glissando
}
\alternative {
{ d1 }
{ \repeatGliss c \once \omit StringNumber e1\2 }
}
}
\score {
\new StaffGroup <<
\new Staff <<
\new Voice { \clef "G_8" \music }
>>
\new TabStaff <<
\new TabVoice { \clef "moderntab" \music }
>>
>>
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 繰り返しにまたがるグリッサンド ] | [ 上へ : Staff notation ] | [ Staff notation: 強制的に小節の幅を MetronomeMark の幅に合わせる > ] |
平坦なタイ
この関数は Tie.stencil をデフォルトの引数に取り、このデフォルトのステンシルの寸法を基にサイズが計算されます。更なる調整は
Tie.details.height-limit や \shape で行うことができます。また、カスタム定義をその場で変更することもできます。
%% http://lsr.di.unimi.it/LSR/Item?id=1031
#(define ((flared-tie coords) grob)
(define (pair-to-list pair)
(list (car pair) (cdr pair)))
(define (normalize-coords goods x y dir)
(map
(lambda (coord)
;(coord-scale coord (cons x (* y dir)))
(cons (* x (car coord)) (* y dir (cdr coord))))
goods))
(define (my-c-p-s points thick)
(make-connected-path-stencil
points
thick
1.0
1.0
#f
#f))
;; outer let to trigger suicide
(let ((sten (ly:tie::print grob)))
(if (grob::is-live? grob)
(let* ((layout (ly:grob-layout grob))
(line-thickness (ly:output-def-lookup layout 'line-thickness))
(thickness (ly:grob-property grob 'thickness 0.1))
(used-thick (* line-thickness thickness))
(dir (ly:grob-property grob 'direction))
(xex (ly:stencil-extent sten X))
(yex (ly:stencil-extent sten Y))
(lenx (interval-length xex))
(leny (interval-length yex))
(xtrans (car xex))
(ytrans (if (> dir 0)(car yex) (cdr yex)))
(uplist
(map pair-to-list
(normalize-coords coords lenx (* leny 2) dir))))
(ly:stencil-translate
(my-c-p-s uplist used-thick)
(cons xtrans ytrans)))
'())))
#(define flare-tie
(flared-tie '((0 . 0)(0.1 . 0.2) (0.9 . 0.2) (1.0 . 0.0))))
\layout {
\context {
\Voice
\override Tie.stencil = #flare-tie
}
}
\paper { ragged-right = ##f }
\relative c' {
a4~a
\override Tie.height-limit = 4
a'4~a
a'4~a
<a,, c e a c e a c e>~ q
\break
a'4~a
\once \override Tie.details.height-limit = 14
a4~a
\break
a4~a
\once \override Tie.details.height-limit = 0.5
a4~a
\break
a4~a
\shape #'((0 . 0) (0 . 0.4) (0 . 0.4) (0 . 0)) Tie
a4~a
\break
a4~a
\once \override Tie.stencil =
#(flared-tie '((0 . 0)(0.1 . 0.4) (0.9 . 0.4) (1.0 . 0.0)))
a4~a
a4~a
\once \override Tie.stencil =
#(flared-tie '((0 . 0)(0.06 . 0.1) (0.94 . 0.1) (1.0 . 0.0)))
a4~a
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 平坦なタイ ] | [ 上へ : Staff notation ] | [ Staff notation: Grob をスキップするグリッサンド > ] |
強制的に小節の幅を MetronomeMark の幅に合わせる
デフォルトでは、メトロノーム記号は水平方向のスペーシングに影響を与えません。これは 2 つ目の例のように、単純なオーバライドで解決することができます。
example = {
\tempo "Allegro"
R1*6
\tempo "Rall."
R1*2
\tempo "A tempo"
R1*8
}
{
\compressMMRests {
\example
R1
R1
\override Score.MetronomeMark.extra-spacing-width = #'(-3 . 0)
\example
}
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 強制的に小節の幅を MetronomeMark の幅に合わせる ] | [ 上へ : Staff notation ] | [ Staff notation: 同じ小節線の上と下に 2 つのリハーサル記号を表示する (方法 1) > ] |
Grob をスキップするグリッサンド
NoteColumn Grob をグリッサンドが飛び越すように設定することができます。
\relative c' {
a2 \glissando
\once \override NoteColumn.glissando-skip = ##t
f''4 d,
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: Grob をスキップするグリッサンド ] | [ 上へ : Staff notation ] | [ Staff notation: 同じ小節線の上と下に 2 つのリハーサル記号を表示する (方法 2) > ] |
同じ小節線の上と下に 2 つのリハーサル記号を表示する (方法 1)
この方法は、’リハーサル記号’ を 2 つ、同じ位置に表示します。片方のリハーサル記号を譜の下に移動し、その上に空白を加えてもう片方のリハーサル記号が譜の上になるようにしています。
extra-offset や baseline-skip の値を調整することで、リハーサル記号と譜とのスペースを増減させることができます。
ほとんど全てのグリフや文字列をリハーサル記号にすることができるため、何らかのグリフや文字列を小節線の上や下に中央揃えするために用いることもできます。
スニペット 1 にあるように、適切な ’break-visibility’ を加えることで、2 つのリハーサル記号を行の終わりに表示することもできます。
注意: 方法 1 は方法 2 より複雑ではないですが、もう片方の記号に影響を与えずに片方の位置を微調整することはできません。また、extra-offset を調整しても記号の本来のバウンディング ボックスは維持されるため、垂直方向のスペーシングに関しても問題があります。
\relative c'{
c d e f |
\once \override Score.RehearsalMark.extra-offset = #'(0 . -8.5)
\once \override Score.RehearsalMark.baseline-skip = #9
\mark \markup \center-column { \circle 1 \box A }
g f e d |
\once \override Score.RehearsalMark.extra-offset = #'(0 . -8.5)
\once \override Score.RehearsalMark.baseline-skip = #9
\mark \markup \center-column { \flat { \bold \small \italic Fine. } }
g f e d |
\once \override Score.RehearsalMark.extra-offset = #'(0 . -8.5)
\once \override Score.RehearsalMark.baseline-skip = #9
\override Score.RehearsalMark.break-visibility = #begin-of-line-invisible
\mark \markup \center-column { \fermata \box z }
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 同じ小節線の上と下に 2 つのリハーサル記号を表示する (方法 1) ] | [ 上へ : Staff notation ] | [ Staff notation: インキピット > ] |
同じ小節線の上と下に 2 つのリハーサル記号を表示する (方法 2)
この方法は、’リハーサル記号’ を 2 つ、同じ位置に表示します。片方は譜の上、片方は譜の下に配置されています。そのために、2 つのボイスを作成し、リハーサル記号のエングラーバをそれぞれのボイスに追加しています (そうしなければ表示されません)。 そして、それぞれのボイス内でリハーサル記号の向きを UP と DOWN に設定しています。
この方法は (方法 1 と異なり) より複雑ですが、もう片方に影響を与えずに片方のリハーサル記号を調整することができるためより柔軟です。
\score {
\relative c'
<<
\new Staff {
<<
\new Voice \with {
\consists Mark_engraver
\consists "Staff_collecting_engraver"
}
{ c4 d e f
\mark \markup { \box A }
c4 d e f
}
\new Voice \with {
\consists Mark_engraver
\consists "Staff_collecting_engraver"
\override RehearsalMark.direction = #DOWN
}
{ s4 s s s
\mark \markup { \circle 1 }
s4 s s s
}
>>
}
>>
\layout {
\context {
\Score
\remove "Mark_engraver"
\remove "Staff_collecting_engraver"
}
}
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 同じ小節線の上と下に 2 つのリハーサル記号を表示する (方法 2) ] | [ 上へ : Staff notation ] | [ Staff notation: 譜の上にマークアップとして楽譜片を挿入する > ] |
インキピット
計量音楽を転写する際、曲の最初に表示されるインキピットは、原曲の調やテンポを記述するのに有用です。現代の音楽家は小節線に慣れていますが、計量音楽の時代には知られていないものでした。そのため妥協策として、小節線が譜と譜の間に表示されることがあります。これは計量音楽風の (mensurstriche) レイアウトと呼ばれています。
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% A short excerpt from the Jubilate Deo by Orlande de Lassus
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
global = {
\set Score.skipBars = ##t
\key g \major
\time 4/4
% the actual music
\skip 1*8
% let finis bar go through all staves
\override Staff.BarLine.transparent = ##f
% finis bar
\bar "|."
}
discantusIncipit = {
\clef "neomensural-c1"
\key f \major
\time 2/2
c''1.
}
discantusNotes = {
\transpose c' c'' {
\clef "treble"
d'2. d'4 |
b e' d'2 |
c'4 e'4.( d'8 c' b |
a4) b a2 |
b4.( c'8 d'4) c'4 |
\once \hide NoteHead
c'1 |
b\breve |
}
}
discantusLyrics = \lyricmode {
Ju -- bi -- la -- te De -- o,
om -- nis ter -- ra, __ om-
"..."
-us.
}
altusIncipit = {
\clef "neomensural-c3"
\key f \major
\time 2/2
r1 f'1.
}
altusNotes = {
\transpose c' c'' {
\clef "treble"
r2 g2. e4 fis g |
a2 g4 e |
fis g4.( fis16 e fis4) |
g1 |
\once \hide NoteHead
g1 |
g\breve |
}
}
altusLyrics = \lyricmode {
Ju -- bi -- la -- te
De -- o, om -- nis ter -- ra,
"..."
-us.
}
tenorIncipit = {
\clef "neomensural-c4"
\key f \major
\time 2/2
r\longa
r\breve
r1 c'1.
}
tenorNotes = {
\transpose c' c' {
\clef "treble_8"
R1 |
R1 |
R1 |
% two measures
r2 d'2. d'4 b e' |
\once \hide NoteHead
e'1 |
d'\breve |
}
}
tenorLyrics = \lyricmode {
Ju -- bi -- la -- te
"..."
-us.
}
bassusIncipit = {
\clef "mensural-f"
\key f \major
\time 2/2
r\maxima
f1.
}
bassusNotes = {
\transpose c' c' {
\clef "bass"
R1 |
R1 |
R1 |
R1 |
g2. e4 |
\once \hide NoteHead
e1 |
g\breve |
}
}
bassusLyrics = \lyricmode {
Ju -- bi-
"..."
-us.
}
\score {
<<
\new StaffGroup = choirStaff <<
\new Voice = "discantusNotes" <<
\set Staff.instrumentName = "Discantus"
\incipit \discantusIncipit
\global
\discantusNotes
>>
\new Lyrics \lyricsto discantusNotes { \discantusLyrics }
\new Voice = "altusNotes" <<
\set Staff.instrumentName = "Altus"
\global
\incipit \altusIncipit
\altusNotes
>>
\new Lyrics \lyricsto altusNotes { \altusLyrics }
\new Voice = "tenorNotes" <<
\set Staff.instrumentName = "Tenor"
\global
\incipit \tenorIncipit
\tenorNotes
>>
\new Lyrics \lyricsto tenorNotes { \tenorLyrics }
\new Voice = "bassusNotes" <<
\set Staff.instrumentName = "Bassus"
\global
\incipit \bassusIncipit
\bassusNotes
>>
\new Lyrics \lyricsto bassusNotes { \bassusLyrics }
>>
>>
\layout {
\context {
\Score
%% no bar lines in staves or lyrics
\hide BarLine
}
%% the next two instructions keep the lyrics between the bar lines
\context {
\Lyrics
\consists "Bar_engraver"
\consists "Separating_line_group_engraver"
}
\context {
\Voice
%% no slurs
\hide Slur
%% Comment in the below "\remove" command to allow line
%% breaking also at those bar lines where a note overlaps
%% into the next measure. The command is commented out in this
%% short example score, but especially for large scores, you
%% will typically yield better line breaking and thus improve
%% overall spacing if you comment in the following command.
%%\remove "Forbid_line_break_engraver"
}
indent = 6\cm
incipit-width = 4\cm
}
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: インキピット ] | [ 上へ : Staff notation ] | [ Staff notation: TabStaff で最高弦を下に表示する > ] |
譜の上にマークアップとして楽譜片を挿入する
\markup コマンドは非常に多くのことができます。このスニペットでは、テキストや記号ではなく、\score ブロックを含んだ \markup を作成しています。
tuning = \markup {
\score {
\new Staff \with { \remove "Time_signature_engraver" }
{
\clef bass
<c, g, d g>1
}
\layout { ragged-right = ##t indent = 0\cm }
}
}
\header {
title = "Solo Cello Suites"
subtitle = "Suite IV"
subsubtitle = \markup { Originalstimmung: \raise #0.5 \tuning }
}
\layout { ragged-right = ##f }
\relative c'' {
\time 4/8
\tuplet 3/2 { c8 d e } \tuplet 3/2 { c d e }
\tuplet 3/2 { c8 d e } \tuplet 3/2 { c d e }
g8 a g a
g8 a g a
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 譜の上にマークアップとして楽譜片を挿入する ] | [ 上へ : Staff notation ] | [ Staff notation: 文字でタブ譜をフォーマットする > ] |
TabStaff で最高弦を下に表示する
タブ譜では通常、第 1 弦が上に表示されます。下に表示したい場合には、stringOneTopmost コンテキスト プロパティを変更します。コンテキスト全体に設定するには、layout ブロックに設定することができます。
%
%\layout {
% \context {
% \Score
% stringOneTopmost = ##f
% }
% \context {
% \TabStaff
% tablatureFormat = #fret-letter-tablature-format
% }
%}
m = {
\cadenzaOn
e, b, e gis! b e'
\bar "||"
}
<<
\new Staff { \clef "G_8" <>_"default" \m <>_"italian (historic)"\m }
\new TabStaff
{
\m
\set Score.stringOneTopmost = ##f
\set TabStaff.tablatureFormat = #fret-letter-tablature-format
\m
}
>>
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: TabStaff で最高弦を下に表示する ] | [ 上へ : Staff notation ] | [ Staff notation: グリッサンドを改行できるようにする > ] |
文字でタブ譜をフォーマットする
タブ譜では数字の代わりに文字を用いることができます。
music = \relative c {
c4 d e f
g4 a b c
d4 e f g
}
<<
\new Staff {
\clef "G_8"
\music
}
\new TabStaff \with {
tablatureFormat = #fret-letter-tablature-format
}
{
\music
}
>>
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 文字でタブ譜をフォーマットする ] | [ 上へ : Staff notation ] | [ Staff notation: いくつかの譜線を他より太くする > ] |
グリッサンドを改行できるようにする
after-line-breaking と共に breakable プロパティを #t
にすることで、グリッサンドの途中で改行することができます。
glissandoSkipOn = {
\override NoteColumn.glissando-skip = ##t
\hide NoteHead
\override NoteHead.no-ledgers = ##t
}
\relative c'' {
\override Glissando.breakable = ##t
\override Glissando.after-line-breaking = ##t
f1\glissando |
\break
a4 r2. |
f1\glissando
\once \glissandoSkipOn
\break
a2 a4 r4 |
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: グリッサンドを改行できるようにする ] | [ 上へ : Staff notation ] | [ Staff notation: 小節カウンタ > ] |
いくつかの譜線を他より太くする
教育上の目的で、譜線を太くすることができます (目的の例としては、中央の線の強調や、ト音記号の線を強調することなど)。これは強調したい線のすぐ近くに新たな譜線を追加することで実現できます。譜線の追加には StaffSymbol
オブジェクトの line-positions プロパティを使用します。
{
\override Staff.StaffSymbol.line-positions =
#'(-4 -2 -0.2 0 0.2 2 4)
d'4 e' f' g'
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: いくつかの譜線を他より太くする ] | [ 上へ : Staff notation ] | [ Staff notation: Mensurstriche レイアウト (譜の間に小節線を表示する) > ] |
小節カウンタ
このスニペットは、透明なパーセント繰り返しを用いて、小節カウンタを表示する方法を示しています。
<<
\context Voice = "foo" {
\clef bass
c4 r g r
c4 r g r
c4 r g r
c4 r g r
}
\context Voice = "foo" {
\set countPercentRepeats = ##t
\hide PercentRepeat
\override PercentRepeatCounter.staff-padding = #1
\repeat percent 4 { s1 }
}
>>
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 小節カウンタ ] | [ 上へ : Staff notation ] | [ Staff notation: オッターヴァのスパナの傾きを変更する > ] |
Mensurstriche レイアウト (譜の間に小節線を表示する)
Mensurstriche (計量音楽風の) レイアウトでは、小節線を譜の中には表示せず、譜と譜の間に表示します。これは、ChoirStaff の代わりに StaffGroup
を用いることで実現できます。譜の中にある小節線は \hide で非表示にします。
global = {
\hide Staff.BarLine
s1 s
% the final bar line is not interrupted
\undo \hide Staff.BarLine
\bar "|."
}
\new StaffGroup \relative c'' {
<<
\new Staff { << \global { c1 c } >> }
\new Staff { << \global { c c } >> }
>>
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: Mensurstriche レイアウト (譜の間に小節線を表示する) ] | [ 上へ : Staff notation ] | [ Staff notation: 譜をネストする > ] |
オッターヴァのスパナの傾きを変更する
オッターヴァのスパナの傾きを変更することができます。
\relative c'' {
\override Staff.OttavaBracket.stencil = #ly:line-spanner::print
\override Staff.OttavaBracket.bound-details =
#`((left . ((Y . 0) ; Change the integer here
(attach-dir . ,LEFT)
(padding . 0)
(stencil-align-dir-y . ,CENTER)))
(right . ((Y . 5) ; Change the integer here
(padding . 0)
(attach-dir . ,RIGHT)
(text . ,(make-draw-dashed-line-markup
(cons 0 -1.2))))))
\override Staff.OttavaBracket.left-bound-info =
#ly:line-spanner::calc-left-bound-info-and-text
\override Staff.OttavaBracket.right-bound-info =
#ly:line-spanner::calc-right-bound-info
\ottava #1
c1
c'''1
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: オッターヴァのスパナの傾きを変更する ] | [ 上へ : Staff notation ] | [ Staff notation: 非伝統的な調号 > ] |
譜をネストする
systemStartDelimiterHierarchy は、より複雑な譜のグループ化を行うために用いることができます。\set StaffGroup.systemStartDelimiterHierarchy コマンドの引数として基となるのは、譜の数だけあるアルファベットのリストです。それぞれの譜の前に SystemStartDelimiter を追加することで、グループ化の始まりを示します。その際、グループとなる譜の範囲を括弧で囲む必要があります。リスト中の要素は省略することができますが、最上位のグループは必ず全ての譜を含みます。SystemStartDelimiter は SystemStartBar,
SystemStartBracket, SystemStartBrace,
SystemStartSquare のいずれかです。
\new StaffGroup
\relative c'' <<
\override StaffGroup.SystemStartSquare.collapse-height = #4
\set StaffGroup.systemStartDelimiterHierarchy
= #'(SystemStartSquare (SystemStartBrace (SystemStartBracket a
(SystemStartSquare b) ) c ) d)
\new Staff { c1 }
\new Staff { c1 }
\new Staff { c1 }
\new Staff { c1 }
\new Staff { c1 }
>>
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 譜をネストする ] | [ 上へ : Staff notation ] | [ Staff notation: 小節のグループに番号付けする > ] |
非伝統的な調号
広く使われている \key コマンドは、Staff コンテキストの
keyAlterations をセットしています。非標準な調号を作成するには、このプロパティを直接セットします。
コマンドの形式は以下のようなリストです:
\set Staff.keyAlterations = #`(((octave . step) . alter) ((octave
. step) . alter) ...)
が構文です。リストの各要素について、octave がオクターブを指定し
(0 がミドル C からその上の B まで)、step はオクターブ内の音階 (0 が C, 6 が B)、alter が ,SHARP ,FLAT ,DOUBLE-SHARP
などです。
または、各要素についてより簡潔な形式があり、(step . alter) は全てのオクターブに対して変化記号が適用されます。“シャープ” が 100 セントではない微分音のスケールでは、alter
を 200 セントの全音を 1 とした数値で指定できます。
\include "arabic.ly"
\relative do' {
\set Staff.keyAlterations = #`((0 . ,SEMI-FLAT)
(1 . ,SEMI-FLAT)
(2 . ,FLAT)
(5 . ,FLAT)
(6 . ,SEMI-FLAT))
%\set Staff.extraNatural = ##f
re reb \dwn reb resd
dod dob dosd \dwn dob |
dobsb dodsd do do |
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 非伝統的な調号 ] | [ 上へ : Staff notation ] | [ Staff notation: オーケストラ、コーラス、ピアノのテンプレート > ] |
小節のグループに番号付けする
このスニペットは Measure_counter_engraver で、連続した小節をいくつかにグループ分けし、それぞれに番号を表示する方法を示しています。どのような範囲を取っても良く、繰り返しが含まれていてもかまいません。
エングラーバは適切なコンテキストに追加する必要があります。今回は
Staff コンテキストを使用しています。他の選択肢としては
Dynamics コンテキストがあります。
カウンタは \startMeasureCount で始まり、\stopMeasureCount
で終わります。番号はデフォルトで 1 から開始しますが、count-from
プロパティをオーバライドすることで変更することができます。
小節の途中で改行される場合、小節番号は 2 回表示されます。改行後の数字は括弧付きで表示されます。
\layout {
\context {
\Staff
\consists #Measure_counter_engraver
}
}
\new Staff {
\startMeasureCount
\repeat unfold 7 {
c'4 d' e' f'
}
\stopMeasureCount
\bar "||"
g'4 f' e' d'
\override Staff.MeasureCounter.count-from = #2
\startMeasureCount
\repeat unfold 5 {
g'4 f' e' d'
}
g'4 f'
\bar ""
\break
e'4 d'
\repeat unfold 7 {
g'4 f' e' d'
}
\stopMeasureCount
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 小節のグループに番号付けする ] | [ 上へ : Staff notation ] | [ Staff notation: 歌詞を譜の内部に表示する > ] |
オーケストラ、コーラス、ピアノのテンプレート
このテンプレートは StaffGroup と GrandStaff コンテキストをネストさせて用いることで、楽器のサブ グループを表示しています。また、\transpose を使用して、移調楽器の音符をコンサート ピッチの状態で変数に格納しています。
#(set-global-staff-size 17)
\paper {
indent = 3.0\cm % add space for instrumentName
short-indent = 1.5\cm % add less space for shortInstrumentName
}
fluteMusic = \relative c' { \key g \major g'1 b }
% Pitches as written on a manuscript for Clarinet in A
% are transposed to concert pitch.
clarinetMusic = \transpose c' a
\relative c'' { \key bes \major bes1 d }
trumpetMusic = \relative c { \key g \major g''1 b }
% Key signature is often omitted for horns
hornMusic = \transpose c' f
\relative c { d'1 fis }
percussionMusic = \relative c { \key g \major g1 b }
sopranoMusic = \relative c'' { \key g \major g'1 b }
sopranoLyrics = \lyricmode { Lyr -- ics }
altoIMusic = \relative c' { \key g \major g'1 b }
altoIIMusic = \relative c' { \key g \major g'1 b }
altoILyrics = \sopranoLyrics
altoIILyrics = \lyricmode { Ah -- ah }
tenorMusic = \relative c' { \clef "treble_8" \key g \major g1 b }
tenorLyrics = \sopranoLyrics
pianoRHMusic = \relative c { \key g \major g''1 b }
pianoLHMusic = \relative c { \clef bass \key g \major g1 b }
violinIMusic = \relative c' { \key g \major g'1 b }
violinIIMusic = \relative c' { \key g \major g'1 b }
violaMusic = \relative c { \clef alto \key g \major g'1 b }
celloMusic = \relative c { \clef bass \key g \major g1 b }
bassMusic = \relative c { \clef "bass_8" \key g \major g,1 b }
\score {
<<
\new StaffGroup = "StaffGroup_woodwinds" <<
\new Staff = "Staff_flute" \with { instrumentName = "Flute" }
\fluteMusic
\new Staff = "Staff_clarinet" \with {
instrumentName = \markup { \concat { "Clarinet in B" \flat } }
}
% Declare that written Middle C in the music
% to follow sounds a concert B flat, for
% output using sounded pitches such as MIDI.
%\transposition bes
% Print music for a B-flat clarinet
\transpose bes c' \clarinetMusic
>>
\new StaffGroup = "StaffGroup_brass" <<
\new Staff = "Staff_hornI" \with { instrumentName = "Horn in F" }
% \transposition f
\transpose f c' \hornMusic
\new Staff = "Staff_trumpet" \with { instrumentName = "Trumpet in C" }
\trumpetMusic
>>
\new RhythmicStaff = "RhythmicStaff_percussion"
\with { instrumentName = "Percussion" }
<<
\percussionMusic
>>
\new PianoStaff \with { instrumentName = "Piano" }
<<
\new Staff { \pianoRHMusic }
\new Staff { \pianoLHMusic }
>>
\new ChoirStaff = "ChoirStaff_choir" <<
\new Staff = "Staff_soprano" \with { instrumentName = "Soprano" }
\new Voice = "soprano"
\sopranoMusic
\new Lyrics \lyricsto "soprano" { \sopranoLyrics }
\new GrandStaff = "GrandStaff_altos"
\with { \accepts Lyrics } <<
\new Staff = "Staff_altoI" \with { instrumentName = "Alto I" }
\new Voice = "altoI"
\altoIMusic
\new Lyrics \lyricsto "altoI" { \altoILyrics }
\new Staff = "Staff_altoII" \with { instrumentName = "Alto II" }
\new Voice = "altoII"
\altoIIMusic
\new Lyrics \lyricsto "altoII" { \altoIILyrics }
>>
\new Staff = "Staff_tenor" \with { instrumentName = "Tenor" }
\new Voice = "tenor"
\tenorMusic
\new Lyrics \lyricsto "tenor" { \tenorLyrics }
>>
\new StaffGroup = "StaffGroup_strings" <<
\new GrandStaff = "GrandStaff_violins" <<
\new Staff = "Staff_violinI" \with { instrumentName = "Violin I" }
\violinIMusic
\new Staff = "Staff_violinII" \with { instrumentName = "Violin II" }
\violinIIMusic
>>
\new Staff = "Staff_viola" \with { instrumentName = "Viola" }
\violaMusic
\new Staff = "Staff_cello" \with { instrumentName = "Cello" }
\celloMusic
\new Staff = "Staff_bass" \with { instrumentName = "Double Bass" }
\bassMusic
>>
>>
\layout { }
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: オーケストラ、コーラス、ピアノのテンプレート ] | [ 上へ : Staff notation ] | [ Staff notation: 移調を含む他のボイスの引用 > ] |
歌詞を譜の内部に表示する
歌詞の垂直方向の位置を移動し、譜の内部に表示させることができます。歌詞は
\override LyricText.extra-offset = #'(0 . dy) で移動し、延長線やハイフンを移動する同様のコマンドも必要です。必要な移動量は試行錯誤によって決定します。
<<
\new Staff <<
\new Voice = "voc" \relative c' { \stemDown a bes c8 b c4 }
>>
\new Lyrics \with {
\override LyricText.extra-offset = #'(0 . 8.6)
\override LyricExtender.extra-offset = #'(0 . 8.6)
\override LyricHyphen.extra-offset = #'(0 . 8.6)
} \lyricsto "voc" { La la -- la __ _ la }
>>
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 歌詞を譜の内部に表示する ] | [ 上へ : Staff notation ] | [ Staff notation: 他のボイスを引用する > ] |
移調を含む他のボイスの引用
音楽の引用では、ソースとターゲットの両方で移調が考慮されます。この例では、全ての楽器が絶対ピッチとしてミドル C を演奏します。ターゲットは
F 管の楽器です。ターゲットとなるパート内で \transpose を用いて移調することができ、この場合は全てのピッチが移調されます
(訳注: 以前は引用を含めたピッチが移調されていましたが、2.18 時点で挙動が変更されており、引用のピッチが変更されないようになっています)。
\addQuote clarinet {
\transposition bes
\repeat unfold 8 { d'16 d' d'8 }
}
\addQuote sax {
\transposition es'
\repeat unfold 16 { a8 }
}
quoteTest = {
% french horn
\transposition f
g'4
<< \quoteDuring "clarinet" { \skip 4 } s4^"clar." >>
<< \quoteDuring "sax" { \skip 4 } s4^"sax." >>
g'4
}
{
\new Staff \with {
instrumentName = \markup { \column { Horn "in F" } }
}
\quoteTest
\transpose c' d' << \quoteTest s4_"up a tone" >>
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 移調を含む他のボイスの引用 ] | [ 上へ : Staff notation ] | [ Staff notation: ピアノ曲の先頭にあるブレースを削除する > ] |
他のボイスを引用する
quotedEventTypes プロパティは、引用される音楽イベントのタイプを指定します。デフォルト値は (note-event rest-event tie-event beam-event
tuplet-span-event) であり、これは音符、休符、タイ、連桁、連符のみが
\quoteDuring によって引用されることを示しています。次の例では、rest-event がリストに含まれていないため、16 分休符が引用されていません。
イベントのタイプのリストは、内部リファレンスの “Music classes” を参照してください。
quoteMe = \relative c' {
fis4 r16 a8.-> b4\ff c
}
\addQuote quoteMe \quoteMe
original = \relative c'' {
c8 d s2
\once \override NoteColumn.ignore-collision = ##t
es8 gis8
}
<<
\new Staff \with { instrumentName = "quoteMe" }
\quoteMe
\new Staff \with { instrumentName = "orig" }
\original
\new Staff \with {
instrumentName = "orig+quote"
quotedEventTypes = #'(note-event articulation-event)
}
\relative c''
<<
\original
\new Voice {
s4
\set fontSize = #-4
\override Stem.length-fraction = #(magstep -4)
\quoteDuring "quoteMe" { \skip 2. }
}
>>
>>
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 他のボイスを引用する ] | [ 上へ : Staff notation ] | [ Staff notation: 先頭の空行を削除する > ] |
ピアノ曲の先頭にあるブレースを削除する
このスニペットは、PianoStaff や GrandStaff から先頭にあるブレース (波括弧) を削除しています。これは譜刻された既存の音楽の一部を切り取って見せる場合に有用です。
これは \alterBroken を使用しています。
someMusic = {
\once \override Staff.Clef.stencil = ##f
\once \override Staff.TimeSignature.stencil = ##f
\repeat unfold 3 c1 \break
\repeat unfold 5 c1 \break
\repeat unfold 5 c1
}
\score {
\new PianoStaff
<<
\new Staff = "right" \relative c'' \someMusic
\new Staff = "left" \relative c' { \clef F \someMusic }
>>
\layout {
indent=75
\context {
\PianoStaff
\alterBroken transparent #'(#t) SystemStartBrace
}
}
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: ピアノ曲の先頭にあるブレースを削除する ] | [ 上へ : Staff notation ] | [ Staff notation: システム セパレータを設定する > ] |
先頭の空行を削除する
VerticalAxisGroup の remove-first プロパティをセットすることで、楽譜の先頭にある空の譜を削除することができます。これはグローバルの
\layout ブロックでも行うことができますし、特定の譜を削除したい場合には譜の内部で使用することもできます。後者の場合には、プロパティ名の前にコンテキストを指定する必要があります
(Staff は現在の譜にしか影響しません)。
2 つ目のグループの下側の譜は削除されていません。設定が記述されている譜にのみ適用されるからです。
\layout {
\context {
\Staff \RemoveEmptyStaves
% To use the setting globally, uncomment the following line:
% \override VerticalAxisGroup.remove-first = ##t
}
}
\new StaffGroup <<
\new Staff \relative c' {
e4 f g a \break
c1
}
\new Staff {
% To use the setting globally, comment this line,
% uncomment the line in the \layout block above
\override Staff.VerticalAxisGroup.remove-first = ##t
R1 \break
R
}
>>
\new StaffGroup <<
\new Staff \relative c' {
e4 f g a \break
c1
}
\new Staff {
R1 \break
R
}
>>
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 先頭の空行を削除する ] | [ 上へ : Staff notation ] | [ Staff notation: ティック小節線 > ] |
システム セパレータを設定する
システムとシステムの間にシステム セパレータを挿入することができます。任意のマークアップが使用できますが、デフォルト値は \slashSeparator
となっています。
\paper {
system-separator-markup = \slashSeparator
line-width = 120
}
notes = \relative c' {
c1 | c \break
c1 | c \break
c1 | c
}
\book {
\score {
\new GrandStaff <<
\new Staff \notes
\new Staff \notes
>>
}
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: システム セパレータを設定する ] | [ 上へ : Staff notation ] | [ Staff notation: 括弧に囲まれた拍子記号 - 方法 3 > ] |
ティック小節線
’ティック’ 小節線は、譜どうしの共通タイミングのみを示し、小節線にリズム的強勢を与えたくない場合によく使用されます。
\relative c' {
\set Score.defaultBarType = #"'"
c4 d e f
g4 f e d
c4 d e f
g4 f e d
\bar "|."
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: ティック小節線 ] | [ 上へ : Staff notation ] | [ Staff notation: 括弧に囲まれた拍子記号 > ] |
括弧に囲まれた拍子記号 - 方法 3
拍子記号を括弧で囲む他の方法です。
\relative c'' {
\override Staff.TimeSignature.stencil = #(lambda (grob)
(parenthesize-stencil (ly:time-signature::print grob) 0.1 0.4 0.4 0.1 ))
\time 2/4
a4 b8 c
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 括弧に囲まれた拍子記号 - 方法 3 ] | [ 上へ : Staff notation ] | [ Staff notation: 音部記号のプロパティを調整する > ] |
括弧に囲まれた拍子記号
拍子記号は括弧で囲むことができます。
\relative c'' {
\override Staff.TimeSignature.stencil = #(lambda (grob)
(bracketify-stencil (ly:time-signature::print grob) Y 0.1 0.2 0.1))
\time 2/4
a4 b8 c
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 括弧に囲まれた拍子記号 ] | [ 上へ : Staff notation ] | [ Staff notation: 1 つの譜で 2 つの \partCombine を使用する > ] |
音部記号のプロパティを調整する
音部記号のグリフ、位置、オクターブ記号を変更するだけでは、変更後の音符の位置は変更されません。調号を正しい位置に表示するためには、middleCClefPosition
も設定する必要があります。これは、“ミドル C” の位置を、中央の譜線を 0、上方向を正、下方向を負として設定します。
例えば、\clef "treble_8" は、clefGlyph, clefPosition,
(音部記号自体の縦位置) middleCPosition, clefTransposition
を設定するのと同等です。これらのプロパティの (middleCPosition を除く)
どれかが変更された場合、新たに音部記号が表示されます。
次の例は、これらのプロパティを手動でセットする方法を示しています。最初の行では音部記号と音符の位置関係は通常通りですが、次の行ではそうではありません。
{
% The default treble clef
\key f \major
c'1
% The standard bass clef
\set Staff.clefGlyph = #"clefs.F"
\set Staff.clefPosition = #2
\set Staff.middleCPosition = #6
\set Staff.middleCClefPosition = #6
\key g \major
c'1
% The baritone clef
\set Staff.clefGlyph = #"clefs.C"
\set Staff.clefPosition = #4
\set Staff.middleCPosition = #4
\set Staff.middleCClefPosition = #4
\key f \major
c'1
% The standard choral tenor clef
\set Staff.clefGlyph = #"clefs.G"
\set Staff.clefPosition = #-2
\set Staff.clefTransposition = #-7
\set Staff.middleCPosition = #1
\set Staff.middleCClefPosition = #1
\key f \major
c'1
% A non-standard clef
\set Staff.clefPosition = #0
\set Staff.clefTransposition = #0
\set Staff.middleCPosition = #-4
\set Staff.middleCClefPosition = #-4
\key g \major
c'1 \break
% The following clef changes do not preserve
% the normal relationship between notes, key signatures
% and clefs:
\set Staff.clefGlyph = #"clefs.F"
\set Staff.clefPosition = #2
c'1
\set Staff.clefGlyph = #"clefs.G"
c'1
\set Staff.clefGlyph = #"clefs.C"
c'1
\set Staff.clefTransposition = #7
c'1
\set Staff.clefTransposition = #0
\set Staff.clefPosition = #0
c'1
% Return to the normal clef:
\set Staff.middleCPosition = #0
c'1
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 音部記号のプロパティを調整する ] | [ 上へ : Staff notation ] | [ Staff notation: 譜グループの先頭に角括弧を使用する > ] |
1 つの譜で 2 つの \partCombine を使用する
\partCombine 関数は 2 パートの音楽表記を取り、パートがどのように結合されるかに応じて、“two”, “one”,
“solo”, “chords” の 4 つの Voice に配置します。\partCombine によって出力されたボイスは、それぞれがレイアウト
プロパティを持ち、通常の方法で調整することができます。ここでは、\partCombine を拡張し、4 つのボイスを 1 つの譜を結合する作業を簡単にしています。
soprano = { d’4 | cis’ b e’ d’8 cis’ | cis’2 b } alto = { fis4 | e8 fis gis ais b4 b | b ais fis2 } tenor = { a8 b | cis’ dis’ e’4 b8 cis’ d’4 | gis cis’ dis’2 } bass = { fis8 gis | a4 gis g fis | eis fis b,2 }
\new Staff << \key b\minor \clef alto \partial 4 \transpose b b’ \partCombineUp \soprano \alto \partCombineDown \tenor \bass >>
\layout {
\context {
\Staff
\accepts "VoiceBox"
}
\context {
\name "VoiceBox"
\type "Engraver_group"
\defaultchild "Voice"
\accepts "Voice"
\accepts "NullVoice"
}
}
customPartCombineUp =
#(define-music-function (partOne partTwo)
(ly:music? ly:music?)
"Take the music in @var{partOne} and @var{partTwo} and return
a @code{VoiceBox} named @q{Up} containing @code{Voice}s
that contain @var{partOne} and @var{partTwo} merged into one
voice where feasible. This variant sets the default voicing
in the output to use upward stems."
#{
\new VoiceBox = "Up" <<
\context Voice = "one" { \voiceOne }
\context Voice = "two" { \voiceThree }
\context Voice = "shared" { \voiceOne }
\context Voice = "solo" { \voiceOne }
\context NullVoice = "null" {}
\partCombine #partOne #partTwo
>>
#})
customPartCombineDown = #
(define-music-function (partOne partTwo)
(ly:music? ly:music?)
"Take the music in @var{partOne} and @var{partTwo} and return
a @code{VoiceBox} named @q{Down} containing @code{Voice}s
that contain @var{partOne} and @var{partTwo} merged into one
voice where feasible. This variant sets the default voicing
in the output to use downward stems."
#{
\new VoiceBox = "Down" <<
\set VoiceBox.soloText = #"Solo III"
\set VoiceBox.soloIIText = #"Solo IV"
\context Voice ="one" { \voiceFour }
\context Voice ="two" { \voiceTwo }
\context Voice ="shared" { \voiceFour }
\context Voice ="solo" { \voiceFour }
\context NullVoice = "null" {}
\partCombine #partOne #partTwo
>>
#})
soprano = { d'4 | cis' b e' d'8 cis' | cis'2 b }
alto = { fis4 | e8 fis gis ais b4 b | b ais fis2 }
tenor = { a8 b | cis' dis' e'4 b8 cis' d'4 | gis cis' dis'2 }
bass = { fis8 gis | a4 gis g fis | eis fis b,2 }
\new Staff <<
\key b\minor
\clef alto
\partial 4
\transpose b b'
\customPartCombineUp \soprano \alto
\customPartCombineDown \tenor \bass
>>
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 1 つの譜で 2 つの \partCombine を使用する ] | [ 上へ : Staff notation ] | [ Staff notation: autoChange を 2 つ以上のボイスで使用する > ] |
譜グループの先頭に角括弧を使用する
システム開始の境界線 SystemStartSquare は StaffGroup
または ChoirStaff で明示的にセットすることで使用することができます。
\score {
\new StaffGroup { <<
\set StaffGroup.systemStartDelimiter = #'SystemStartSquare
\new Staff { c'4 d' e' f' }
\new Staff { c'4 d' e' f' }
>> }
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 譜グループの先頭に角括弧を使用する ] | [ 上へ : Staff notation ] | [ Staff notation: 空の譜が省略された楽譜で MarkLine を使用する > ] |
autoChange を 2 つ以上のボイスで使用する
autoChange は 2 つ以上のボイスで使用することができます。
\score
{
\new PianoStaff
<<
\new Staff = "up" {
<<
\set Timing.beamExceptions = #'()
\set Timing.beatStructure = #'(4)
\new Voice {
\voiceOne
\autoChange
\relative c' {
g8 a b c d e f g
g,8 a b c d e f g
}
}
\new Voice {
\voiceTwo
\autoChange
\relative c' {
g8 a b c d e f g
g,,8 a b c d e f g
}
}
>>
}
\new Staff = "down" {
\clef bass
}
>>
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: autoChange を 2 つ以上のボイスで使用する ] | [ 上へ : Staff notation ] | [ Staff notation: SystemStartBar を接続せずに StaffGroups を縦方向に揃える > ] |
空の譜が省略された楽譜で MarkLine を使用する
空の譜が省略された楽譜 (Frenched score) で
MarkLine コンテキスト
(LSR1010)
を使用すると、2 つの MarkLine に挟まれた全ての譜が省略された場合に問題が生じます。StaffGroup 内で Keep_alive_together_engraver を使用し、グループ内の譜のどれかが残っている場合にのみ MarkLine を残しておくようにします。
bars = {
\tempo "Allegro" 4=120
s1*2
\repeat unfold 5 { \mark \default s1*2 }
\bar "||"
\tempo "Adagio" 4=40
s1*2
\repeat unfold 8 { \mark \default s1*2 }
\bar "|."
}
winds = \repeat unfold 120 { c''4 }
trumpet = { \repeat unfold 8 g'2 R1*16 \repeat unfold 4 g'2 R1*8 }
trombone = { \repeat unfold 4 c'1 R1*8 d'1 R1*17 }
strings = \repeat unfold 240 { c''8 }
#(set-global-staff-size 16)
\paper {
systems-per-page = 5
ragged-last-bottom = ##f
}
\layout {
indent = 15\mm
short-indent = 5\mm
\context {
\name MarkLine
\type Engraver_group
\consists Output_property_engraver
\consists Axis_group_engraver
\consists Mark_engraver
\consists Metronome_mark_engraver
\override VerticalAxisGroup.remove-empty = ##t
\override VerticalAxisGroup.remove-layer = #'any
\override VerticalAxisGroup.staff-affinity = #DOWN
\override VerticalAxisGroup.nonstaff-relatedstaff-spacing.basic-distance = 1
keepAliveInterfaces = #'()
}
\context {
\Staff
\override VerticalAxisGroup.remove-empty = ##t
\override VerticalAxisGroup.remove-layer = ##f
}
\context {
\StaffGroup
\accepts MarkLine
\consists Keep_alive_together_engraver
}
\context {
\Score
\remove Mark_engraver
\remove Metronome_mark_engraver
}
}
\score {
<<
\new StaffGroup = "winds" \with {
instrumentName = "Winds"
shortInstrumentName = "Winds"
} <<
\new MarkLine \bars
\new Staff \winds
>>
\new StaffGroup = "brass" <<
\new MarkLine \bars
\new Staff = "trumpet" \with {
instrumentName = "Trumpet"
shortInstrumentName = "Tpt"
} \trumpet
\new Staff = "trombone" \with {
instrumentName = "Trombone"
shortInstrumentName = "Tbn"
} \trombone
>>
\new StaffGroup = "strings" \with {
instrumentName = "Strings"
shortInstrumentName = "Strings"
} <<
\new MarkLine \bars
\new Staff = "strings" { \strings }
>>
>>
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 空の譜が省略された楽譜で MarkLine を使用する ] | [ 上へ : Staff notation ] | [ Staff notation: 繰り返し括弧をコード ネームの下に表示する > ] |
SystemStartBar を接続せずに StaffGroups を縦方向に揃える
このスニペットは、それぞれに SystemStartBar のある複数の StaffGroup を、SystemStartBar を繋げずに縦方向に揃える方法を示しています。
% by Thomas Morley
#(set-global-staff-size 18)
\paper {
indent = 0
ragged-right = ##f
print-all-headers = ##t
}
\layout {
\context {
\Staff
\consists "Mark_engraver"
\override RehearsalMark.self-alignment-X = #LEFT
}
\context {
\StaffGroup
systemStartDelimiterHierarchy =
#'(SystemStartBrace (SystemStartBracket a b))
}
\context {
\Score
\override SystemStartBrace.style = #'bar-line
\omit SystemStartBar
\override SystemStartBrace.padding = #-0.1
\override SystemStartBrace.thickness = #1.6
\remove "Mark_engraver"
\override StaffGrouper.staffgroup-staff-spacing.basic-distance = #15
}
}
%%%% EXAMPLE
txt =
\lyricmode {
Wer4 nur den lie -- ben Gott läßt wal2 -- ten4
und4 hof -- fet auf ihn al -- le Zeit2.
}
% First StaffGroup "exercise"
eI =
\relative c' {
\mark \markup {
\bold Teacher:
This is a simple setting of the choral. Please improve it.
}
\key a \minor
\time 4/4
\voiceOne
\partial 4
e4
a b c b
a b gis2
e4\fermata g! g f
e a a gis
a2.\fermata
\bar ":|."
}
eII =
\relative c' {
\key a \minor
\time 4/4
\voiceTwo
\partial 4
c4
e e e gis
a f e2
b4 b d d
c c d d
c2.
\bar ":|."
}
eIII =
\relative c' {
\key a \minor
\time 4/4
\clef bass
\voiceOne
\partial 4
a4
c b a b
c d b2
gis4 g g b
c a f e
e2.
}
eIV =
\relative c' {
\key a \minor
\time 4/4
\clef bass
\voiceTwo
\partial 4
a,4
a' gis a e
a, d e2
e,4\fermata e' b g
c f d e
a,2.\fermata
\bar ":|."
}
exercise =
\new StaffGroup = "exercise"
<<
\new Staff
<<
\new Voice \eI
\new Voice \eII
>>
\new Lyrics \txt
\new Staff
<<
\new Voice \eIII
\new Voice \eIV
>>
>>
% Second StaffGRoup "simple Bach"
sbI =
\relative c' {
\mark \markup { \bold" Pupil:" Here's my version! }
\key a \minor
\time 4/4
\voiceOne
\partial 4
e4
a b c b
a b gis2
e4\fermata g! g f
e a a gis
a2.\fermata
\bar ":|."
}
sbII =
\relative c' {
\key a \minor
\time 4/4
\voiceTwo
\partial 4
c8 d
e4 e e8 f g4
f f e2
b4 b8 c d4 d
e8 d c4 b8 c d4
c2.
\bar ":|."
}
sbIII =
\relative c' {
\key a \minor
\time 4/4
\clef bass
\voiceOne
\partial 4
a8 b
c4 b a b8 c
d4 d8 c b2
gis4 g g8 a b4
b a8 g f4 e
e2.
}
sbIV =
\relative c' {
\key a \minor
\time 4/4
\clef bass
\voiceTwo
\partial 4
a,4
a' gis a e
f8 e d4 e2
e,4\fermata e' b a8 g
c4 f8 e d4 e
a,2.\fermata
\bar ":|."
}
simpleBach =
\new StaffGroup = "simple Bach"
<<
\new Staff
<<
\new Voice \sbI
\new Voice \sbII
>>
\new Lyrics \txt
\new Staff
<<
\new Voice \sbIII
\new Voice \sbIV
>>
>>
% Third StaffGroup "chromatic Bach"
cbI =
\relative c' {
\mark \markup {
\bold "Teacher:"
\column {
"Well, you simply copied and transposed a version of J.S.Bach."
"Do you know this one?"
}
}
\key a \minor
\time 4/4
\voiceOne
\partial 4
e4
a b c b
a b gis4. fis8
e4\fermata g! g f
e a a8 b gis4
a2.\fermata
\bar ":|."
}
cbII =
\relative c' {
\key a \minor
\time 4/4
\voiceTwo
\partial 4
c8 d
e4 e e8 fis gis4
a8 g! f!4 e2
b4 e e d
d8[ cis] d dis e fis e4
e2.
\bar ":|."
}
cbIII =
\relative c' {
\key a \minor
\time 4/4
\clef bass
\voiceOne
\partial 4
a8 b
c[ b] a gis8 a4 d,
e8[ e'] d c b4. a8
gis4 b c d8 c
b[ a] a b c b b c16 d
c2.
}
cbIV =
\relative c' {
\key a \minor
\time 4/4
\clef bass
\voiceTwo
\partial 4
a4
c, e a, b
c d e2
e4\fermata e a b8 c
gis[ g] fis f e dis e4
a,2.\fermata
\bar ":|."
}
chromaticBach =
\new StaffGroup = "chromatic Bach"
<<
\new Staff
<<
\new Voice \cbI
\new Voice \cbII
>>
\new Lyrics \txt
\new Staff
<<
\new Voice \cbIII
\new Voice \cbIV
>>
>>
% Score
\score {
<<
\exercise
\simpleBach
\chromaticBach
>>
\header {
title = \markup
\column {
\combine \null \vspace #1
"Exercise: Improve the given choral"
" "
}
}
\layout {
\context {
\Lyrics
\override LyricText.X-offset = #-1
}
}
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: SystemStartBar を接続せずに StaffGroups を縦方向に揃える ] | [ 上へ : Staff notation ] | [ Staff notation: 複数譜に繰り返し括弧を表示する > ] |
繰り返し括弧をコード ネームの下に表示する
Volta_engraver を対応する譜に付け加えることで、繰り返し括弧をコード ネームの下に表示できます。
\score {
<<
\chords {
c1
c1
}
\new Staff \with {
\consists "Volta_engraver"
}
{
\repeat volta 2 { c'1 }
\alternative { c' }
}
>>
\layout {
\context {
\Score
\remove "Volta_engraver"
}
}
}
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 繰り返し括弧をコード ネームの下に表示する ] | [ 上へ : Staff notation ] | [ Editorial annotations > ] |
複数譜に繰り返し括弧を表示する
Volta_engraver を譜に追加することで、繰り返し括弧を楽譜の最上段の譜以外にも表示することができます。
voltaMusic = \relative c'' {
\repeat volta 2 {
c1
}
\alternative {
d1
e1
}
}
<<
\new StaffGroup <<
\new Staff \voltaMusic
\new Staff \voltaMusic
>>
\new StaffGroup <<
\new Staff \with { \consists "Volta_engraver" }
\voltaMusic
\new Staff \voltaMusic
>>
>>
| [ << Staff notation ] | [トップ][目次] | [ Editorial annotations >> ] |
| [ < Staff notation: 繰り返し括弧をコード ネームの下に表示する ] | [ 上へ : Staff notation ] | [ Editorial annotations > ] |