2017-02-28 69 views
0

我有以下腳本: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'> <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 } 
    >> 
} 

不幸的是,當我編譯它在LilyPond的我得到以下的輸出: enter image description here 有誰知道我可以如何讓Lilypond正確排版?

回答

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 } 
    >> 
} 
0

我認爲它只是防止LilyPond的從檢測正確的節奏樂觀。只需添加一個\部分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 | 
    ... 
相關問題