4 texidoc = "The @code{\\offset} command may be used to displace various properties
5 from the default settings contained in grob descriptions. Settings which may be
6 offset are limited to those of type @code{number}, @code{number-pair}, or
7 @code{number-pair-list}. Most of the following examples begin with the grob in its
8 default appearance. The command is demonstrated as a tweak and as an override."
21 <c e g b>1-\offset positions #'(-1 . 1) \arpeggio
28 \once \offset Y-offset 1 BreathingSign
35 \once \offset X-offset #-1 DynamicText
38 \once \offset padding 1 DynamicLineSpanner
45 \once \offset positions #'(-1 . -1) Voice.Beam
47 % same effect as an offset of '(-2 . -2)
48 \once \offset positions #-2 Beam
50 \override Beam.breakable = ##t
51 c8-\offset positions #'((-1 . -3) (-3 . -1)) [ d e f
53 g8 f e d] c-\offset beam-thickness 0.48 [ d e f]
57 c4\startTextSpan d e f\stopTextSpan
58 \once \offset dash-fraction #'(0.1 0.3) TextSpanner
59 \once \offset staff-padding #'(1.0 2.0) TextSpanner
60 c4\startTextSpan d e f
66 % this duplicates the effect of the \shape command
67 \offset control-points #'(
68 ((0 . 0) (0 . 1) (0 . 2) (0 . 1))
69 ((1 . 0) (0 . 4) (0 . 4) (0 . 0))
71 c4-\offset line-thickness #'(0 10) ( d e f
76 %% ACCIDENTAL, STEM %%
77 % this illustrates use of \offset as a directed tweak
79 \offset AccidentalPlacement.right-padding 0.5
80 \offset Stem.thickness 4.0