lilypond-user
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: lilypond-user Digest, Vol 142, Issue 83


From: address@hidden
Subject: Re: lilypond-user Digest, Vol 142, Issue 83
Date: Fri, 19 Sep 2014 09:47:33 -0400 (EDT)

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 <address@hidden>
> To: address@hidden
> Subject: Re: lilypond-user Digest, Vol 142, Issue 80
> Message-ID: <address@hidden>
> 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
> }
> }

reply via email to

[Prev in Thread] Current Thread [Next in Thread]