Hi, Jay--
Will this get you closer to what you want?
\version "2.18.2"
fooBar = { s1 s4 \bar "|" s2 \bar "||" }
music = \relative c' { \compoundMeter #'((5 4) (2 4))
\set completionUnit = #(ly:make-moment 5 4)
c4 d e f g2
\set completionUnit = #(ly:make-moment 2 4)
a b4
\unset completionUnit
c c b a g2 f4 e d c b a g a b
}
shiftedMusic = \relative c' {
\compoundMeter #'((5 4) (2 4)) c4 d e f g2 a b4 c c b a g2 f4 e d c b a g a b
}
\score {
<<
\compoundMeter #'((5 4) (2 4))
\set Timing.beatStructure = #'(5 2)
\new Voice = "theBarLines" { \fooBar \fooBar \fooBar \bar "|." }
\new Voice \music
\new Voice \shiftDurations #1 #0 { \shiftedMusic }
>>
}
\layout {
\context {
\Voice
\remove Note_heads_engraver
\remove Rest_engraver
\consists Completion_heads_engraver
\consists Completion_rest_engraver
}
\context {
\Staff
% \remove Time_signature_engraver
}
}
i had to set, reset, and unset the completionUnit manually, doing it all in your
music variable. To prevent this from affecting the music with the shifted
durations, i made a second variable, shiftedMusic. i hope this helps!
bill
> Message: 2
> Date: Fri, 19 Sep 2014 09:30:45 +0000 (UTC)
> From: Jay Vara <[email protected]>
> To: [email protected]
> Subject: Re: lilypond-user Digest, Vol 142, Issue 80
> Message-ID: <[email protected]>
> Content-Type: text/plain; charset=us-ascii
>
> >I am not top-posting
>
> Bill,
>
> Here is part of the code that shows how I am trying to use compound
> meter. Like you, I also had to get the in-between bar lines artificially
> using the silent voice fooBar.
>
> Only thing that is not working for me is the Completion_heads_engraver
> across the in-between bars. For example, the 5th note g2 should have
> been split and tied. The sixth note a2 is done correctly.
>
> \version "2.18.2"
> fooBar = { s1 s4\bar "|" s2 \bar "||" }
> music = \relative c' {c4 d e f g2 a b4 c c b a g2 f4 e d c b a g a b}
> \score {
>
> <<
>
> \compoundMeter #'((5 4) (2 4) )
> \set Timing.beatStructure = #'(5 2 )
>
> \new Voice = "theBarLines" { \fooBar \fooBar \bar "|." }
>
> \new Voice \music
> \shiftDurations #1 #0 {\music}
> >>
> }
> \layout {
> \context {
> \Voice
> \remove Note_heads_engraver
> \remove Rest_engraver
> \consists Completion_heads_engraver
> \consists Completion_rest_engraver
>
> }
> \context {
> \Staff
> %\remove Time_signature_engraver
> }
> }_______________________________________________
lilypond-user mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/lilypond-user