lilypond-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Docs: Issue 4181: Expose \stemUp and \stemDown predefs less (issue 21487


From: tdanielsmusic
Subject: Docs: Issue 4181: Expose \stemUp and \stemDown predefs less (issue 214870044 by address@hidden)
Date: Fri, 06 Mar 2015 23:45:26 +0000

Reviewers: ,

Message:
This patch eliminates virtually all mention of the
\stemUp and \stemDown predefs from the LM.  Most of
the uses of these predefs in the NR are sensible, so
I have left untouched the ones in ancient, editorial,
percussion and staff.  Apart from the bald mention in
staff, these are all in rather esoteric sections and
probably quite well-hidden from new users.

Trevor


Description:
Docs: Issue 4181: Expose \stemUp and \stemDown predefs less

in LM Tweaking output
  - change some examples to use \slurUp etc rather than \stemUp
  - give an example showing the use of the direction indicators
  - replace mention of \stemUp in text with \tieUp, etc
  - correct a few typos

in NR Changing defaults
  - remove superfluous \stemUp

Please review this at https://codereview.appspot.com/214870044/

Affected files (+33, -32 lines):
  M Documentation/learning/tweaks.itely
  M Documentation/notation/changing-defaults.itely


Index: Documentation/learning/tweaks.itely
diff --git a/Documentation/learning/tweaks.itely b/Documentation/learning/tweaks.itely index b6429dcf43be6e9df930f9fc37478245bc2b92c8..de6554579bfccb7b02863927b15ab64d08edd267 100644
--- a/Documentation/learning/tweaks.itely
+++ b/Documentation/learning/tweaks.itely
@@ -331,12 +331,12 @@ The @code{\once} prefix may also be used in front of many
 predefined commands to limit their effect to one musical moment:

 @lilypond[quote,verbatim,relative=1]
-c4 d
-\once \stemDown
-e4 f |
-g4 a
+c4( d)
+\once \slurDashed
+e4( f) |
+g4( a)
 \once \hideNotes
-b c |
+b( c) |
 @end lilypond

 However, predefined commands of the form @address@hidden,
@@ -1869,30 +1869,30 @@ automatically when @code{direction} is set.
 @cindex center
 @cindex neutral

-The following example shows in bar 1 the default behavior of stems,
-with those on high notes pointing down and those on low notes pointing
-up, followed by four notes with all stems forced down, four notes with
-all stems forced up, and finally four notes reverted back to the
-default behavior.
+The following example shows the default positioning of slurs in the
+first bar, with slurs starting on high notes positioned above the notes
+and those starting on low notes positioned below, followed by a bar
+with both slurs forced down, a bar with both slurs forced up, and
+finally a bar with both slurs reverted back to the default behavior.

address@hidden Stem, example of overriding
address@hidden Slur, example of overriding
 @cindex direction property, example

address@hidden,fragment,ragged-right,verbatim,relative=2]
-a4 g c a |
-\override Stem.direction = #DOWN
-a4 g c a |
-\override Stem.direction = #UP
-a4 g c a |
-\revert Stem.direction
-a4 g c a |
address@hidden,verbatim,relative=2]
+a4( g) c( a) |
+\override Slur.direction = #DOWN
+a4( g) c( a) |
+\override Slur.direction = #UP
+a4( g) c( a) |
+\revert Slur.direction
+a4( g) c( a) |
 @end lilypond

-Here we use the constants @code{DOWN} and @code{UP}.
+Here we have used the constants @code{DOWN} and @code{UP}.
 These have the values @address@hidden and @code{+1} respectively, and
 these numerical values may be used instead.  The value @code{0}
 may also be used in some cases.  It is simply treated as meaning
address@hidden for stems, but for some objects it means @q{center}.
address@hidden for slurs, but for some objects it means @q{center}.
 There is a constant, @code{CENTER} which has the value @code{0}.

 However, these explicit overrides are not usually used, as there are
@@ -1943,12 +1943,20 @@ the commonest. The meaning of each is stated where it is not obvious.
 @end multitable

 The neutral/normal variants of these commands are implemented
-using @code{\revert} and may @strong{not} be
+using @code{\revert} and these may @strong{not} be
 preceded by @code{\once}.  If you wish to limit the
 effect of the other commands (which are implemented using
 @code{\override}) to a single timestep, you can precede them with
 @code{\once} like you would do with explicit overrides.

+Or, if just a single layout object needs to be forced up or down, the
+direction indicators, @code{^} or @code{_}, may be used:
+
address@hidden,verbatim,relative=2]
+a4( g) c( a) |
+a4^( g) c_( a) |
address@hidden lilypond
+
 @node Fingering
 @unnumberedsubsubsec Fingering

@@ -3155,8 +3163,7 @@ the left, and 1.8 staff space downwards:
 @cindex Fingering, example of overriding
 @cindex extra-offset property, example

address@hidden,fragment,relative=1,verbatim]
-\stemUp
address@hidden,relative=1,verbatim]
 f4-5
 \once \override Fingering.extra-offset = #'(-0.3 . -1.8)
 f4-5
@@ -4442,10 +4449,10 @@ Let's begin by looking at some files in @file{ly/}.
 Open @file{ly/property-init.ly} in a text editor.  The one
 you normally use for @code{.ly} files will be fine.  This file
 contains the definitions of all the standard LilyPond predefined
-commands, such as @code{\stemUp} and @code{\slurDotted}.  You will
+commands, such as @code{\tieUp} and @code{\slurDotted}.  You will
 see that these are nothing more than definitions of variables
 containing one or a group of @code{\override} commands.  For
-example, @code{/tieDotted} is defined to be:
+example, @code{\tieDotted} is defined to be:

 @example
 tieDotted = @{
Index: Documentation/notation/changing-defaults.itely
diff --git a/Documentation/notation/changing-defaults.itely b/Documentation/notation/changing-defaults.itely index f2f869bf6412929af4c3ceb60557ffd442ed03f3..4c2c8a0a78f3af658bed683f2f68bbc96809c346 100644
--- a/Documentation/notation/changing-defaults.itely
+++ b/Documentation/notation/changing-defaults.itely
@@ -1471,8 +1471,6 @@ below:

 @lilypond[quote,relative=2,verbatim]
 c-2
-\stemUp
-f
 @end lilypond

 If you visit the documentation on fingering instructions (in
@@ -1689,8 +1687,6 @@ Recall that we wanted to change the position of the @b{2} in

 @lilypond[quote,relative=2,verbatim]
 c-2
-\stemUp
-f
 @end lilypond

 Since the @b{2} is vertically positioned next to its note, we have to
@@ -1733,8 +1729,6 @@ i.e., before @code{c2}, yields the following result:
 @lilypond[quote,relative=2,verbatim]
 \once \override Voice.Fingering.padding = #3
 c-2
-\stemUp
-f
 @end lilypond







reply via email to

[Prev in Thread] Current Thread [Next in Thread]