[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Doc: NR improve example of \accepts (issue 44420043)
From: |
pkx166h |
Subject: |
Re: Doc: NR improve example of \accepts (issue 44420043) |
Date: |
Sun, 22 Dec 2013 08:02:47 +0000 |
Reviewers: Keith,
Message:
Keith's additions. Thank you.
https://codereview.appspot.com/44420043/diff/1/Documentation/notation/changing-defaults.itely
File Documentation/notation/changing-defaults.itely (right):
https://codereview.appspot.com/44420043/diff/1/Documentation/notation/changing-defaults.itely#newcode1347
Documentation/notation/changing-defaults.itely:1347: from the list. For
example, it would not normally be desirable for
On 2013/12/21 04:50:56, Keith wrote:
For example, a square-braced staff group is not usually found within a
curved-braced staff with connecting staff bars, and a
@code{GrandStaff} does not
accept a @code{StaffGroup} inside it by default. If this were
required it can
be done:
\new GrandStaff \with {\accepts StaffGroup } <<
\new Staff { c''1 }
\new StaffGroup <<
\new Staff { g'1 }
\new Staff { e'1 } >>
\new Staff {c'1 } >>
Thank you. Done.
Description:
Doc: NR improve example of \accepts
Issue 3641
Improve example given in NR 5.1.7
Please review this at https://codereview.appspot.com/44420043/
Affected files (+11, -4 lines):
M Documentation/notation/changing-defaults.itely
Index: Documentation/notation/changing-defaults.itely
diff --git a/Documentation/notation/changing-defaults.itely
b/Documentation/notation/changing-defaults.itely
index
cb8edf2c033a272ccf7aff8124f6a4080e76e343..ce2780275842377784076ea50112e56648cff4bf
100644
--- a/Documentation/notation/changing-defaults.itely
+++ b/Documentation/notation/changing-defaults.itely
@@ -1361,15 +1361,22 @@ be done:
@lilypond[verbatim,quote]
\score {
- \new Staff {
- c' d' e' f'
- \chords { d1:m7 b1:min7.5- }
- }
+ \new GrandStaff <<
+ \new StaffGroup <<
+ \new Staff { c'1 }
+ \new Staff { d'1 }
+ >>
+ \new Staff { \set Staff.instrumentName = last f'1 }
+ >>
\layout {
\context {
\Staff
\accepts "ChordNames"
}
+ \context {
+ \GrandStaff
+ \accepts "StaffGroup"
+ }
}
}
@end lilypond