Slashed beams
Slashed beams are printed by using the special stencil procedure
beam::slashed-stencil
. The slash may be printed at the left or right
side of the beam and is further customizable by overrides of the details
subproperties over-beam-height
, slash-slope
, slash-side
,
slash-stem-fraction
, slash-thickness
, and
slash-X-positions
.
Note that those subproperties negotiate with each other to get a pleasing
output, i.e., changing one of them may have impact on others.
mus = \repeat unfold 4 a16
{
\override TextScript.rotation = #'(15 1 0)
\override Beam.stencil = #beam::slashed-stencil
\mus
<>^"slash-side" %% default: LEFT
\once \override Beam.details.slash-side = #RIGHT
\mus
<>^"over-beam-height" %% default: 0.75
\once \override Beam.details.over-beam-height = #1.5
\mus
<>^"slash-slope" %% default: 2
\once \override Beam.details.slash-slope = #1.0
\mus
<>^"slash-stem-fraction" %% default: 0.3
\once \override Beam.details.slash-stem-fraction = #0.6
\mus
<>^"slash-thickness" %% default: 0.1
\once \override Beam.details.slash-thickness = #0.2
\mus
<>^"slash-X-positions" %% default: (-0.5 . 1)
\once \override Beam.details.slash-X-positions = #'(-1 . 2)
\mus
}