]> git.donarmstrong.com Git - lilypond.git/commitdiff
Doc: Add @funindex for \newSpacingSection (3185)
authorTrevor Daniels <t.daniels@treda.co.uk>
Mon, 15 Apr 2013 08:56:08 +0000 (09:56 +0100)
committerTrevor Daniels <t.daniels@treda.co.uk>
Sat, 20 Apr 2013 19:57:04 +0000 (20:57 +0100)
  also expand the cryptic comment which says how overrides to
  SpacingSpanner should be made, and add an example

Documentation/notation/spacing.itely

index ad892f96ebf42648c7b292ed31d58e99c032949f..3f427ddbad0160e0bc408a6552b4bea4975de003 100644 (file)
@@ -2840,12 +2840,18 @@ No work-around exists for decreasing the amount of space.
 @node New spacing area
 @subsection New spacing area
 
+@funindex \newSpacingSection
+@cindex new spacing area
+@cindex spacing area, new
+@cindex notes, spacing horizontally
+
 New sections with different spacing parameters can be started with
 @code{newSpacingSection}.  This is useful when there are
 sections with a different notions of long and short notes.
 
 In the following example, the time signature change introduces a new
-section, and hence the 16ths notes are spaced wider.
+section, and hence the 16ths notes are automatically spaced slightly
+wider.
 
 @lilypond[relative=1,verbatim,quote]
 \time 2/4
@@ -2857,8 +2863,25 @@ c16[ c c8]
 @end lilypond
 
 The @code{\newSpacingSection} command creates a new
-@code{SpacingSpanner} object, and hence new @code{\override}s
-may be used in that location.
+@code{SpacingSpanner} object at that musical moment.
+If the automatic spacing adjustments do not give the required spacing,
+manual @code{\override}s may be applied to its properties.  These must
+be applied at the same musical moment as the @code{\newSpacingSection}
+command itself.  They will then affect the spacing of all the following
+music until the properties are changed in a new spacing section, for
+example,
+
+@lilypond[relative=1,verbatim,quote]
+\time 4/16
+c16[ c c8]
+\newSpacingSection
+\override Score.SpacingSpanner.spacing-increment = #2
+c16[ c c8]
+\newSpacingSection
+\revert Score.SpacingSpanner.spacing-increment
+c16[ c c8]
+@end lilypond
+
 
 @seealso
 Snippets: