Snippet in NR 2.4.2 for Subdivided Beams

Simon Albrecht <[email protected]>
Newsgroups gmane.comp.gnu.lilypond.devel
Message-ID <[email protected]>
Hi,

I just read the current doc for subdividing beams. The “selected 
snippet“ we have in the NR there (version 2.25.28) has some very wrong 
beams (first attached screenshot) and it’s not easy to collate the 
output shown with the input. I propose the improved snippet 
below/attached. (output in second attached screenshot)

I don’t quite understand what the `respectIncompleteBeams' property is 
supposed to achieve, yet, so I’d be glad for changes on that.

Sorry I can’t turn this into a MR myself right now.

The very best regards!
Simon

%%%%%%%%%%%%%%%%%%%%%%%%%%%%
\version "2.25.28"

\relative c'' {
   \time 1/4
   <>^"none"
   c32 c c c c c c c

   <>^"default"
   \set subdivideBeams = ##t
   c32 c c c c c c c

   <>^"min 1/8"
   \once \set beamMinimumSubdivision = #1/8
   c32 c c c c c c c

   <>^"max 1/16"
   \once \set beamMaximumSubdivision = #1/16
   c32 c c c c c c c

   <>^"max 3/8"
   \once \set beamMaximumSubdivision = #3/8
   \repeat unfold 16 c64

   <>^"min 1/32, max 1/64"
   % Set maximum beam subdivision interval to 1/64 to limit subdivision 
depth,
   % despite not being metrically correct
   \once \set beamMinimumSubdivision = #1/32
   \once \set beamMaximumSubdivision = #1/64
   \repeat unfold 32 c128
   \break

   <>^"Beams shorter than beatBase"
   c32 c c c c c c r32

   c32 c c c c r16.

   <>^"same with respectIncomplete"
   % Respect the incomplete beams of the previous two examples
   \set respectIncompleteBeams = ##t
   c32 c c c c c c r32
   % no visual change here as last two stems are exempt from this
   % special rule
   c32 c c c c r16.
}
Screenshot from 2025-09-23 17-57-21.png (image/png, 18.2 KB) - not displayed
Screenshot from 2025-09-23 17-57-41.png (image/png, 38.4 KB) - not displayed
20250923-proposed-snippet-nr-subdivided-beams.ly (text/x-lilypond, 991 B)
\version "2.25.28"

\relative c'' {
  \time 1/4
  <>^"none"
  c32 c c c c c c c

  <>^"default"
  \set subdivideBeams = ##t
  c32 c c c c c c c

  <>^"min 1/8"
  \once \set beamMinimumSubdivision = #1/8
  c32 c c c c c c c

  <>^"max 1/16"
  \once \set beamMaximumSubdivision = #1/16
  c32 c c c c c c c

  <>^"max 3/8"
  \once \set beamMaximumSubdivision = #3/8
  \repeat unfold 16 c64

  <>^"min 1/32, max 1/64"
  % Set maximum beam subdivision interval to 1/64 to limit subdivision depth,
  % despite not being metrically correct
  \once \set beamMinimumSubdivision = #1/32
  \once \set beamMaximumSubdivision = #1/64
  \repeat unfold 32 c128
  \break

  <>^"Beams shorter than beatBase"
  c32 c c c c c c r32

  c32 c c c c r16.

  <>^"same with respectIncomplete"
  % Respect the incomplete beams of the previous two examples
  \set respectIncompleteBeams = ##t
  c32 c c c c c c r32
  % no visual change here as last two stems are exempt from this
  % special rule
  c32 c c c c r16.
}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.