]> git.donarmstrong.com Git - lilypond.git/blob - input/lsr/tick-bar-lines.ly
Merge master into nested-bookparts
[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.62"
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   % Use 'bar-size to control the height of the tick,
21   % and 'extra-offset to determine its position.
22   %
23   % With 'extra-offset set to zero, the tick will be
24   % centered around the middle line of the staff.
25   %
26   % Replace Staff.BarLine with Score.BarLine to
27   % apply the method to the whole score.
28   
29   \override Staff.BarLine #'bar-size = #1
30   \override Staff.BarLine #'extra-offset = #'(0 . 2)
31   
32   c'4 d' e' f'
33   g'4 f' e' d'
34   c'4 d' e' f'
35   g'4 f' e' d'
36   
37   % Revert the overrides to get back a normal
38   % bar line at the end.
39   
40   \revert Staff.BarLine #'bar-size
41   \revert Staff.BarLine #'extra-offset
42   \bar "|."
43 }