开发者

Lilypond: Customize bar lines, recursively, automatically?

开发者 https://www.devze.com 2022-12-25 06:40 出处:网络
I\'m working on Carnatic music scores that involve complex time signatures, that will require modified bar lines

I'm working on Carnatic music scores that involve complex time signatures, that will require modified bar lines

Pattern 开发者_运维技巧for barlines for: 8/4

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

Here's one bar of actual score

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 "||"

Is there a way to automate these barlines?


Give this a try. It's not fully automated in that you need to have an "invisible" voice allocated to specify the barlines, and you need to keep track of how many measures this form of barring needs to extend and specify an appropriate unfold value. The "s", if you don't already know, is an invisible spacer, with duration like a rest.

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

精彩评论

暂无评论...
验证码 换一张
取 消