Here comes a small patch to avoid a SIGSEGV and to make ly2dvi work
with Lilypond generated tex files as input again.

In addition, my comments for pl 14 are still relevant in pl 15, 
apart from the problem with multibar rests that is now solved.

Is there some way of making a textual script pretend to have zero length. 
For example at a tempo change where you'd like to write something like 

\property voice.textstyle = "large"
c4^"Allegro moderato"

without getting a large gap in the music. The text will not collide 
with anything else anyhow.
A similar trick is probably needed to make the Staff_margin_engraver
work. I tried to fiddle with the break_priority_i_ and alignments
to make it work but I couldn't avoid getting staff lines drawn 
behind the text.

    /Mats

--------------------------------

--- scripts/ly2dvi.py~  Tue Dec  8 17:00:41 1998
+++ scripts/ly2dvi.py   Wed Dec 16 01:10:00 1998
@@ -102,7 +102,7 @@
 
         firstline = this.__fd.readline()
         this.__fd.seek(0)
-        if  re.match('% Creator: GNU LilyPond [0-9]+[.0-9]+',firstline ):
+        if  re.match('%created by: GNU LilyPond [0-9]+[.0-9]+',firstline ):
             return 'output'
         else:
             return 'source'
--- lily/stem.cc~       Mon Dec 14 14:35:45 1998
+++ lily/stem.cc        Wed Dec 16 00:41:43 1998
@@ -43,6 +43,7 @@
   staff_size_i_ = 8;
 
   beam_gap_i_ = 0;
+  beam_l_ = 0;
 }
 
 Interval_t<int>

Reply via email to