]> git.donarmstrong.com Git - lilypond.git/commitdiff
Fix issue 1641 -- Make \noBeam terminate the current autobeam
authorCarl Sorensen <c_sorensen@byu.edu>
Sat, 30 Apr 2011 21:51:43 +0000 (15:51 -0600)
committerCarl Sorensen <c_sorensen@byu.edu>
Sun, 1 May 2011 00:10:43 +0000 (18:10 -0600)
add regression test file

input/regression/autobeam-nobeam.ly [new file with mode: 0644]
lily/auto-beam-engraver.cc

diff --git a/input/regression/autobeam-nobeam.ly b/input/regression/autobeam-nobeam.ly
new file mode 100644 (file)
index 0000000..6273ec3
--- /dev/null
@@ -0,0 +1,16 @@
+\version "2.13.61"
+%%  Hack -- this should be 2.15.0, unless it is backported
+%%  Set to 2.13.61 in order to keep compile working
+
+\header {
+
+  texidoc = "
+  \noBeam should terminate an autobeam, even if it's not a
+  recommended place for stopping a beam.  In this example,
+  the first three eighth notes should be beamed.
+  "
+}
+
+\relative c'{
+  c8 d e f\noBeam  g a b c
+}
index dbff4e95a2f8803bfe87fa2b7afd18fe307422e9..66b79fe008c59b0c2612c03425c2871af991c9cd 100644 (file)
@@ -137,8 +137,10 @@ Auto_beam_engraver::process_music ()
 
   if (forbid_)
     {
-      consider_end (measure_position (context ()), shortest_mom_);
-      junk_beam ();
+      if (stems_)
+       end_beam ();
+      else
+       junk_beam ();
     }
 }