我有以下脚本:
\version "2.16.0"
\header {title = "He came down"}
upper = \relative c'' {
\easyHeadsOn
\clef treble
\key g \major
\numericTimeSignature
\time 4/4
%He came down that we may have love;
d,8 <d g>4 <d g> <d b'> <c a'> <d g> <fis a> <d c>2 r8
%He came down that we may have love;
<d c>8 <d a'>4 <d a'> <e c'> <d b'> <c a'> <d b'> <b g'>2 r8
%He came down that we may have love;
<b g'>8 <d b'>4 <d b> <g d'> <g c> <g b> <g c> g2
%Hal -- le -- lu -- Yah for ev -- er -- more.
}
lower = \relative c {
\clef bass
\key g \major
\time 4/4
d8
}
text = \lyricmode {
He came down that we may have love;
He came down that we may have love;
He came down that we may have love;
Hal -- le -- lu -- Yah for ev -- er -- more.
}
\score {
\new GrandStaff <<
\new Staff = upper {\new Voice = "singer" \upper }
\new Lyrics \lyricsto "singer" \text
\new Staff = lower { \lower }
>>
}
答案 0 :(得分:2)
这不是一个真正的编程问题,您的问题是您在4/4时间签名中添加了太多注释。如果节奏超过了条形余量,LilyPond在决定何时添加换行符时遇到问题(通常,分数不是换行是节奏问题的红旗)。您还可以使用|
向代码添加条形码检查。使用时,LilyPond将检查条形线是否与条形图休息位置一致,如果出现问题,将输出错误,告诉您条形条检查与条形线的确切位置。
以下是您的代码的固定版本,但我不确定这是您打算与否的节奏:
\version "2.16.0"
\header {title = "He came down"}
upper = \relative c'' {
\easyHeadsOn
\clef treble
\key g \major
\numericTimeSignature
\time 4/4
%He came down that we may have love;
d,8 <d g>4 <d g> <d b'> <c a'>8 | <d g>4 <fis a> <d c>2 |
%He came down that we may have love;
<d c>8 <d a'>4 <d a'> <e c'> <d b'>8 | <c a'>4 <d b'> <b g'>2 |
%He came down that we may have love;
<b g'>8 <d b'>4 <d b> <g d'>8 <g c>4 | <g b> <g c> g2 |
%Hal -- le -- lu -- Yah for ev -- er -- more.
}
lower = \relative c {
\clef bass
\key g \major
\time 4/4
d8
}
text = \lyricmode {
He came down that we may have love;
He came down that we may have love;
He came down that we may have love;
Hal -- le -- lu -- Yah for ev -- er -- more.
}
\score {
\new GrandStaff <<
\new Staff = upper {\new Voice = "singer" \upper }
\new Lyrics \lyricsto "singer" \text
\new Staff = lower { \lower }
>>
}
答案 1 :(得分:0)
我认为这只是乐观,可以防止lilypond检测到正确的节奏。只需添加一个\ partial 8(这是乐观的长度)。
\version "2.16.0"
\header {title = "He came down"}
upper = \relative c'' {
\easyHeadsOn
\clef treble
\key g \major
\numericTimeSignature
\time 4/4
\partial 8 % **This marks the upbeat. The length is 8, matching d,8 below**
%He came down that we may have love;
d,8 <d g>4 <d g> <d b'> <c a'>8 | <d g>4 <fis a> <d c>2 |
...