]> git.donarmstrong.com Git - lilypond.git/commitdiff
* scripts/convert-ly.py (conv): remove \lyrics from \lyricsto.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 30 Jul 2004 11:59:13 +0000 (11:59 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 30 Jul 2004 11:59:13 +0000 (11:59 +0000)
* ly/gregorian-init.ly (neumeDemoPaper): remove duplication from
manual.

* Documentation/user/tutorial.itely (Integrating text and music):
remove \score and \notes from manual.

30 files changed:
Documentation/topdocs/INSTALL.texi
Documentation/user/converters.itely
Documentation/user/notation.itely
Documentation/user/tutorial.itely
input/regression/allfontstyle.lyinc
input/regression/lyric-combine-new.ly
input/regression/lyric-combine-polyphonic.ly
input/regression/lyric-extender-broken.ly
input/regression/lyric-extender.ly
input/regression/lyric-phrasing.ly
input/regression/lyrics-melisma-beam.ly
input/regression/stanza-number.ly
input/template/gregorian-transcription.ly
input/template/header.ly
input/template/jazz-combo.ly
input/template/melody-chords.ly
input/template/melody-lyrics-chords.ly
input/template/melody-lyrics.ly
input/template/melody.ly
input/template/piano-4-voices.ly
input/template/piano-dynamics.ly
input/template/piano-lyrics.ly
input/template/piano-melody-lyrics.ly
input/template/piano.ly
input/template/satb.ly
lily/ambitus.cc
lily/new-fingering-engraver.cc
lily/stem-engraver.cc
scm/define-grobs.scm
scripts/convert-ly.py

index 2191ac4fcae778906ead92ac499f126f56c64d73..c2e6351de4d62b1f8f9b721a64d86e1c165244f4 100644 (file)
@@ -114,8 +114,7 @@ newer).  EGCS and 2.x are known to cause crashes.
 @item @uref{http://www.gnu.org/software/bison/,Bison} (version 1.25 or
 newer, but not 1.50 or 1.75).
 
