]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-1.3.119
authorfred <fred>
Wed, 27 Mar 2002 00:34:58 +0000 (00:34 +0000)
committerfred <fred>
Wed, 27 Mar 2002 00:34:58 +0000 (00:34 +0000)
Documentation/index.texi
Documentation/regression-test.tely
Documentation/user/GNUmakefile
input/bugs/lyrics-bar.ly [new file with mode: 0644]
input/bugs/partial-beam.ly [new file with mode: 0644]
input/bugs/slur-dx.ly [new file with mode: 0644]
input/test/beam-dir-function.ly [new file with mode: 0644]
input/test/lyrics-bar.ly
lily/auto-beam-engraver.cc

index 91a60d6e0149533e96aaab2f78ab8e7307c44d70..6607283680f2eebdb118cb62af0c28772fddd0fa 100644 (file)
@@ -24,6 +24,8 @@
 @item @uref{../user/out-www/lilypond/lilypond.html,LilyPond reference manual}
 also available in @uref{../user/out-www/lilypond.ps.gz,Postscript}
 @item LilyPond @uref{../user/out-www/lilypond-internals/lilypond-internals.html,internals}
+@item @uref{../user/out-www/features/features.html, LilyPond features}
+work in progress, to me merged with reference manual.
 @item @uref{../user/out-www/glossary.html,A glossary of musical
 terms}, includes translations.  Also available in @uref{../user/out-www/glossary.ps.gz,Postscript})
 @item @uref{../user/out-www/lilypond-book.html,lilypond-book}, a tool for
index 4bec2bfaec9decd64f2fc8e8e2200f3617fad87c..d059ce771c1e5395cfe3c8671aab56b8c1726267 100644 (file)
@@ -91,8 +91,11 @@ and documenting bugfixes.
 
 @lilypondfile{beam-length.ly}
 
+@lilypondfile{beam-dir-function.ly}
+
 @lilypondfile{triplets.ly}
 
+
 @lilypondfile{slur-nice.ly}
 @lilypondfile{slur-symmetry.ly}
 @lilypondfile{slur-symmetry-1.ly}
index 32f8816323cc52c653378d18920b1c498b9c0851..d8d035834e74c555c8e2e22da39f17a726957ec5 100644 (file)
@@ -45,7 +45,7 @@ info: $(INFO_FILES)
 # The next version of makeinfo should split html files into their own
 # directory.  For now available only as patches from
 # http://appel.lilypond.org/software
-SPLITTING_MAKEINFO = $(shell makeinfo --version | grep 4.0.jcn2)
+SPLITTING_MAKEINFO = $(shell makeinfo --version | grep '4.0.jcn[2,3]')
 
 
 # Generic rule using % twice not possible?
@@ -67,7 +67,7 @@ $(outdir)/features/features.html: $(outdir)/features.texi
 
 ifneq ($(SPLITTING_MAKEINFO),)
 
-DEEP_HTML_FILES = $(outdir)/lilypond/lilypond.html $(outdir)/lilypond-internals/lilypond-internals.html
+DEEP_HTML_FILES = $(outdir)/lilypond/lilypond.html $(outdir)/lilypond-internals/lilypond-internals.html $(outdir)/features/features.html
 
 else
 
