I am setting a piece in 2/4 time.  Lilypond's default beaming pattern
is to break beams at the mid-bar point, which is what one would
generally expect.  However, I would like it to use a single beam for
the whole bar if, and only if, the bar consists of 4 quavers/half-
notes.

Of course I can easily achieve this using square brackets in the
relevant places.  But it would be nice to automate this behaviour.
 Having spent a lot of time reading the relevant parts of the Notation
Reference and various snippets, I still can't achieve what I want.  One
of my attempts is shown below.

I want the first bar to have 2 beams (one for each half of the bar) but
for the 2nd bar to have a single beam.

How can this be done?

\version "2.24.3"
\language "english"

\new Staff \relative {
  \time 2/4
  \set Timing.baseMoment = #(ly:make-moment 1/4) 
  \set Timing.beatStructure = 1,1
  \set Timing.beamExceptions = #'()
  \set Timing.beamExceptions = \beamExceptions { 8[ 8 8 8] }
c''8 c16 c c c c8
c8 c c c 
}

David

Reply via email to