lilypond-user
[Top][All Lists]
Advanced

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

Re: Is it possible to change beaming from the \layout block?


From: Thomas Morley
Subject: Re: Is it possible to change beaming from the \layout block?
Date: Tue, 30 Oct 2012 11:16:49 +0100

2012/10/30 Reinhold Kainhofer <address@hidden>:
> On 2012-10-30 02:12, Vaughan McAlley wrote:
>>
>> This code compiles without complaint, but the beams are still in
>> groups of four. What am I doing wrong?
>
>
> Nothing. The \time 4/4 command implicitly sets all the timing properties, so
> your global values are overwritten and don't have any effect.
>
> Cheers,
> Reinhold

Are you sure?

The following examples seem to work:

%%%%%%%%%%%%% example 1:

\version "2.17.4"

upper = \relative c'' {
        \time 4/4
        c8 c c c c c c c
}

lower = \relative c' {
        \time 4/4
        c8 c c c c c c c
}

\score {
        \new Staff {
                <<
                \new Voice { \voiceOne \upper }
                \new Voice { \voiceTwo \lower }
                >>
        }
        \layout {
                \context {
                        \Voice
                        beamExceptions =
                        #'((end . (((1 . 8) . (2 2 2 2)))))
                }       
        }
}

%%%%%%%%%%%%% example 2:

\version "2.17.4"

myNotes = \relative c' {
  \time 4/4
  d8 d d d d d d d
}

\score {
  \new Staff = "RH" <<
    \context Staff <<
      \new Voice { \myNotes }
    >>
  >>
  \layout {
    \context {
      \Staff
      \RemoveEmptyStaves
    }
    \context {
      \Voice
      baseMoment = #(ly:make-moment 1 8)
      beatStructure = #'(2 2 2 2)
      beamExceptions = #'()
    }
  }
}

%%%%%%%%%%%%%


Regards,
  Harm



reply via email to

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