-@item gettext
-
+@item @uref{http://www.gnu.org/software/gettext/gettext.html,gettext}.
 @end itemize
 
 @subsection Running requirements
index 71383c36383b3a732d5b0773c1b5aab39eb64e08..62ae5cd3eda329512ecbf9957b95ebd8c539b665 100644 (file)
@@ -243,10 +243,10 @@ abc2ly ignores the ABC beaming.
 @cindex MuseData
 @cindex CCARH
 
-MuseData (see @uref{http://www.musedata.org/}) is an electronic
-library of classical music scores, comprising at the time of writing
-about 800 composition dating from 1700 to 1825.  The music is encoded
-in so-called MuseData format.  musedata2ly converts a set of MuseData
+@uref{http://www.musedata.org/,MuseData} is an electronic library of
+classical music scores, comprising at the time of writing about 800
+composition dating from 1700 to 1825.  The music is encoded in
+so-called MuseData format.  musedata2ly converts a set of MuseData
 files to one .ly file, and will include a @code{\header} field if a
 @file{.ref} file is supplied. It is invoked as follows:
 
index 40b7d1fe7eef755c6f6668f199b78137267f94c7..7758aaa490e836818b2a659fc2faab93e6e92f13 100644 (file)
@@ -3435,8 +3435,8 @@ This aligns the lyrics to the
 notes of the @internalsref{Voice} context called @var{name}, which has
 to exist. Therefore, normally the @code{Voice} is specified first, and
 then the lyrics are specified with @code{\lyricsto}. The command
-@code{\lyricsto} switches to @code{\lyrics} mode automatically, so
-@code{\lyrics} may be skipped.
+@code{\lyricsto} switches to @code{\lyrics} mode automatically, so the
+@code{\lyrics} keyword may be omitted.
 
 For different or more complex orderings, the best way is to setup the
 hierarchy of staves and lyrics first, e.g.
@@ -6704,7 +6704,7 @@ settings.  Hence, the MIDI file should not have more than 15 staves
 
 Not all MIDI players correctly handle tempo change in the MIDI
 output. Players that are known to work include
-@uref{timidity,http://timidity.sourceforge.net/}
+@uref{http://timidity.sourceforge.net/,timidity}
 
 
 @menu
index 1a93fe25526a3f5c6f6b00bc92cdb3a8ddd7daff..486ad980a8bad92e14e858266643654f1efdc892 100644 (file)
@@ -278,8 +278,7 @@ printing.
 @cindex DVI driver
 } which you can print or with the standard facilities of your
 operating system.@footnote{If your system does not have any tools
-installed, you can try @uref{Ghostscript,
-http://www.cs.wisc.edu/~ghost/}, a freely available package for
+installed, you can try @uref{http://www.cs.wisc.edu/~ghost/,Ghostscript}, a freely available package for
 viewing and printing PDF and PostScript files.}
 
 On Windows, start up a text-editor@footnote{Any simple or
index 39e84e1ee1074421f76ae046f2723ebb0606f6a5..97520e92360b75ce273b4487ec3756f9a523b555 100644 (file)
@@ -1,23 +1,22 @@
-\version "2.2.0"
+\version "2.3.8"
 
 \header{
-texidoc="
+    texidoc="
 Different text styles are used for various purposes.
 "
 }
 
-\score {  \notes
-       \relative c'' \context Staff {
-               \emptyText
-               \repeat volta 2 { \time 4/4 c4^"cuivr\\'e"_\fermata }
-                \alternative {
-                       {
-                           d-4_\markup { \italic "cantabile"  } }
-                       {  e }  } \acciaccatura { c16 }
-                         
-                        f4\ff^""^\markup  { \large "Largo" } \mark "B" g 
-       }
-       \paper { raggedright = ##t
-       % \context {\BarNumberingStaffContext} }
-       }
+\paper {
+    raggedright = ##t
+}
+
+\relative c'' \context Staff {
+    \emptyText
+    \repeat volta 2 { \time 4/4 c4^"cuivr\\'e"_\fermata }
+    \alternative {
+       {
+           d-4_\markup { \italic "cantabile"  } }
+       {  e }  } \acciaccatura { c16 }
+
+    f4\ff^""^\markup  { \large "Largo" } \mark "B" g 
 }
index 069a8d07fc263eefabc882eaf045886c7aec63cb..e13a9baf537a66f6f7edb101da63898b7218ca8c 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 \header {
 
     texidoc = "With the @code{\\lyricsto} mechanism, individual lyric
@@ -13,8 +13,8 @@
        \autoBeamOff
        c2( d4) e8[ c b c] f4
     }
-    \lyricsto "bla" \new Lyrics \lyrics { bla ab blob blob }
-    \lyricsto "bla" \new Lyrics \lyrics {
+    \lyricsto "bla"  \new Lyrics  { bla ab blob blob }
+    \lyricsto "bla"  \new Lyrics  {
        bla 
 
        \set ignoreMelismata = ##t
@@ -28,7 +28,7 @@
        blob
     }
     
-    \lyricsto "bla" \new Lyrics \lyrics {
+    \lyricsto "bla"  \new Lyrics  {
        nes ted lyrics voice with more words than no tes
     }
     >>
index 0c2a3ae6c8b89aef6585397e6c2f9d5e3c212270..eefa0a6b3cedf6796836eb9a4929f9311e5d4f70 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 \header {
 
 texidoc ="Polyphonic rhythms and rests do not disturb
@@ -12,7 +12,7 @@ texidoc ="Polyphonic rhythms and rests do not disturb
        \time 8/8
        \key des \major
        <<
-        \lyricsto "one" \new Lyrics \lyrics {
+        \lyricsto "one"  \new Lyrics  {
             Do mi nus ex
         }
           \context Voice = one {
@@ -24,7 +24,7 @@ texidoc ="Polyphonic rhythms and rests do not disturb
              \voiceTwo
              ees'8 r8 r8 r8 ees' r8 r8 r8 
           }
-          \lyricsto "two" \new Lyrics \lyrics {
+          \lyricsto "two"  \new Lyrics  {
              Do na
          }
        >>
index 6cf8dc12c171ff06c6de40de8c7997f419c18544..f04c106e46713368b4c7878f9f067618f2dd7202 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 \header
 {
 
index a4fd43c7a80c2ca545becc0a3df4d8fb4f6e18be..42806506bdbf7f295504c3ecb09137c64857430b 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 
 \header { texidoc= "In lyric extenders, a syllable may be extended over several notes. "}
 
index a6cc56ed3886dab23cf46713b87c37bf0e92df42..6640f244762762042ba9823e50428b80832c3050 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 \header {
 
 texidoc = "
index 74a6b33393f2edffccc96dd2251c937b0da87c3d..62653c2151190408e3c96d098b3f432cc293519f 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 \header
 {
     texidoc = "Melismata are triggered by manual beams." 
index 8176c7c4e15256aa19f080c2251a790c7da1743b..30c99200c938b25180a8178919d7615f707b76e8 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 
 \header {
 texidoc = "Stanza numbers are put left of their lyric. They are aligned in a column."
@@ -7,12 +7,12 @@ texidoc = "Stanza numbers are put left of their lyric. They are aligned in a col
 \score {
 <<
     \context Voice = "A"  \relative c'' { r4 r4 c4  c4 }
-    \lyricsto A \new Lyrics \lyrics  {
+    \lyricsto A  \new Lyrics   {
        \skip 2
        \set stanza = "1."
        Foo8 
     }
-    \lyricsto A \new Lyrics \lyrics {
+    \lyricsto A  \new Lyrics  {
        \skip 2
        \set stanza = "2."
        FFFooooo8
index 9946bd9c7b8344f94a7b3dc6c3c7c85c3f3a184b..8cbe53ba7272bf35c3df09f6f2cee783e43484ac 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 
 
 \header {
index 39da5fa25a1d965c9c80d3c64d31037da5d26cbd..5910072e3a2e8b0430600c98c239fe58060f45f1 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 \header {
   dedication = "dedication"
   title = "Title"
index 6cded29a394149a56c59b4427276a627f11b203e..efb098def10001498e101aa772840a976b164631 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 \header {
         title = "Song"
         subtitle = "(tune)"
index 040588fe5fbee2f8b88f14b03a8857f9607fc812..00736ebe581d8a3ba79b4463841ba7489ad8ce29 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 
 \header {
   texidoc = "Lead sheet format: chords with melody."
index 0f723e27b36b64f96b6d22d3a3df58b2f92bd2f1..2fdb82090826d0ec4f69a1e997fc4ee5364ec9d3 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 \header
 {
     texidoc = "Popsong format: chords, melody and lyrics."
index 4691f1d1af78cd5038478d36158b32692effcab5..9b58697addf63963a0f1fc9ccbc4205ed7f2a264 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 
 \header {
   texidoc = "Melody and lyrics."
index bbda02ab12b21499f113cc0d3959ccbdca01f943..8c9bc5b942eb611d76c7710082b553cd2a217c32 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 
 \header {
   texidoc = "Only a melody."
index 42f778655fd728fcfc76a8697260f59bb3ff3d22..54597d8488f6bff990f1cfa9734d49368e681294 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 
 \header {
   texidoc ="Polyphonic piano music."
index 7ae094ce57b55700734fb9c68d0176fe643adf16..a01fbc01b68cc2ca77311f6071a051ff3205320f 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 \header {
 texidoc ="
   Dynamics on a separate line, neatly centered between staffs.
@@ -55,7 +55,7 @@ pedal =  {
 
       \consists "Skip_event_swallow_translator"
 
-      \consistsend "Axis_group_engraver"
+      \consists "Axis_group_engraver"
     }
     \context {
       \PianoStaff
index 61714faf67851bf614c6b26e73591237f1a1fd54..2e85dd09ef304c7369edadf85237f827d1b45f40 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 
 \header {
   texidoc ="Lyrics between two staffs."
index 3f2fa70b581fc09e6fd772d5838fccf173453af3..aecc82398e907924c6af9ddef11ed2a1abe165f9 100644 (file)
@@ -1,5 +1,5 @@
 
-\version "2.3.4"
+\version "2.3.8"
 \header {
   texidoc ="Classical song format: one staff with melody and lyrics,
 and piano accompaniment."
index 54ccffa848f62e2fa120978cb7a7f12fef815aff..5b530d52606eaf7b5799d1f7b42623da12c1aa64 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 
 \header {
   texidoc = "Simple piano music." 
index 468c045af82d0487e388f85cecd020be4bc8e0ae..2f7fc19bcd428ab707c0ab4efaee941714b7d4db 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.3.4"
+\version "2.3.8"
 \header {
 
     texidoc = "
index 739b68b09ce2ea8908fcc5fdf3763633e998f5c5..e8124d145f929b23874686f092b6efba8ec49d59 100644 (file)
@@ -68,4 +68,4 @@ Ambitus::print (SCM smob)
 
 ADD_INTERFACE (Ambitus, "ambitus-interface",
   "The line between note heads for a pitch range.",
-  "note-heads join-heads");
+  "thickness note-heads join-heads");
index 2f7800d8c9a190591b8f2394680e8c198266879c..3dbb171395178ddc75d91674afcde5fc07f092be 100644 (file)
@@ -64,7 +64,9 @@ New_fingering_engraver::acknowledge_grob (Grob_info inf)
   if (Rhythmic_head::has_interface (inf.grob_))
     {
       Music * note_ev =inf.music_cause ();
-
+      if (!note_ev)
+       return;
+      
       SCM arts = note_ev->get_property ("articulations");
 
       for (SCM s = arts; ly_c_pair_p (s); s = ly_cdr  (s))
index 3483bab450b3bacfbeb3c6e02f6e313b0149c4f3..bfc7f1fbe64e1a7e5a7d704c5feb500f0a9fd46d 100644 (file)
@@ -106,11 +106,15 @@ Stem_engraver::acknowledge_grob (Grob_info gi)
     {
       if (Rhythmic_head::get_stem (gi.grob_))
        return;
+
+      Music * cause = gi.music_cause ();
+      if (!cause)
+       return ;
       
       if (!stem_)
        make_stem (gi);
       
-      int duration_log = gi.music_cause ()->duration_log ();
+      int duration_log = cause->duration_log ();
       if (Stem::duration_log (stem_) != duration_log)
        {
          // FIXME: 
index 26590d342281a03a7175d320f773cb4ccb4d9ef6..1c028c320c94c13a137fad0b566147f3f8e3769f 100644 (file)
@@ -78,7 +78,7 @@
        (X-extent-callback . ,Note_head::extent)
        (Y-extent-callback . ,Note_head::extent)
        (Y-offset-callbacks  . (,Staff_symbol_referencer::callback))
-       (meta . ((interfaces . (font-interface note-head-interface ambitus-interface staff-symbol-referencer-interface item-interface ))))
+       (meta . ((interfaces . (font-interface note-head-interface ambitus-interface staff-symbol-referencer-interface rhythmic-head-interface item-interface ))))
        ))
     
     (Arpeggio
index 9ea4fcd27ed329c21be2dc0a9dc4ddabbd8f73c6..2921d5b574e99868108a95b07be6b904519f6b46 100644 (file)
@@ -2119,12 +2119,31 @@ conversions.append (((2, 3, 4), conv,
 
 def conv (str):
        str = re.sub (r'\\consistsend', '\\consists', str)
+       str = re.sub (r'\\lyricsto\s+("?[a-zA-Z]+"?)(\s*\\new Lyrics\s*)?\\lyrics',
+                     r'\\lyricsto \1 \2', str)
        return str
 
 conversions.append (((2, 3, 8), conv,
-                    '''remove \\consistsend'''))
+                    '''remove \\consistsend, strip \\lyrics from \\lyricsto.'''))
 
 
+def conv_mode_experiment (str):
+       str = re.sub (r'\\chords\b', r'\\chordmode', str)
+       str = re.sub (r'\\lyrics\b', r'\\lyricmode', str)
+       str = re.sub (r'\\figures\b', r'\\figuremode', str)
+       str = re.sub (r'\\drums\b', r'\\drummode', str)
+       str = re.sub (r'\\chordmode\s*\\new ChordNames', r'\\chords', str)
+       str = re.sub (r'\\new ChordNames\s*\\chordmode', r'\\chords', str)
+       str = re.sub (r'\\new FiguredBass\s*\\figuremode', r'\\figures', str)
+       str = re.sub (r'\\figuremode\s*\new FiguredBass', r'\\figures', str)
+       str = re.sub (r'\\new DrumStaff\s*\\drummode', r'\\drums', str)
+       str = re.sub (r'\\drummode\s*\\new DrumStaff', r'\\drums', str)
+
+       return str
+
+#conversions.append (((2, 3, 9), conv,
+#                   '''fold \new FooContext \foomode into \foo.'''))
+
 ################################
 #      END OF CONVERSIONS      
 ################################