Lilypond恩典笔记影响格式

MCM*_*ery 4 lilypond

当我用优雅音符开始这篇文章时,它会混淆格式化: 格式错误

码:

\version "2.18.2"

\header {
    title = "Sonata in D Major"
    composer = "Joseph Haydn"
    opus = "Hob. XVI/37"
}

\language "english"

upper = \relative c'' {
    \clef treble
    \key d \major
    \time 4/4

    r4 r8 <cs a'> <d gs>( <cs a'>) <d gs>( <cs a'>) %m1
}

lower = \relative c {
    \clef treble
    \key d \major
    \time 4/4

    \grace gs''8( a-!) a,-! a-! a-! b(\trill a) b(\trill a)
}

\score {
    \new PianoStaff <<
        \set PianoStaff.instrumentName = #"Piano  "
        \new Staff = "upper" \upper
        \new Staff = "lower" \lower
    >>
    \layout { }
    \midi { }
}
Run Code Online (Sandbox Code Playgroud)

如果我删除\grace指示,它可以工作(当然,没有恩典说明):

格式好

如何在保持正确格式的同时使用此宽限注释?这是Lilypond的错误吗?

小智 8

这是一个已知的问题,但有一个解决方法:只需\grace s8在上层工作人员之前添加间隔优雅笔记(),然后再进行处理r4.

\grace s8 r4 r8 <cs a'> % etc
Run Code Online (Sandbox Code Playgroud)

lilypond输出样本

建议今年夏天在Google GSoC期间调查此问题,请访问http://lilypond.org/google-summer-of-code.html