On Thu, Oct 2, 2014 at 7:11 AM, Jay Vara <j...@diljun.com> wrote:

> David,
>
> I tried your snippet with a different meter and it gives some weird
> results. It seems to produce additional bars - I changed the bar after the
> compound meter to double bar so we can see the extraneous bars. And the
> notes are not placed properly. Am I doing something totally foolish here?
>
> %%%%%%%%%%%%%%%%
>
> \version "2.18.2"
>
> musicA = {
>
> \compoundMeter #'((2 4) (4 4))
>
> \relative c' {
>
> c'2. d4 b2. c4 a2. b4 g2. a4 f2. g4
>
> }
>

The problem is here: you need to change the durations of the spacer rests
to reflect your measure divisions:

 patterning = {
  \repeat unfold 8 {
    \set Staff.completionUnit = #(ly:make-moment 2 4)
    s2 \bar "!"
    \set Staff.completionUnit = #(ly:make-moment 4 4)
    s1 \bar "||"
  }
}

Then it works just fine!

David
_______________________________________________
lilypond-user mailing list
lilypond-user@gnu.org
https://lists.gnu.org/mailman/listinfo/lilypond-user

Reply via email to