]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/tick-bar-lines.ly
Make the length of beamlets configurable.
[lilypond.git] / input / lsr / tick-bar-lines.ly
1 %% Do not edit this file; it is auto-generated from LSR http://lsr.dsi.unimi.it
2 %% This file is in the public domain.
3 \version "2.11.64"
4
5 \header {
6   lsrtags = "staff-notation"
7
8   texidoc = "
9 'Tick' bar lines are often used in music where the bar line is used
10 only for coordination and is not meant to imply any rhythmic stress.
11
12 This snippet uses overrides for the @code{'bar-size} and
13 @code{'extra-offset} properties of @code{BarLine} to determine,
14 respectively, the tick size and its vertical placement.
15
16 "
17   doctitle = "Tick bar lines"
18 } % begin verbatim
19
20 {
21   % Use 'bar-size to control the height of the tick,
22   % and 'extra-offset to determine its position.
23   %
24   % With 'extra-offset set to zero, the tick will be
25   % centered around the middle line of the staff.
26   %
27   % Replace Staff.BarLine with Score.BarLine to
28   % apply the method to the whole score.
29   
30   \override Staff.BarLine #'bar-size = #1
31   \override Staff.BarLine #'extra-offset = #'(0 . 2)
32   
33   c'4 d' e' f'
34   g'4 f' e' d'
35   c'4 d' e' f'
36   g'4 f' e' d'
37   
38   % Revert the overrides to get back a normal
39   % bar line at the end.
40   
41   \revert Staff.BarLine #'bar-size
42   \revert Staff.BarLine #'extra-offset
43   \bar "|."
44 }