Connecting groups of beamed notes with a single beam
Groups of beamed notes can be connected with a settable number of beams using the stemRightBeamCount and stemLeftBeamCount properties.
\version "2.24"
\relative c'' {
c32[ c c
\set stemRightBeamCount = #1
c32
\set stemLeftBeamCount = #1
c32 c c c]
}