2002-08-11 Jan Nieuwenhuizen <janneke@gnu.org>
+ * GNUmakefile.in: Fix config.h dependency.
+
+ * input/test/beam-dir-function.ly: Fix for new default
+ neutral-direction = -1 (down).
+
* input/regression/tuplet-properties.ly:
* input/regression/tuplet-nest.ly: Fix.
builddir-setup-clean:
@cd $(builddir) && rm -rf share
-$(config_h): configure
+$(config_h): configure.in aclocal.m4
#
# this is to prevent people from getting
# undefined symbols when we add them to config.h.in,
# and they blindly run "cvs update; make".
#
@echo
- @echo ' *** config.h file is out of date'
- @echo ' *** Remove it, and rerun configure or autogen.sh'
+ @echo ' *** config.h is out of date'
+ @echo ' *** Remove it and rerun autogen:'
+ @echo ' rm config.h; ./autogen.sh'
@echo
@false
\version "1.5.68"
\header{
-texidoc="
+ texidoc="
There are several ways to calculate the direction of a beam
mean centre distance weighted per note
@end table
-We should see:
+These beam direction functions are defined in @file{scm/beam.scm}. If
+your favourite algorithm isn't one of these, you can hook up your own.
- up down down
-
- up up down
-"
-}
+Of course, this depends on the neutral-direction for the middle line,
+down by default. We set that to 1 (up) in the lower staff." }
\score {
- \notes \relative c'' {
- \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]
- }
+ \context PianoStaff <
+ \context Staff \notes \relative c'' {
+ \property Voice.Beam \set #'dir-function = #beam-dir-majority
+ [c8^"down" g]
+ \property Voice.Beam \set #'dir-function = #beam-dir-mean
+ [c^"up" g]
+ \property Voice.Beam \set #'dir-function = #beam-dir-median
+ [c^"up" g]
+
+ \time 3/8
+ \property Voice.Beam \set #'dir-function = #beam-dir-majority
+ [c8^"down" c g]
+ \property Voice.Beam \set #'dir-function = #beam-dir-mean
+ [c^"down" c g]
+ \property Voice.Beam \set #'dir-function = #beam-dir-median
+ [c^"up" c g]
+ }
+ \context Staff=lower \notes \relative c'' {
+ \property Voice.Beam \set #'neutral-direction = #1
+ \property Voice.Beam \set #'dir-function = #beam-dir-majority
+ [d8_"up" a]
+ \property Voice.Beam \set #'dir-function = #beam-dir-mean
+ [d_"down" a]
+ \property Voice.Beam \set #'dir-function = #beam-dir-median
+ [d_"down" a]
+
+ \property Voice.Beam \set #'dir-function = #beam-dir-majority
+ \time 3/8
+ [d8_"up" a a]
+ \property Voice.Beam \set #'dir-function = #beam-dir-mean
+ [d_"up" a a]
+ \property Voice.Beam \set #'dir-function = #beam-dir-median
+ [d_"down" a a]
+
+ }
+ >
}
+
+%% Local variables:
+%% LilyPond-indent-level:2
+%% End:
\version "1.5.68"
\header {
-texidoc = "
+ texidoc = "
There are several ways to calculate the direction of a beam.
@table @code
}
\paper { linewidth = -1.}
-\score { \notes \relative c {
- [d''8 a]
- \property Voice.Beam \set #'dir-function = #beam-dir-mean
- [d a]
- \property Voice.Beam \set #'dir-function = #beam-dir-median
- [d a]
-}}
-\score { \notes \relative c {
- \time 3/8
- [d''8 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]
-}}
+\score {
+ \notes\relative c'' {
+ \property Voice.Beam \set #'dir-function = #beam-dir-majority
+ [c8 g]
+ \property Voice.Beam \set #'dir-function = #beam-dir-mean
+ [c g]
+ \property Voice.Beam \set #'dir-function = #beam-dir-median
+ [c g]
+
+ \time 3/8
+ \property Voice.Beam \set #'dir-function = #beam-dir-majority
+ [c8 c g]
+ \property Voice.Beam \set #'dir-function = #beam-dir-mean
+ [c c g]
+ \property Voice.Beam \set #'dir-function = #beam-dir-median
+ [c c g]
+ }
+}
+
+%% Local variables:
+%% LilyPond-indent-level:2
+%% End:
+