X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fnew%2Fchanging-the-ambitus-gap.ly;fp=Documentation%2Fsnippets%2Fnew%2Fchanging-the-ambitus-gap.ly;h=982a447aa080369d126b6730bbe43ec22f8168c9;hb=e90f0536f9be39ada0bef0aeb0d275dec3b2fb5b;hp=0000000000000000000000000000000000000000;hpb=a8c9e8a7ca320ab0df5fd32e717fd62cd7635ce6;p=lilypond.git diff --git a/Documentation/snippets/new/changing-the-ambitus-gap.ly b/Documentation/snippets/new/changing-the-ambitus-gap.ly new file mode 100644 index 0000000000..982a447aa0 --- /dev/null +++ b/Documentation/snippets/new/changing-the-ambitus-gap.ly @@ -0,0 +1,40 @@ +\version "2.14.0" +\header { + lsrtags = "pitches" + texidoc = "It is possible to change the default gap setting for +ambitus." + + doctitle = "Changing the ambitus gap" +} + + +\layout { + \context { + \Voice + \consists "Ambitus_engraver" + } +} + +\new Staff { + \time 2/4 + % Default setting + c'4 g'' +} + +\new Staff { + \time 2/4 + \override AmbitusLine #'gap = #0 + c'4 g'' +} + +\new Staff { + \time 2/4 + \override AmbitusLine #'gap = #1 + c'4 g'' +} + +\new Staff { + \time 2/4 + \override AmbitusLine #'gap = #1.5 + c'4 g'' +}