Fine-tuning manual beaming
By setting the #'beaming property, it is possible to override beaming rules. You may preferably want to use \once when doing so, as this property cannot be shared between objects.
\version "2.24.0"
%% http://lsr.di.unimi.it/LSR/Item?id=240
\relative c'' {
c32[ c
\once \override Stem.beaming = #(cons (list 1 2) (list 0 2 4))
c
\once \override Stem.beaming = #(cons (list 0 2 4) (list 0 1 4))
c c c]
}