]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/new-lyric-combine-music-iterator.cc (find_voice): make sure
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 5 Feb 2004 12:07:35 +0000 (12:07 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Thu, 5 Feb 2004 12:07:35 +0000 (12:07 +0000)
that associatedVoiceContext is always assigned when music & lyrics
are found.

* ly/engraver-init.ly: remove Lyrics context.
(TabVoice): add noteheads engraver

* ly/engraver-init.ly: remove Thread

* scripts/convert-ly.py (conv): \harmonic rule

* ly/engraver-init.ly: add DrumStaff and DrumVoice contexts

33 files changed:
ChangeLog
input/ascii-art/r-as.ly
input/ascii-art/twinkle-as5.ly
input/mutopia/F.Schubert/morgenlied.ly
input/mutopia/F.Schubert/standchen.ly
input/no-notation/denneboom.ly
input/puer-fragment.ly
input/regression/+.ly
input/regression/lyric-combine-new.ly
input/regression/lyric-combine.ly
input/regression/lyric-extender.ly
input/regression/lyric-hyphen.ly
input/regression/lyric-phrasing.ly
input/regression/lyrics-bar.ly
input/regression/span-bar.ly
input/template/melody-lyrics.ly
input/template/piano-lyrics.ly
input/test/+.ly
input/test/bar-lines-lyric-only.ly
input/test/caps.ly
input/test/preset-extent.ly
input/test/repeat-shorter-bracket.ly
input/test/repeat.ly
input/test/script-chart.ly
input/test/trills.ly
input/test/vaticana.ly
input/test/version-output.ly
input/twinkle-pop.ly
lily/new-lyric-combine-music-iterator.cc
lily/new-part-combine-iterator.cc
ly/engraver-init.ly
ly/performer-init.ly
scripts/convert-ly.py

index b54a708a34ba3135308bb62077a0f17f4cec28a8..9320bdcd618912b1c142c25769bfb42595ad89a8 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-02-05  Han-Wen Nienhuys   <hanwen@xs4all.nl>
 
+       * lily/new-lyric-combine-music-iterator.cc (find_voice): make sure
+       that associatedVoiceContext is always assigned when music & lyrics
+       are found. 
+
        * ly/engraver-init.ly: remove Lyrics context.
        (TabVoice): add noteheads engraver
 
index d5ac0c9ad158280aab9a0bde5ccdb9a4add5318d..9d6a122ec0cfa8185b242934a425f4af31b407ee 100644 (file)
@@ -1,5 +1,5 @@
 #(ly:set-option 'old-relative)
-\version "2.1.11"
+\version "2.1.19"
 % ASCII Art output
 %
 % Process as:
@@ -16,7 +16,7 @@
         \repeat "volta" 2 { g a b c }
         \alternative { { c b a g } { f e d c } }
       }
