]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/changing-the-default-bar-lines.ly
Issue 5167/6: Changes: show \markup xxx = ... \etc assignments
[lilypond.git] / Documentation / snippets / changing-the-default-bar-lines.ly
1 %% DO NOT EDIT this file manually; it is automatically
2 %% generated from LSR http://lsr.di.unimi.it
3 %% Make any changes in LSR itself, or in Documentation/snippets/new/ ,
4 %% and then run scripts/auxiliar/makelsr.py
5 %%
6 %% This file is in the public domain.
7 \version "2.18.0"
8
9 \header {
10   lsrtags = "repeats, staff-notation"
11
12   texidoc = "
13 Default bar lines can be changed when re-defined in a score context.
14
15 "
16   doctitle = "Changing the default bar lines"
17 } % begin verbatim
18
19 % http://lsr.di.unimi.it/LSR/Item?id=964
20 %%=> http://lists.gnu.org/archive/html/lilypond-user/2014-03/msg00126.html
21 %%=> http://lilypond.1069038.n5.nabble.com/Changing-the-default-end-repeat-bracket-tc169357.html
22
23 \layout {
24   \context {
25     \Score
26     %% Changing the defaults from engraver-init.ly
27     defaultBarType = #"!"
28     startRepeatType = #"[|:"
29     endRepeatType = #":|]"
30     doubleRepeatType = #":|][|:"
31   }
32 }
33
34 %% example:
35 {
36   c'1
37   \repeat volta 2 { \repeat unfold 2 c' }
38   \repeat volta 2 { \repeat unfold 2 c' }
39   \alternative {
40     { c' }
41     {
42       %% v2.18 workaround
43       \once\override Score.VoltaBracket.shorten-pair = #'(1 . -1)
44       c'
45     }
46   }
47   \bar "|."
48 }