]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/beam.cc (connect_beams): fix quarter note beams.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 2 Aug 2002 21:49:36 +0000 (21:49 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Fri, 2 Aug 2002 21:49:36 +0000 (21:49 +0000)
* input/regression/beam-quarter.ly: new file.

ChangeLog
Documentation/user/tutorial.itely
input/regression/beam-quarter.ly [new file with mode: 0644]
input/regression/beaming.ly
lily/beam.cc

index c91a073340e98439e89f28a2d2ba15b174e2ec3b..7cd2ccfb0c25ec75abc31d25ce156e313c6b5fe7 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2002-08-02  Han-Wen  <hanwen@cs.uu.nl>
+
+       * lily/beam.cc (connect_beams): fix quarter note beams.
+
+       * input/regression/beam-quarter.ly: new file.
+
 2002-08-02  Mats Bengtsson  <mats.bengtsson@s3.kth.se>
 
        * buildscripts/mf-to-table.py (postfixes): Reduce the line spacing
index d28775ac5b1b3fbe66ee41c176cf581df39a772f..a8dc14a6a1d53c67cd5b9b7aa94afbfbb7e1302b 100644 (file)
@@ -1563,8 +1563,13 @@ the bottom of the last page.  This signature is produced from the
 the layout of different versions can be compared using archived
 print-outs (that include a version number).
 
-Many people find the default tagline too droll.  If that is the case,
-assign something else to @code{tagline}, as shown above.
+@cindex Lily was here
+@cindex signature line
+@cindex tag line
+
+Many people find the default tagline (``Lily was here'') too droll.
+If that is the case, assign something else to @code{tagline}, as shown
+above.
 
 @separate
 @example
diff --git a/input/regression/beam-quarter.ly b/input/regression/beam-quarter.ly
new file mode 100644 (file)
index 0000000..1608e62
--- /dev/null
@@ -0,0 +1,10 @@
+\header
+{
+    texidoc= "Quarter notes may be beamed: the beam is halted momentarily."
+}
+
+\score {\notes \relative c'' {
+       [c8 c4 c8] % should warn here!
+}
+\paper { linewidth = -1.0 } 
+}
index e96715d8f223069b113e9997b94e86de0a7f25e5..0fd15d381c92e06aa6351983b79ab8121492a019 100644 (file)
@@ -19,7 +19,8 @@ hidden just as with breakable bar lines.
        [c32 c32]
        [c64 c64]       
        c32
-       [c8 c,4 c'8] % should warn here!
+       c2
+
        [c8 c c] c8 % over barline
        [c16 c8 c16]
        [c32 c16 c16 c16 c32]
index 9bd6288cb5c33d9b20e13792d925f9a6eaa976d9..695a704750f135483c86fa085342dfee1e293164 100644 (file)
@@ -274,15 +274,18 @@ Beam::connect_beams (Grob *me)
              gh_set_car_x (s, gh_int2scm (np));
              last_int.add_point (np);
            }
-         
        }
 
       if (i == stems.size () -1)
        {
-         gh_set_cdr_x ( this_beaming, SCM_EOL);
+         gh_set_cdr_x (this_beaming, SCM_EOL);
+       }
+
+      if (scm_ilength (gh_cdr (this_beaming)) > 0)
+       {
+         last_beaming = this_beaming;
+         last_dir = this_dir;
        }
-      last_beaming = this_beaming;
-      last_dir = this_dir;
     }
  }