diff --git a/input/bugs/lyrics-bar.ly b/input/bugs/lyrics-bar.ly
new file mode 100644 (file)
index 0000000..ec0309b
--- /dev/null
@@ -0,0 +1,39 @@
+\header{
+texidoc="
+Adding a @code{Bar_engraver} to the LyricsVoice context makes sure that
+lyrics don't collide with barlines.
+";
+}
+
+\score {
+       \context StaffGroup <
+       \notes \context Staff {
+               b1 b1 \bar "|.";
+       }
+       \lyrics\context Lyrics <
+               \context LyricsVoiceWithBars {
+%                      thisContextHasSpanBarEngraver1  added
+                       ThisContextCertainlyHasSpanBarEngraverAddedButTheresSomethingFunny1.  Here.
+               }
+               \context LyricsVoice {
+                       this4 one has no SpanBarEngraverAddedToContext1
+               }
+       >
+       \notes \context Staff = SB { b1 b1 }
+       >
+       \paper {
+               linewidth = -1.0\cm;
+               \translator {
+                       \LyricsContext
+                       \consists "Span_bar_engraver";
+                       \accepts "LyricsVoiceWithBars";
+               }
+               \translator {
+                       \LyricsVoiceContext
+                       \name "LyricsVoiceWithBars";
+               }
+               \translator {
+                       \LyricsVoiceContext
+               }
+       }
+}
diff --git a/input/bugs/partial-beam.ly b/input/bugs/partial-beam.ly
new file mode 100644 (file)
index 0000000..e3d0192
--- /dev/null
@@ -0,0 +1,25 @@
+\include "paper20.ly"
+Sopnotes = \notes {
+       \time 4/4;
+       \key g \major;
+       \clef treble;
+       \partial 8 * 3;
+       e'8 f'8 g'8 |
+       d'8 d'16 d'16 e'8. e'16 g'8 g'8 f'8 f'8
+}
+
+\score {
+       \notes
+       <
+               \context Staff="sop"
+               <
+                   \$Sopnotes
+               >
+       >
+       \paper {
+                \translator {
+                 \StaffContext 
+                        autoBeamSettings \override #'(end * * * * ) = #(make-moment 1 8)
+               }
+       }
+}
diff --git a/input/bugs/slur-dx.ly b/input/bugs/slur-dx.ly
new file mode 100644 (file)
index 0000000..02cfbf9
--- /dev/null
@@ -0,0 +1,19 @@
+\header{
+texidoc="
+Arg, right ending of slur is too far right.  I did make a better
+test .ly for this, but can't seem to find it now.
+";
+}
+
+\score {
+  \notes \relative c'' {
+    \property Voice.Stem \set #'direction = #1
+    \property Voice.Slur \set #'direction = #1
+    d,32( d'4 )d8..
+    \property Voice.Slur \set #'attachment = #'(stem . stem)
+    d,32( d'4 )d8..
+  }
+  \paper {
+    linewidth = -1.;
+  }
+} 
diff --git a/input/test/beam-dir-function.ly b/input/test/beam-dir-function.ly
new file mode 100644 (file)
index 0000000..d445468
--- /dev/null
@@ -0,0 +1,40 @@
+\header{
+texidoc="
+There are several ways to calculate the direction of a beam
+
+@table @samp
+@item majority
+number count of up or down notes
+@item mean
+mean centre distance of all notes
+@item median
+mean centre distance weighted per note
+@end table
+
+We should see:
+
+  up down down
+
+  up up down
+";
+}
+
+\score {
+  \notes \relative c'' {
+    % the default
+    %\property Voice.Beam \set #'dir-function = #beam-dir-majority
+    [d8 a]
+    \property Voice.Beam \set #'dir-function = #beam-dir-mean
+    [d a] 
+    \property Voice.Beam \set #'dir-function = #beam-dir-median
+    [d a]
+    
+    \property Voice.Beam \set #'dir-function = #beam-dir-majority
+    \time 3/8;
+    [d8 a a]
+    \property Voice.Beam \set #'dir-function = #beam-dir-mean
+    [d a a] 
+    \property Voice.Beam \set #'dir-function = #beam-dir-median
+    [d a a] 
+  }
+}
index 998ce458ee858b542855f8f4af2c002cb11d2929..ec0309b3221556affad21dda2e0a2252dc9aef45 100644 (file)
@@ -12,7 +12,8 @@ lyrics don't collide with barlines.
        }
        \lyrics\context Lyrics <
                \context LyricsVoiceWithBars {
-                       thisContextHasSpanBarEngraver1 added
+%                      thisContextHasSpanBarEngraver1  added
+                       ThisContextCertainlyHasSpanBarEngraverAddedButTheresSomethingFunny1.  Here.
                }
                \context LyricsVoice {
                        this4 one has no SpanBarEngraverAddedToContext1
index 07ff86dceb4649d770cfd8b2c16ec7aa1866bf59..1dafaad75be120cc1836f2ec1b00cb3da034b88a 100644 (file)
@@ -165,7 +165,19 @@ Auto_beam_engraver::test_moment (Direction dir, Moment test_mom)
   
   Rational r;
   if (moment)
-    r = unsmob_moment (get_property ("measurePosition"))->mod_rat (moment);
+    {
+      /* Ugh? measurePosition can be negative, when \partial
+        We may have to fix this elsewhere (timing translator)
+       r = unsmob_moment (get_property ("measurePosition"))->mod_rat (moment);
+      */
+      Moment pos = * unsmob_moment (get_property ("measurePosition"));
+      if (pos < Moment (0))
+       {
+         Moment length = * unsmob_moment (get_property ("measureLength"));
+         pos = length - pos;
+       }
+      r = pos.mod_rat (moment);
+    }
   else
     {
       if (dir == START)