%% too big. We have to adjust the beam settings:
\override Beam #'beam-thickness = #0.32
\override Beam #'length-fraction = #0.62
+ %% the same goes for tremolo beams
+ \override StemTremolo #'beam-thickness = #0.32
+ %% NOTE: in lily/stem-tremolo.cc, we have length-fraction = 1,
+ %% and the tablature staff space is scaled (1.5 by default),
+ %% so we use the inversion of the scale factor:
+ \override StemTremolo #'length-fraction = #(lambda (grob)
+ (/ 1 (ly:staff-symbol-staff-space grob)))
+ \override StemTremolo #'beam-width = #stem-tremolo::calc-tab-width
%% No accidental in tablature !
\remove "Accidental_engraver"
autoBeaming = ##f
%% remove beams, dots and rests ...
\override Beam #'stencil = ##f
+ \override StemTremolo #'stencil = ##f
\override Dots #'stencil = ##f
\override Rest #'stencil = ##f
\override MultiMeasureRest #'stencil = ##f
\revert NoteColumn #'ignore-collision
% beams, dots
\revert TabVoice.Beam #'stencil
+ \revert TabVoice.StemTremolo #'stencil
\revert TabVoice.Dots #'stencil
\revert TabVoice.Tie #'stencil
\revert TabVoice.Tie #'after-line-breaking
(ly:grob-set-property! grob 'control-points new-control-points)
(ly:slur::print grob)))
+
+;; for \tabFullNotation, the stem tremolo beams are too big in comparison to
+;; normal staves; this wrapper function scales accordingly:
+(define-public (stem-tremolo::calc-tab-width grob)
+ (let ((width (ly:stem-tremolo::calc-width grob))
+ (staff-space (ly:staff-symbol-staff-space grob)))
+ (/ width staff-space)))