-      \context Lyrics \lyrics {
+      \context LyricsVoice \lyrics {
         De eer- ste << { maat } { moet } >>
         \repeat fold 2 { }
         \alternative {
index 75e962f04bec11de722cdc6d446650c51da1de5a..346796b403a8994275234428947bc520514176e6 100644 (file)
@@ -1,5 +1,5 @@
 #(ly:set-option 'old-relative)
-\version "2.1.11"
+\version "2.1.19"
 % ASCII Art output
 %
 % Process as:
@@ -65,11 +65,11 @@ text =  \lyrics{
        \context GrandStaff <<
                \addlyrics
                        \context Staff=upper \melody
-               \context Lyrics=between \text
+               \context LyricsVoice=between \text
                \context Staff=lower \accompany 
        >>
        \paper{
-               \translator { \GrandStaffContext \accepts "Lyrics" }
+               \translator { \GrandStaffContext \accepts "LyricsVoice" }
                indent=4.0\char
                linewidth=78.0\char
        }
index 85d4e05323997f2ead7d3f270476e087e09c6efb..91cafca72d709147780b0514ace81ca3b0b17343 100644 (file)
@@ -26,7 +26,7 @@
 
 }
 
-\version "2.1.13"
+\version "2.1.19"
 manuscriptBreak = { \break }
 
 
@@ -152,7 +152,7 @@ pianoLH = \notes \relative c'' \repeat volta 2 {
      \new Staff <<
         \context Staff \modernAccidentals
         \melody >>
-     \new Lyrics <<
+     \new LyricsVoice <<
         \lyricsto "singer" \new LyricsVoice \firstVerse
         \lyricsto "singer" \new LyricsVoice \secondVerse
         >>
index be046e9593bbf4c7b5d989bc1edac2e75a10a086..b61b62ffae1a0ca36dda08398a574f75bc1c6391 100644 (file)
@@ -42,7 +42,7 @@ instrument = "Piano"
  footer = "Mutopia-2001/04/27-xx"
 } 
 
-\version "2.1.13"
+\version "2.1.19"
 
 dynamicUp = \property Voice.DynamicLineSpanner \override #'direction = #1
 dynamicRevert = \property Voice.DynamicLineSpanner \revert #'direction
index 9e882944bb6c087a4a7d0dbd0c343ea1652d63aa..41c8a79c51243ebfc6d246dd83b2b1029f44c58e 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.13"
+\version "2.1.19"
 \header{
 filename =      "denneboom.ly"
 enteredby =     "jcn"
@@ -66,7 +66,7 @@ verseOne = \notes{
        \oden
 }
 
-verseOneStaff = \context Lyrics = one 
+verseOneStaff = \context LyricsVoice = one 
        \verseOne
 
 
@@ -77,7 +77,7 @@ verseTwo = \notes{
        \oden
 }
 
-verseTwoStaff = \context Lyrics = two 
+verseTwoStaff = \context LyricsVoice = two 
        \verseTwo
 
 
@@ -108,7 +108,7 @@ denneboomShape = \paper{
 \score{
        \addlyrics
                \context Staff { \time 3/4 \melody }
-               \context Lyrics \verseOne
+               \context LyricsVoice \verseOne
        \paper{ 
                \denneboomShape 
        }
index 66ac122c758e3ffe9daf9a11d39a714804a7c405..8e1d68c7778ec13d4ebb4de69f1e6d626c2b17aa 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.14"
+\version "2.1.19"
 \header {
     title      = "Puer natus est nobis (excerptum)"
     subtitle   = "Antiphona ad introitum VII"
@@ -75,7 +75,7 @@ cantus = \context VaticanaVoice = "cantus" \notes {
   \divisioMaxima
 }
 
-verba = \context Lyrics = "verba" \lyrics {
+verba = \context LyricsVoice = "verba" \lyrics {
   Pu- er na- tus est no- bis,
   et fi- li- us da- tus est no- bis:
 }
index 7751617108a0e4b69c29ab03df582d27aec83689..76ec951968be96b2524b4a72aa435d38a13c544a 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.7"
+\version "2.1.19"
 %% +.ly: Be the first .ly file for lys-to-tely.py.
 %% Better to make lys-to-tely.py include "introduction.texi" or
 %% other .texi documents too?
@@ -21,5 +21,5 @@ Smaller and neater tests.
 
 }
 
-\score { \context Lyrics \lyrics { " " }}
+\score { \context LyricsVoice \lyrics { " " }}
 
index 41a9ccfe6eeb32bdfb14065ed1a9b832bdca4dc3..b2edba2b51645b61a98f0779f9b1cfdb60dbb261 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.10"
+\version "2.1.19"
 \header {
 
     texidoc = "With the @code{\\lyricsto} mechanism, individual lyric
@@ -28,7 +28,6 @@
        blob
     }
     
-    \new Lyrics <<  \lyricsto "bla" \lyrics \new LyricsVoice { nes ted lyrics voice with more words than no tes } >>
-    >>
+    \lyricsto "bla" \lyrics \new LyricsVoice { nes ted lyrics voice with more words than no tes } >>
 
     }
index 902814303b055559fabeb580ed556df53d759776..5d794793b85a293ff5a840006736ec87c0918176 100644 (file)
@@ -1,12 +1,12 @@
 
-\version "2.1.7"
+\version "2.1.19"
 
 \header{
-texidoc= "Lyrics can be set to a melody automatically.  Excess lyrics will be
-discarded.  Lyrics will not be set over rests.  You can have melismata
+texidoc= "LyricsVoice can be set to a melody automatically.  Excess lyrics will be
+discarded.  LyricsVoice will not be set over rests.  You can have melismata
 either by setting a property melismaBusy, or by setting
 automaticMelismas (which will set melismas during slurs and ties).  If
-you want a different order than first Music, then Lyrics, you must
+you want a different order than first Music, then LyricsVoice, you must
 precook a chord of staves/lyrics and label those.  Of course
 @code{\rhythm} ignores any other rhythms in the piece.  Hyphens and
 extenders do not assume anything about lyric lengths, so they continue
@@ -32,15 +32,15 @@ textII = \context LyricsVoice = "middle-1" \lyrics { da -- da __ da -- da da da
 
 \score {
     \notes << \context Staff = SA \noise
-      \context Lyrics = LA { s1 }
+      \context LyricsVoice = LA { s1 }
       \context Staff = SB { s1 }
-      \context Lyrics = LB { s1 }
+      \context LyricsVoice = LB { s1 }
       \context Staff = SC \noise
       
       \addlyrics
          \context Staff = SB \context Voice="middle" \m
-         << \context Lyrics = LA \textI
-           \context Lyrics = LB \textII
+         << \context LyricsVoice = LA \textI
+           \context LyricsVoice = LB \textII
          >>
          
     >>
index 78b576802ed69c2c34b1868be903458a5df92fae..40413310ca3425d653c2f778fc806dd62cc827aa 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.7"
+\version "2.1.19"
 
 \header { texidoc= "Tests lyric extenders. "}
 
@@ -8,7 +8,7 @@
        \context Staff {
            c8[ ( d] )
            r4 f4 }
-       \context Lyrics \lyrics { xxx __ \skip 4 x  }
+       \context LyricsVoice \lyrics { xxx __ \skip 4 x  }
        >>
 }
 
index c14ebdc9a8b5197c975518f260a0b73b7035eea1..67b3c01e39b771449b7e7729c5e6b347ba963664 100644 (file)
@@ -1,9 +1,9 @@
-\version "2.1.7"
+\version "2.1.19"
 \header {texidoc="Tests lyric hyphens. "}
 \score{
        <<
        \context Staff \notes { c' (c') (c') c' }
-       \context Lyrics \context LyricsVoice \lyrics { bla -- alb xxx -- yyy }
+       \context LyricsVoice \lyrics { bla -- alb xxx -- yyy }
        >>
 }
 
index 321f57b1a81c93bc8dea822f78bf8fb238894d54..649387c46d77ccc243c6b509f45c60de0c492dc0 100644 (file)
@@ -1,5 +1,5 @@
 
-\version "2.1.10"
+\version "2.1.19"
 \header{
   texidoc="Lyric phrasing
 
@@ -29,7 +29,7 @@
       \autoBeamOff
       a a a8 ( a) a4
     }
-    \context Lyrics <<
+  <<
       \new LyricsVoice \lyricsto "v"  \lyrics {
         \property LyricsVoice . stanza = "1:"
         Start sentence melisma end.
index 2316d0fa6a211bec296d9867cdd69f65d641f9c0..e530c0f790751afbb89b9d3ddcf494f3b3e4bd9c 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.7"
+\version "2.1.19"
 
 \header{
 texidoc="
@@ -12,7 +12,7 @@ lyrics don't collide with barlines.
        \notes \context Staff {
                b1 \bar "|:" b1 \bar ":|"
        }
-       \lyrics\context Lyrics <<
+       \lyrics <<
                \context LyricsVoiceWithBars {
 %                      thisContextHasBarEngraver1  added
                        ThisContextCertainlyHasBarEngraverAddedButThereHasBeenSomethingFunnyBefore1.  Here.
@@ -26,7 +26,7 @@ lyrics don't collide with barlines.
        \paper {
                raggedright = ##t
                \translator {
-                       \LyricsContext
+                       \ScoreContext
                        \accepts "LyricsVoiceWithBars"
                }
                \translator {
@@ -34,9 +34,6 @@ lyrics don't collide with barlines.
                        \consists "Bar_engraver"
                        \name "LyricsVoiceWithBars"
                }
-               \translator {
-                       \LyricsVoiceContext
-               }
        }
 }
 
index 42ded52218f57f28b0938efdab90969aec3d0aec..ddb484f526503ecf36733678970ab57d4edacc83 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.7"
+\version "2.1.19"
 \header {
 texidoc = "Span bars draw only in between staff bar lines, so setting those to transparent shows bar lines between systems only.
 "
@@ -7,7 +7,7 @@ texidoc = "Span bars draw only in between staff bar lines, so setting those to t
 \score {
  \notes \relative c' \new StaffGroup <<
  \new Staff { a1 a1 a1}
-  \new Lyrics \lyrics <<
+  \new LyricsVoice \lyrics <<
    { bla1 die bla }
    { foo bar foo }
   >>
index 12f5363e07acc3861d3906f9ed7342c349176a5c..065f62986b4da4fc292936f85e50e8c1d76cd44d 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.10"
+\version "2.1.19"
 
 \header {
   texidoc = "Melody and lyrics."
@@ -18,7 +18,7 @@ text = \lyrics {
          \property Staff.autoBeaming = ##f
          \melody
       }
-      \lyricsto "one" \new Lyrics \text
+      \lyricsto "one" \new LyricsVoice \text
   >>
   \paper { }
   \midi  { }
index f84b9d4ad7de35313839872812304041d00a070d..48c105b2f5052c190c02104bf0ebe239d6ee63ec 100644 (file)
@@ -1,7 +1,7 @@
-\version "2.1.10"
+\version "2.1.19"
 
 \header {
-  texidoc ="Lyrics between two staffs."
+  texidoc ="LyricsVoice between two staffs."
 }
 
 upper = \notes\relative c'' {
@@ -30,11 +30,11 @@ text = \lyrics {
   \paper {
     \translator {
       \GrandStaffContext
-      \accepts "Lyrics"
+      \accepts "LyricsVoice"
     }
     \translator {
       %\LyricsVoiceContext
-      \LyricsContext
+      \LyricsVoiceContext
       \consists "Bar_engraver"
     }
   }  
index 6443c873e2c5350d1d11ab85f3a3d083e98b1050..bc0109c65fbb5f26aa4763f78152436c682f14fb 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.7"
+\version "2.1.19"
 %% +.ly: Be the first .ly file for lys-to-tely.py.
 %% Better to make lys-to-tely.py include "introduction.texi" or
 %% other .texi documents too?
@@ -16,4 +16,4 @@ This document is for LilyPond version
 }
 
 
-\score { \context Lyrics \lyrics {  " " } }
+\score { \context LyricsVoice \lyrics {  " " } }
index e67f69d08b0c41c23ceae9ba615bb643f8f8ee7c..dd5c409760e90dfd2d921115296fb8c3daab9205 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.7"
+\version "2.1.19"
 \header { texidoc = "@cindex Bar line lyric only
 You can move around @code{Bar_engraver} and
 @code{Span_bar_engraver} if you want bar lines on lyrics. "
@@ -7,7 +7,7 @@ You can move around @code{Bar_engraver} and
 \score {
 \notes \relative c' \context ChoirStaff <<
  \new Staff { c1 c1 c1}
- \context Lyrics \lyrics <<
+ \context LyricsVoice \lyrics <<
   { bla1 die bla }
   { foo bar foo }
   { foo bar foo }  
@@ -25,7 +25,7 @@ You can move around @code{Bar_engraver} and
   BarLine \override #'bar-size-procedure = #(lambda (x) 3.0)
 }
 \translator {
-  \LyricsContext
+  \LyricsVoiceContext
   \consists "Span_bar_engraver"
 }
 \translator{
index db9665e917418367895b8cc28d9f4cc2bae91299..261be428b931889ffd179b370f9b3738110773f3 100644 (file)
@@ -1,16 +1,16 @@
 
-\version "2.1.7"
+\version "2.1.19"
 \header {
 texidoc =  "@cindex Capital Letters
 You can set the font to use small caps.
 " }
 
-shapeSC   = \property Lyrics.LyricText \override #'font-shape = #'caps
-shapeNorm = \property Lyrics.LyricText \revert   #'font-shape
+shapeSC   = \property LyricsVoice.LyricText \override #'font-shape = #'caps
+shapeNorm = \property LyricsVoice.LyricText \revert   #'font-shape
 
 \score { <<
   \notes \relative c'' { c4 c4 c8 c8 c8 }
-  \lyrics \context Lyrics { 
+  \lyrics \context LyricsVoice { 
     what4 is4 \shapeSC The8  Ma -- trix? }
   >>
   \paper { raggedright = ##t}
index 3592f576e1def6305fa98a2e25a45b011f1fbcfc..fa38b386fdfcbd52cca074b0b8bb2910affc825d 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.7"
+\version "2.1.19"
 \header { texidoc = "
 
 @cindex Preset Extent
@@ -15,10 +15,10 @@ spaced so widely.
 }
 
 \score {
-    \context Lyrics \lyrics {
+    \context LyricsVoice \lyrics {
        foo --
-       \property Lyrics . LyricText \set #'X-extent-callback = #Grob::preset_extent
-       \property Lyrics . LyricText \set #'X-extent = #'(-10.0 . 10.0)
+       \property LyricsVoice . LyricText \set #'X-extent-callback = #Grob::preset_extent
+       \property LyricsVoice . LyricText \set #'X-extent = #'(-10.0 . 10.0)
  bar baz
        }
     \paper { raggedright = ##t}
index e27648a0044c44ed707317bd3c0f46ea9973ca45..ec21ecda5781b15290eb3dc8bf52916e64e29337 100644 (file)
@@ -1,6 +1,6 @@
-\version "2.1.7"
+\version "2.1.19"
 \header{
-       texidoc="
+    texidoc="
 
 @cindex shorter volta bracket
 
@@ -13,30 +13,30 @@ can be shortened.
 
 
 \score {
-       <<
-               \context Staff \notes\relative c''{
-                       c c c c
-                       % coda-klugde: let volta span only one bar
-                       \property Staff.voltaSpannerDuration = #(ly:make-moment 1 1)
-                       \repeat "volta" 5 { d d d d }
-                               \alternative { { e e e e f f f f }
-                       { g g g g } }
-               }
-               \context Lyrics \lyrics{
-                       intro1
-                       \repeat fold 5 { }
-                       \alternative {
-                               { chorus1 one verse1 }
-                               { chorus1 two verse1 }
-                               { chorus1 three verse }
-                               { chorus1 four verse }
-                       }
-                       five1
-               }
-       >>
-\paper{raggedright = ##t}
+    <<
+       \context Staff \notes\relative c''{
+           c c c c
+                               % coda-klugde: let volta span only one bar
+           \property Staff.voltaSpannerDuration = #(ly:make-moment 1 1)
+           \repeat "volta" 5 { d d d d }
+           \alternative { { e e e e f f f f }
+                          { g g g g } }
+       }
+       \context LyricsVoice \lyrics{
+           intro1
+           \repeat fold 5 { }
+           \alternative {
+               { chorus1 one verse1 }
+               { chorus1 two verse1 }
+               { chorus1 three verse }
+               { chorus1 four verse }
+           }
+           five1
+       }
+    >>
+    \paper{ raggedright = ##t }
 }
 
 
-% 
+                               
 
index de9c8840ccff00676d90ce47d63cd2dfec3c3f16..227e6d92ff8cb4233383c6158c12af9c81b8e1e9 100644 (file)
@@ -1,6 +1,8 @@
-\version "2.1.7"
+\version "2.1.19"
+
 % possible rename to lyric-repeat or repeat-lyric.
-\header{ texidoc = "@cindex Repeat Lyrics
+
+\header{ texidoc = "@cindex Repeat LyricsVoice
 You can use alternate lyrics as well as alternate notes for repeats. "
 }
 
@@ -11,7 +13,7 @@ You can use alternate lyrics as well as alternate notes for repeats. "
                          \repeat "volta" 2 { g a b c }
                          \alternative { { c b a g } { f e d c } }
                  }
-                 \context Lyrics \lyrics {
+                 \context LyricsVoice \lyrics {
                          De eer- ste << { maat } { moet } >>
                          \repeat fold 2 { }
                          \alternative {
index a63e4bdb28a0f231819dd8a824b75a67c4303810..c5ff34fdeab0707995221b2248546225d1c1f06f 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.7"
+\version "2.1.19"
 
 % this chart is used in the manual too.
 
@@ -32,7 +32,7 @@ A chart showing all feta scripts.
         c''\longfermata        c''\verylongfermata    c''\segno
         c''\coda               c''\varcoda
       }
-      \context Lyrics \lyrics {
+      \context LyricsVoice \lyrics {
         accent__                marcato__               staccatissimo__
         staccato__              tenuto__                portato__
         upbow__                 downbow__               flageolet__
index 9dbc7fecfa62b77731aa39940a707d3882217f4d..fe0656c49fd4ad4937af4910b602fee3e5c399af 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.7"
+\version "2.1.19"
 
 \header {
   texidoc="@cindex Trills
@@ -59,7 +59,7 @@ visible = \property Voice.NoteHead \revert #'transparent
        \time 3/4
        d2^\prallup e4
       }
-      \new Lyrics \lyrics {
+      \new LyricsVoice \lyrics {
        "Tremblement"4
        "Tremblement"4.
        "Cadence"
@@ -80,7 +80,7 @@ visible = \property Voice.NoteHead \revert #'transparent
 %}
 
     }
-      \new Lyrics \lyrics {
+      \new LyricsVoice \lyrics {
        "simple"4
        "appuy\\'e"4.
 %{     \skip 1*3
index c395bfdb73af4596edbc4b0b1358ef3bb68525ca..79c78a0f4fccee62e7253b6dc86bdacec3b8fc45 100644 (file)
@@ -1,4 +1,4 @@
-\version "2.1.14"
+\version "2.1.19"
 % possible rename to ancient-something.
 
 \header { texidoc      = "Ancient Vaticana
@@ -17,7 +17,7 @@ cantus = \context VaticanaVoice = "cantus" \notes {
   \[ e\melisma \flexa d\melismaEnd \]
 }
 
-verba = \context Lyrics = "verba" \lyrics {
+verba = \context LyricsVoice = "verba" \lyrics {
   Al- le- lu- ia.
 }
 
index 5afcc35da8cd2ccb6c8f5b0486a9198b8158ce2b..18f5a2f3a0cacf77155b28db6b47729ebeeb8831 100644 (file)
@@ -1,12 +1,19 @@
-\version "2.1.7"
+\version "2.1.19"
 
 \header {
-    texidoc  = "By putting the output of @code{lilypond-version}
-  into a lyric, we can print the version number in a score,
-or a lilypond-book document."
-    }
 
-\score { \context Lyrics \notes {
+
+    texidoc = #(string-append "By putting the output of
+    @code{lilypond-version} into a lyric, we can print the version
+    number in a score, or a lilypond-book document. Another option is
+    to append the version to the doc-string, like this: "
+
+  (lilypond-version)
+  )
+    
+}
+
+\score { \context LyricsVoice \notes {
     \property Score.RehearsalMark \set #'self-alignment-X = #LEFT
     \mark #(ly:export (string-append "Processed with LilyPond version " (lilypond-version)))
     s2
index 15ee2be3016748b566285316e5bd86fca857f7b6..a7f32ece26f8b65843ea3fa73ebd4892692008e4 100644 (file)
@@ -1,5 +1,5 @@
 #(ly:set-option 'old-relative)
-\version "2.1.7"
+\version "2.1.19"
 \header{
 filename =      "twinkle-pop.ly"
 xtitle =        "Ah, vous dirais-je, maman "
@@ -34,7 +34,7 @@ acc =  \chords {
 }
 
 text =  \lyrics{ 
-        \property Lyrics . LyricText \set #'font-shape = #'italic
+        \property LyricsVoice . LyricText \set #'font-shape = #'italic
 
         Ah!4 vous dir -- ai -- je ma man2
         Ce4 qui cau -- se mon tour -- ment2
@@ -49,7 +49,7 @@ text =  \lyrics{
         <<  
           \context ChordNames \acc
           \context Staff=melody \melodie
-           \context Lyrics \text
+           \context LyricsVoice \text
         >>
        \header{
                title = "Ah, vous dirais-je, maman "
@@ -61,7 +61,7 @@ text =  \lyrics{
         <<  
           \chords \context ChordNames \transpose c d\acc
           \notes \context Staff=melody \transpose c d\melodie
-           \lyrics \context Lyrics \text
+           \lyrics \context LyricsVoice \text
         >>
        \header{
                piece = "clarinet in B$\flat$"
index 1b3a14a84a5716b83999c74ccd37ce521cf171b2..1bf41b8710a80d5995cb822417b60ca252b7a391 100644 (file)
@@ -32,8 +32,9 @@ protected:
   virtual void derived_substitute (Translator_group*,Translator_group*);
 private:
   bool start_new_syllable () ;
-  void find_thread ();
-  
+  void find_voice ();
+
+  bool made_association_;
   Translator_group * lyrics_context_;
   Translator_group* music_context_;
   Music_iterator * lyric_iter_;
@@ -48,9 +49,14 @@ static Music *melisma_playing_ev;
 
 New_lyric_combine_music_iterator::New_lyric_combine_music_iterator ()
 {
+  made_association_ = false;
   lyric_iter_ =0;
   music_context_ =0;
   lyrics_context_ = 0;
+
+  /*
+    Ugh. out of place here.
+   */
   if (!busy_ev)
     {
       busy_ev
@@ -160,7 +166,7 @@ New_lyric_combine_music_iterator::construct_children ()
   Music *m = unsmob_music (get_music ()->get_mus_property ("element"));
   lyric_iter_ = unsmob_iterator (get_iterator (m));
 
-  find_thread ();
+  find_voice ();
   
   if (lyric_iter_)
     lyrics_context_ = find_context_below (lyric_iter_->get_outlet (),
@@ -174,7 +180,7 @@ New_lyric_combine_music_iterator::construct_children ()
 }
 
 void
-New_lyric_combine_music_iterator::find_thread ()
+New_lyric_combine_music_iterator::find_voice ()
 {
   if (!music_context_)
     {
@@ -188,19 +194,22 @@ New_lyric_combine_music_iterator::find_thread ()
 
          String name = ly_scm2string (voice_name);
          Translator_group *voice = find_context_below (t, "Voice", name);
-         Translator_group *thread = 0;
-         if (voice)
-           thread = find_context_below (voice, "Thread", "");
-         else
+         if (!voice)
            get_music ()->origin ()->warning (_f ("Cannot find Voice: %s\n",
                                                  name.to_str0 ())); 
-
-         if (thread)
-           music_context_ = thread;
+         else
+           music_context_ = voice;
            
-         if (lyrics_context_ && voice)
-           lyrics_context_->set_property ("associatedVoiceContext",
-                                          voice->self_scm ());
+       }
+    }
+
+  if (lyrics_context_ && music_context_)
+    {
+      if (!made_association_)
+       {
+         made_association_ = true; 
+         lyrics_context_->set_property ("associatedVoiceContext",
+                                        music_context_->self_scm ());
        }
     }
 }
@@ -208,7 +217,7 @@ New_lyric_combine_music_iterator::find_thread ()
 void
 New_lyric_combine_music_iterator::process (Moment )
 {
-  find_thread ();
+  find_voice ();
   if (!music_context_)
     return ;
   
index e72acf4b24230b8f8de94c4a189e3f1a32ed3689..ee4ede13ad43ad2402b6a5770ecc05b1c6c7156c 100644 (file)
@@ -267,9 +267,10 @@ New_pc_iterator::construct_children ()
   split_list_ =  get_music ()->get_mus_property ("split-list");
   SCM lst =  get_music ()->get_mus_property ("elements");
 
-  SCM props = scm_list_n (scm_list_n (ly_symbol2scm ("denies"), ly_symbol2scm ("Thread"), SCM_UNDEFINED),
-                         scm_list_n (ly_symbol2scm ("consists"), ly_symbol2scm ("Rest_engraver"), SCM_UNDEFINED),
-                         scm_list_n (ly_symbol2scm ("consists"), ly_symbol2scm ("Note_heads_engraver"), SCM_UNDEFINED),
+  SCM props = scm_list_n (/*
+                           used to have tweaks here.
+                          */
+                         
                          SCM_UNDEFINED);
 
   Translator_group *tr
index a1de8962d3721a148e8cd62be953ba9479a730f9..4b9421e64797689c61c579e29953ae13c9e4faab 100644 (file)
@@ -1,4 +1,4 @@
-\version "1.9.8"
+\version "2.1.19"
 
 
 %
     \accepts "RhythmicStaff"
     \accepts "GrandStaff"
     \accepts "PianoStaff"
-    \accepts "Lyrics"
+    \accepts "LyricsVoice"
     \accepts "ChordNames"
 }
 
     \accepts "GrandStaff"
     \accepts "PianoStaff"
     \accepts "TabStaff"        
-    \accepts "Lyrics"
+    \accepts "LyricsVoice"
     \accepts "ChordNames"
 }
 
@@ -445,7 +445,7 @@ AncientRemoveEmptyStaffContext = \translator {
     \accepts "StaffGroup"
     \accepts "RhythmicStaff"
     \accepts "DrumStaff"
-    \accepts "Lyrics"
+    \accepts "LyricsVoice"
     \accepts "ChordNames"
     \accepts "GrandStaff"
     \accepts "ChoirStaff"
index 25d9d362cdf44d96cf81bb50d86a90e309a0d0a8..b3e27bb34b90efb53899c9e9e5bd2288c3307af9 100644 (file)
@@ -1,4 +1,4 @@
-\version "1.9.8"
+\version "2.1.19"
 
 %
 % setup for Request->Element conversion. Guru-only
        \consists "Span_dynamic_performer"
        \consists "Tie_performer"
        \consists "Piano_pedal_performer"
-       \accepts "Thread"
+       \accepts "Voice"
 }
 
 \translator {
        \type "Performer_group_performer"
-       \name Thread
+       \name Voice
        \consists "Note_performer"
 }
 
@@ -76,7 +76,6 @@
        \accepts GrandStaff
        \accepts PianoStaff
        \accepts TabStaff
-       \accepts Lyrics 
        \accepts StaffGroup
        \accepts Devnull
        \accepts ChoirStaff
 
 
 \translator {
-       \type "Performer_group_performer"
+       \type "Staff_performer" % Performer_group_performer ?
        \consists "Lyric_performer"
        \name LyricsVoice
+       \consists "Time_signature_performer"
+       \consists "Tempo_performer"
 }
 
 \translator{
        \accepts Staff
 }
 
-\translator {
-       \type "Staff_performer"
-       \accepts LyricsVoice
-       \name Lyrics
-       \consists "Time_signature_performer"
-       \consists "Tempo_performer"
-}
 
 \translator {
        \type "Staff_performer"
index 3691da139506192c72568dd391e98e5d0103bc2e..318198c5fedcfc599249174fccc9e7224cf703b6 100644 (file)
@@ -1798,8 +1798,11 @@ def conv (str):
        str = re.sub (r"""\\new Thread""", """\context Voice""", str)
        str = re.sub (r"""Thread""", """Voice""", str)
 
+       if re.search ('\bLyrics\b', str):
+               sys.stderr.write ("\nLyrics found. Check file manually!\n");
+
        str = re.sub (r"""LyricsVoice""", r"""L@ricsVoice""", str)
-       str = re.sub (r"""\bLyrics\b""", r"""\1 LyricsVoice""", str)
+       str = re.sub (r"""\bLyrics\b""", r"""LyricsVoice""", str)
        str = re.sub (r"""LyricsContext""", r"""LyricsVoiceContext""", str)
        str = re.sub (r"""L@ricsVoice""", r"""LyricsVoice""",str)