]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.116
authorfred <fred>
Wed, 27 Mar 2002 00:34:29 +0000 (00:34 +0000)
committerfred <fred>
Wed, 27 Mar 2002 00:34:29 +0000 (00:34 +0000)
input/test/auto-beam-bar.ly [new file with mode: 0644]
input/test/beam-rest.ly [new file with mode: 0644]
input/test/follow-thread.ly
input/test/glissando.ly
lily/auto-beam-engraver.cc
lily/note-head-line-engraver.cc

diff --git a/input/test/auto-beam-bar.ly b/input/test/auto-beam-bar.ly
new file mode 100644 (file)
index 0000000..645c62d
--- /dev/null
@@ -0,0 +1,20 @@
+\header{
+texidoc="
+The first two a8 notes should not be beamed.
+Also, no automatic beaming accross bar lines.
+";
+}
+
+\score{
+\notes \notes\relative c'' {
+\time 2/8;
+a8 a
+\time 6/8;
+a16 cis d a bes g fis4 g8
+%a4. fis4 g8
+a16 g a bes c d % ees8 d c
+}
+\paper{
+   linewidth=-1.;
+}
+}
\ No newline at end of file
diff --git a/input/test/beam-rest.ly b/input/test/beam-rest.ly
new file mode 100644 (file)
index 0000000..bf8d278
--- /dev/null
@@ -0,0 +1,17 @@
+\header{
+texidoc="
+Beams over rests.
+";
+}
+
+\score{
+        \context Staff=one \notes\relative c''{
+         r4 [r8 g a]
+         [bes8 r16 f g a]
+         [bes8 r16 \property Voice.stemLeftBeamCount = #1 f g a]
+
+    }
+    \paper{
+        linewidth =-1;
+    }
+}
index d22f1fcf9b6ed52486b971cf8936dc33564a743e..e58e1c91f8d71217dc407e8208820ab4dab06d8e 100644 (file)
@@ -1,3 +1,9 @@
+\header{
+texidoc="
+Theads can be traced automagically when they switch staffs by setting
+property @code{followThread}.
+";
+}
 % followThread: connect note heads with line when thread switches staff 
 
 \score{
index 951557e530747d6b5b90e7af9ed0bc125e4fa1ef..74d43fba581c138844dc38444a374976742765c7 100644 (file)
@@ -1,19 +1,22 @@
 \header{
 texidoc="
-Simple glissando lines between notes are supported.
+Simple glissando lines between notes are supported.  The first two glissandi are not consecutive.
 ";
 }
 
 \score{
-    <
         \context Staff=one \notes\relative c''{
-            a \glissando e' \glissando a, \glissando
-           \translator Staff=two
-           a,,
-       }
-       \context Staff=two { \clef bass; \skip 1; }
-    >
+            % gliss non gliss and 
+            c \glissando d e \glissando f\break
+            % consecutive 
+            c \glissando d \glissando e f
+    }
     \paper{
         linewidth = 70.\mm;
+       \translator{
+              \StaffContext
+              % makes for handier debugging
+              % \remove Clef_engraver;
+       }
     }
 }
\ No newline at end of file
index d5af0fcf66dcdcd958ce2f1b7a25bce26b2d97d6..07ff86dceb4649d770cfd8b2c16ec7aa1866bf59 100644 (file)
@@ -56,7 +56,7 @@ private:
   Link_array<Item>* stem_l_arr_p_;
 
 
-  bool count_i_;
+  int count_i_;
   Moment last_add_mom_;
 
   /*
@@ -193,7 +193,7 @@ Auto_beam_engraver::consider_begin (Moment test_mom)
 void
 Auto_beam_engraver::consider_end (Moment test_mom)
 {
-  if (stem_l_arr_p_ && stem_l_arr_p_->size () > 1)
+  if (stem_l_arr_p_)
     {
       /* Allow already started autobeam to end:
         don't check for noAutoBeaming */
@@ -396,7 +396,6 @@ Auto_beam_engraver::acknowledge_grob (Grob_info info)
 
        but the code didn't match: */
 #if 1
-      
       consider_end (dur);
       consider_begin (dur);
 
index 9ca614859b51aae8d4495eba7f31611d7a50eda7..b2717201cffde2295796bcedfb00280e2f086ae2 100644 (file)
@@ -128,10 +128,13 @@ Note_head_line_engraver::create_grobs ()
          
          announce_grob (line_, last_req_);
        }
+
+      last_head_ = 0;
+      if (!follow_ && !req_)
+       head_ = 0;
       
       last_req_ = 0;
       follow_ = false;
-      last_head_ = 0;
     }
 }