Jump to content

Alternating beam directions

From LilyPond wiki

The eighth notes may be seemingly attached to different beams, and the corresponding notes connected by ties. Such a situation may occur, for example, in the cello suites.

\version "2.24.0"

%% http://lsr.di.unimi.it/LSR/Item?id=94

wipeNote = {
  \once \override NoteHead.transparent = ##t
  \once \override Stem.transparent = ##t 
}

\layout { raggedright = ##t }

\relative c''<< 
  {
    c8[~ \wipeNote c c~ \wipeNote c c]~ \wipeNote c\noBeam
  } \\ { 
    s8 c[ s c s c] 
  } 
>>