X-Git-Url: https://git.donarmstrong.com/?a=blobdiff_plain;f=Documentation%2Fsnippets%2Fchanging-the-number-of-lines-in-a-staff.ly;fp=Documentation%2Fsnippets%2Fchanging-the-number-of-lines-in-a-staff.ly;h=ce4d1cec6289c17054592e0f3090b7b1072386ab;hb=941dff9d2a67080e0dd8474f1e70f0c72ace6424;hp=0000000000000000000000000000000000000000;hpb=5a22d6233a39d3164e1ca043244794c268be4ad0;p=lilypond.git diff --git a/Documentation/snippets/changing-the-number-of-lines-in-a-staff.ly b/Documentation/snippets/changing-the-number-of-lines-in-a-staff.ly new file mode 100644 index 0000000000..ce4d1cec62 --- /dev/null +++ b/Documentation/snippets/changing-the-number-of-lines-in-a-staff.ly @@ -0,0 +1,43 @@ +%% DO NOT EDIT this file manually; it is automatically +%% generated from LSR http://lsr.dsi.unimi.it +%% Make any changes in LSR itself, or in Documentation/snippets/new/ , +%% and then run scripts/auxiliar/makelsr.py +%% +%% This file is in the public domain. +\version "2.14.0" + +\header { + lsrtags = "staff-notation" + + texidoc = " +The number of lines in a staff may changed by overriding the +@code{StaffSymbol} property @code{line-count}. + + + + +" + doctitle = "Changing the number of lines in a staff" +} % begin verbatim + +upper = \relative c'' { + c4 d e f +} + +lower = \relative c { + \clef bass + c4 b a g +} + +\score { + \context PianoStaff << + \new Staff { + \upper + } + \new Staff { + \override Staff.StaffSymbol #'line-count = #4 + \lower + } + >> +} +