]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scripts/lilypond-book.py (do_file): fix latex output.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 9 Feb 2004 16:31:01 +0000 (16:31 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Mon, 9 Feb 2004 16:31:01 +0000 (16:31 +0000)
* scripts/lilypond-book.py (Lilypond_snippet.notice_include):
write .dep file.
(Lilypond_snippet.ly): add \renameinput.

ChangeLog
Documentation/topdocs/NEWS.texi
Documentation/user/refman.itely
Documentation/user/tutorial.itely
scripts/lilypond-book.py

index e65ae565956c75c02d61d6620d73c0130ae89e12..682f27ceb941b3ea1dd4d6364b376d51d3e424e8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-02-09  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * scripts/lilypond-book.py (do_file):  fix latex output.
+
+       * VERSION: release 2.1.20
+       
        * scm/part-combiner.scm (determine-split-list): robustness fix 
 
        * lily/paper-score.cc (process): move gc stat stuff to init.ly 
index 348a896a3b44f38132566ab8a4bb58c4deeff34b..f3ed17b79eb826fb148366dc9c7fedeca45294d3 100644 (file)
@@ -18,14 +18,20 @@ Version 2.1.13
 
 @itemize @bullet
 
-@item The lilypond-book script has been rewritten.  It now supports
+@item Melismata in lyrics are also properly handled  in the MIDI output.
+
+@item The lilypond-book script has been rewritten.
+It is shorter, cleaner and faster.  The special construct
+@code{mbinclude} has been removed, plain @code{@@include} or
+@code{\\input} can be used now.
+
+@ignore
+It now supports
 running convert-ly on the lilypond snippets like so:
 @example
     lilypond-book --filter='convert-ly --from=2.0.0' my-book.tely
 @end example
-It is also twice as short and thrice as fast.  The special construct
-@code{mbinclude} has been removed, plain @code{@@include} or
-@code{\\input} can be used now.
+@end ignore
 
 @item The @code{Lyrics} context has been removed. Lyrics should only
 be constructed in @code{LyricsVoice}.
@@ -40,8 +46,8 @@ are now constructed at @code{Voice} level.
 @end example
 
 @item Drum notation is now supported  as a regular feature:
-percussion may be entered in @code{\drums} mode, and printed in a
-@code{DrumStaff} context:
+percussion may be entered in @code{\drums} mode, and printed or
+performed in a @code{DrumStaff} context:
 
 @example
   \score @{
@@ -49,7 +55,6 @@ percussion may be entered in @code{\drums} mode, and printed in a
   @}
 @end example
 
-
 @item The automatic staff changer was internally rewritten. As a
 result, the syntax has been simplified as well:
 
index 5b5f4df1c58dcc4eff197580794c4a0482a9ab2a..bf0b9da75724d30ec15b13e08e9d93869961a376 100644 (file)
@@ -2771,15 +2771,12 @@ Internals: @internalsref{RhythmicStaff}.
 Examples: @inputfileref{input/regression,rhythmic-staff.ly}.
 
 
-@node Percussion staves
-@subsection Percussion staves
+@node Entering percussion
+@subsection Entering percussion
+
 @cindex percussion
 @cindex drums
 
-A percussion part for more than one instrument typically uses a
-multiline staff where each position in the staff refers to one piece
-of percussion.
-
 @syntax
 
 Percussion notes may be entered in @code{\drums} mode, which is
@@ -2790,6 +2787,24 @@ an abbreviated name, and both be used in input files:
  \drums { hihat4 hh4 }
 @end lilypond
 
+The complete list of drum names is in the init file
+@file{ly/drumpitch-init.ly}.
+@c TODO: properly document this.
+
+@seealso
+
+Internals: @internalsref{DrumNoteEvent}
+
+@node Percussion staves
+@subsection Percussion staves
+@cindex percussion
+@cindex drums
+
+A percussion part for more than one instrument typically uses a
+multiline staff where each position in the staff refers to one piece
+of percussion.
+
+
 To typeset the music, the notes must be interpreted in a
 @internalsref{DrumStaff} and @internalsref{DrumVoice} contexts:
 
index bd2cb300b17ff622e3da9e6ac88ef6fc10e627aa..4e099ea9a2102d0f5766d5eb4292a5e8fe6b79ff 100644 (file)
@@ -52,11 +52,13 @@ your first sheets of music.
 @menu
 * First steps::                 
 * Running LilyPond::            
-* More about pitches ::         
+* More about pitches::          
 * Octave entry::                
 * Combining music into compound expressions::  
 * Adding articulation marks to notes::  
 * Combining notes into chords::  
+* Basic rhythmical commands::   
+* Commenting input files::      
 * Printing lyrics::             
 * A lead sheet::                
 * Listening to output::         
@@ -964,13 +966,9 @@ r4 <c e g>8\>( <c e g> <c e g>  <c f a>8\!)
 
 
 
-@menu
-* Basic rhythmical commands::   
-* Commenting input files::      
-@end menu
 
 @node Basic rhythmical commands
-@subsection  Basic rhythmical commands
+@section  Basic rhythmical commands
 
 @cindex pickup
 @cindex anacruse
@@ -1024,7 +1022,7 @@ see @ref{Partial measures}.
 
 
 @node Commenting input files
-@subsection Commenting input files
+@section Commenting input files
 
 @cindex comments
 @cindex line comment
index 66db3075b6c3828fb5d4bb4d47551b28b22eea93..b4020ef1db400eea90ba6ed656848a1e4788914c 100644 (file)
@@ -548,8 +548,7 @@ snippet_type_to_class = {
        }
        
 
-def find_toplevel_snippets (infile, types):
-       s = infile.read ()
+def find_toplevel_snippets (s, types):
         res = {}
         for i in types:
                 res[i] = ly.re.compile (snippet_res[format][i])
@@ -714,9 +713,9 @@ def do_file (input_filename):
 
        ly.progress (_ ("Reading %s...") % input_filename)
        if not input_filename or input_filename == '-':
-               ih = sys.stdin
+               in_handle = sys.stdin
        else:
-               ih = open (input_filename)
+               in_handle = open (input_filename)
 
        ly.progress ('\n')
 
@@ -749,8 +748,9 @@ def do_file (input_filename):
                output_file = open (output_filename, 'w')
                os.chdir (output_name)
 
-               
-       chunks = find_toplevel_snippets (ih, snippet_types)
+
+       source = in_handle.read ()
+       chunks = find_toplevel_snippets (source, snippet_types)
        ly.progress ('\n')
 
        global default_ly_options