]> git.donarmstrong.com Git - lilypond.git/commitdiff
Small fixes.
authorGraham Percival <graham@percival-music.ca>
Sun, 14 May 2006 01:53:54 +0000 (01:53 +0000)
committerGraham Percival <graham@percival-music.ca>
Sun, 14 May 2006 01:53:54 +0000 (01:53 +0000)
ChangeLog
Documentation/user/advanced-notation.itely
Documentation/user/global.itely
Documentation/user/tweaks.itely
Documentation/user/working.itely

index 2448e18e93dba0b66ce5e1d6b7265cd500bb1e77..4995fda109c4a62bc99e0ac5e4e2f52e62c3b822 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -5,6 +5,8 @@
        * Documentation/user/programming-interface.itely: major
        new docs, some reorg, some info from Nicolas.
 
+       * Documentation/user/ various: small fixes.
+
 2006-05-12  Mats Bengtsson  <mabe@drongo.s3.kth.se>
 
        * Documentation/user/programming-interface.itely (Markup
index b4335de9a011f2267579729691f3add36741afe5..bfadf74aa22b63eb107a9c49257583fbba5156a1 100644 (file)
@@ -862,6 +862,12 @@ Bar numbers are printed by default at the start of the line.  The
 number itself is stored in the @code{currentBarNumber} property, which
 is normally updated automatically for every measure.
 
+To manually set a bar number, use
+
+@example
+\set Score.currentBarNumber = #57
+@end example
+
 Bar numbers can be typeset at regular intervals instead of at the
 beginning of each line.  This is illustrated in the following example,
 whose source is available as
index f98e7c928af049381a6aaf3cc91bb28548a8c389..e56de1e6fa3498ec302ac3ab7cdf2568481b3d25 100644 (file)
@@ -19,6 +19,7 @@ specific notation.
 * Music layout::                
 * Multiple movements::          
 * MIDI output::                 
+* Displaying LilyPond notation::  
 @end menu
 
 
@@ -1823,3 +1824,38 @@ If the selected instrument does not exactly match an instrument from
 the list of MIDI instruments, the Grand Piano (@code{"acoustic grand"})
 instrument is used.
 
+
+@c  Yes, this is a cop-out; this info doesn't belong in the Scheme
+@c  chapter, but I'm not certain where to stick it.
+@c  I think I'll eventually split this chapter into a "paper/layout"
+@c  chapter and a "misc issues" chapter.  -gp
+@node Displaying LilyPond notation
+@section Displaying LilyPond notation
+
+@cindex @code{\displayLilyMusc}
+Displaying a music expression in LilyPond notation can be
+done using the music function @code{\displayLilyMusic}.  For example,
+
+@example
+@{
+  \displayLilyMusic \transpose c a, @{ c e g a bes @}
+@}
+@end example
+
+will display
+
+@example
+@{ a, cis e fis g @}
+@end example
+
+By default, LilyPond will print these messages to the console along
+with all the other messages.  To split up these messages and save
+the results of @code{\display@{STUFF@}}, redirect the output to
+a file.
+
+@example
+lilypond file.ly >display.txt
+@end example
+
+
+
index ae88bcb44a0fa421d0d5b29e2396653a6c5a64c5..11835602ffcf07336e44bc2c15e3842fd68711cb 100644 (file)
@@ -7,6 +7,7 @@ configurable; virtually every fragment of output may be changed.
 
 
 @menu
+* Moving objects::              
 * Fixing overlapping notation::  
 * Common tweaks::               
 * Default files::               
@@ -14,8 +15,8 @@ configurable; virtually every fragment of output may be changed.
 @end menu
 
 
-@node Fixing overlapping notation
-@section Fixing overlapping notation
+@node Moving objects
+@section Moving objects
 
 This may come as a surprise, but LilyPond is not perfect.  Some notation
 elements can overlap.  This is unfortunate, but (in most cases) is easily
@@ -131,6 +132,48 @@ c4^"piu mosso" d e f
 This manual: @ref{The \override command}, @ref{Common tweaks}.
 
 
+@node Fixing overlapping notation
+@section Fixing overlapping notation
+
+In @ref{Moving objects}, we saw how to move a @code{TextScript}
+object.  The same mechanism can be used to move other types of
+objects; simply replace @code{TextScript} with the name of
+another object.
+
+To find the object name, look at the ``@strong{see also}'' at
+bottom of the relevant documentation page.  For example, at
+the bottom of @ref{Dynamics}, we see
+
+@quotation
+@seealso
+
+Program reference: @internalsref{DynamicText}, @internalsref{Hairpin}.
+Vertical positioning of these symbols is handled by
+@internalsref{DynamicLineSpanner}.
+@end quotation
+
+@noindent
+So to move dynamics around, we use
+
+@example
+\override DynamicLineSpanner #'padding = #2.0
+@end example
+
+We cannot list every object, but here is a list of the most
+common objects.
+
+@multitable @columnfractions .33 .66
+@headitem Object type  @tab Object name
+@item Text             @tab @code{TextScript}
+@item Dynamics         @tab @code{DynamicLineSpanner}
+@item Ties             @tab @code{Tie}
+@item Slurs            @tab @code{Slur}
+@item Articulation     @tab @code{Script}
+@item Fingering        @tab @code{Fingering}
+@item Rehearsal marks  @tab @code{RehearsalMark}
+@end multitable
+
+
 @node Common tweaks
 @section Common tweaks
 
index c3d6950a8633615b68035266415286612cb5f12c..57d081df6f53e773efcdffda57a29e1d2488dd14 100644 (file)
@@ -312,7 +312,7 @@ tempoMark = #(define-music-function (parser location markp) (string?)
 @end lilypond
 
 There are some problems with overlapping output; we'll fix those using
-the techniques in @ref{Fixing overlapping notation}.  But let's also
+the techniques in @ref{Moving objects}.  But let's also
 do something about the @code{mpdolce} and @code{tempoMark}
 definitions.  They produce the output we desire, but we might want
 to use them in another piece.  We could simply copy-and-paste them