这段代码:
\version "2.18.2"
lh = { \change Staff = "down" \stemUp }
rh = { \change Staff = "up" \stemDown }
\new PianoStaff <<
\new Staff = "up" {
\new Voice {
\numericTimeSignature
\lh a16
\rh e' a'
\lh a
\rh e' a'
\lh a
\rh e' a'
\lh a
\rh e' a'
\lh a
\rh e' b' e'
\lh a
\rh e' a'
\lh a
\rh e' a'
\lh a
\rh e' a'8.
\lh b16 c'
\rh e' g' b'
}
}
\new Staff = "down" \with { \clef "bass" \numericTimeSignature }
{ \skip 1 \skip 1 }
>>
Run Code Online (Sandbox Code Playgroud)
编译时产生以下输出:
$ lilypond test.ly
GNU LilyPond 2.18.2
Processing `test.ly'
Parsing...
Interpreting music...
Preprocessing graphical objects...
Finding the ideal number of pages...
Fitting music on 1 page...
Drawing systems...
test.ly:27:15: warning: no viable initial configuration found: may not find good beam slope
\lh b16
c'
Layout output to `test.ps'...
Converting to `./test.pdf'...
Success: compilation successfully completed
Run Code Online (Sandbox Code Playgroud)
这个通常看起来不错的图形输出:
我的问题是关于“警告”:
这样有不良影响吗?是否有可能获得更好的梁坡度?在我看来,第四拍光束可能应该向上而不是向下(但我知道什么?)。
我的代码是在 lilypond 中表达这种音乐理念的好方法吗?有没有更好的办法?
邮件列表的良好回应:https://lists.gnu.org/archive/html/lilypond-user/2018-06/msg00141.html
梁斜率可以根据情况被覆盖,例如:\once \override Beam.positions = #'( 5 . 5.5)