-{
- % Use 'bar-size to control the height of the tick,
- % and 'extra-offset to determine its position.
- %
- % With 'extra-offset set to zero, the tick will be
- % centered around the middle line of the staff.
- %
- % Replace Staff.BarLine with Score.BarLine to
- % apply the method to the whole score.
-
- \override Staff.BarLine #'bar-size = #1
- \override Staff.BarLine #'extra-offset = #'(0 . 2)
-
- c'4 d' e' f'
- g'4 f' e' d'
- c'4 d' e' f'
- g'4 f' e' d'
-
- % Revert the overrides to get back a normal
- % bar line at the end.
-
- \revert Staff.BarLine #'bar-size
- \revert Staff.BarLine #'extra-offset