gnu-music-discuss
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

volta spanner in 1.3.92 still broken


From: Han-Wen Nienhuys
Subject: volta spanner in 1.3.92 still broken
Date: Tue, 3 Oct 2000 13:17:50 +0200

address@hidden writes:
> 
> The problem with volta spanner starting in middle of a measure (after
> line break?) which I reported some time ago is still broken in 1.3.92.

Try the attached patch. It puts the start of the volta spanner
directly after the key signature (but before a time-signature, if
there is a time-signature change).  I'm not sure where the correct
starting point is, though. I'll have a look in the books when I have
time. In the meantime.



--- volta-spanner.cc~   Sat Sep 23 01:45:48 2000
+++ volta-spanner.cc    Tue Oct  3 13:15:06 2000
@@ -66,7 +66,12 @@
   Real staff_space = me->paper_l ()->get_var ("staffspace");
   Real staff_thick = me->paper_l ()->get_var ("stafflinethickness");  
   Real half_space = staff_space / 2;
-  Real left = dynamic_cast<Spanner*>(me)->get_broken_left_end_align ();
+
+  /*
+    the volta spanner is attached to the bar-line, which is moved
+    to the right. We don't need to compensate for the left edge.
+   */
+  Real left = 0.0;
   Real w = dynamic_cast<Spanner*>(me)->spanner_length () - left - half_space;
   Real h = staff_space * gh_scm2double (me->get_elt_property ("height"));
   Real t = staff_thick * gh_scm2double (me->get_elt_property ("thickness"));

-- 

Han-Wen Nienhuys   |   address@hidden    | http://www.cs.uu.nl/~hanwen/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]