]> git.donarmstrong.com Git - lilypond.git/blob - Documentation/snippets/removing-brace-on-first-line-of-piano-score.ly
Doc-es: various updates.
[lilypond.git] / Documentation / snippets / removing-brace-on-first-line-of-piano-score.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 = "keyboards, staff-notation, tweaks-and-overrides"
11
12   texidoc = "
13 This snippet removes the first brace from a @code{PianoStaff} or a
14 @code{GrandStaff}. It may be useful when cutting and pasting the
15 engraved image into existing music.
16
17 It uses @code{\\alterBroken}.
18
19 "
20   doctitle = "Removing brace on first line of piano score"
21 } % begin verbatim
22
23 someMusic =  {
24   \once \override Staff.Clef.stencil = ##f
25   \once \override Staff.TimeSignature.stencil = ##f
26   \repeat unfold 3 c1 \break
27   \repeat unfold 5 c1 \break
28   \repeat unfold 5 c1
29 }
30
31 \score {
32   \new PianoStaff
33   <<
34     \new Staff = "right" \relative c'' \someMusic
35     \new Staff = "left" \relative c' { \clef F \someMusic }
36   >>
37   \layout {
38     indent=75
39     \context {
40       \PianoStaff
41       \alterBroken transparent #'(#t) SystemStartBrace
42     }
43   }
44 }