【问题标题】:Lilypond: Customize bar lines, recursively, automatically?Lilypond:递归地、自动地自定义条形线?
【发布时间】:2011-02-03 22:37:02
【问题描述】:

我正在制作涉及复杂拍号的 Carnatic 乐谱,这需要修改小节线

小节线模式:8/4

beats: 1 2 3 4  (dashed bar here) 5, 6 (Dotted Bar) 7, 8 (double bar)  

这是实际分数的一个小节

g16( f) d8 ees( ees) d16( c d8) bes16[( d c bes    \bar "dashed"
a g]) a[( bes c] d[ c d])   \bar ":"   
g8( f16) ees8( d16 c d)     \bar "||"

有没有办法自动化这些小节线?

【问题讨论】:

    标签: lilypond typesetting music-notation


    【解决方案1】:

    试试这个。它不是完全自动化的,因为您需要分配一个“不可见”的声音来指定小节线,并且您需要跟踪这种形式的限制需要扩展多少措施并指定适当的展开值。 “s”,如果你还不知道的话,它是一个不可见的间隔,持续时间就像休息一样。

    \version "2.13.19"
    
    fooBar = { s1 \bar "dashed" s2 \bar ":" s2 \bar "||" }
    
    \new Staff <<
      \new Voice = "theMusic" \relative c'' {
        % bar 1
        g16( f) d8 ees( ees) d16( c d8) bes16[( d c bes 
        a g]) a[( bes c] d[ c d]) 
        g8( f16) ees8( d16 c d) 
        % bar 2
        g16( f) d8 ees( ees) d16( c d8) bes16[( d c bes 
        a g]) a[( bes c] d[ c d]) 
        g8( f16) ees8( d16 c d)
      }
      \new Voice = "theBarLines" { \repeat unfold 2 \fooBar }
    >>
    

    【讨论】:

    • 效果很好。看不见的“声音”!我试图创建一个效果不佳的隐形员工。谢谢。
    猜你喜欢
    • 2012-05-30
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-08-17
    相关资源
    最近更新 更多