2004-07-18 Han-Wen Nienhuys <hanwen@xs4all.nl>
+ * lily/scm-option.cc: move debug-beam to \paper.
+
+ * scripts/lilypond-book.py (Lilypond_snippet.write_ly): create
+ .txt files to appease makeinfobm.
+
* input/mutopia/W.A.Mozart/mozart-hrn-3.ly:
remove texttagline.
PACKAGE_NAME=LilyPond
MAJOR_VERSION=2
MINOR_VERSION=3
-PATCH_LEVEL=6
-MY_PATCH_LEVEL=hwn1
+PATCH_LEVEL=7
+MY_PATCH_LEVEL=
}
-#(ly:set-option 'debug-beam #t)
resetMeasure = \set Score.measurePosition = #(ly:make-moment 0 1)
% examples from
}
\paper{
raggedright = ##t
+ #(define debug-beam-quanting #t)
}
}
-#(ly:set-option 'debug-beam #f)
% todo: make the check-quant function throw an error for incorrect quants
%
-\paper { raggedright = ##t }
+\paper {
+ raggedright = ##t
+ #(define debug-beam-quanting #t)
+
+ }
filler = \relative { e4 e }
%
-#(ly:set-option 'debug-beam #t)
-
primes = \relative {
{ \primes \seconds }
-#(ly:set-option 'debug-beam #f)
texidoc = "This file demonstrates how to load different
(postscript) fonts. The file @file{font.scm} shows how to define
- the scheme-function called."
+ the scheme-function @code{make-century-schoolbook-tree}."
+
}
\bookpaper
raggedright = ##t
}
-% #(ly:set-option 'debug-beam #t)
-
%% help lilypond-book
%% \score
c,,^( c')
}
-% #(ly:set-option 'debug-beam #f)
const Real ROUND_TO_ZERO_SLOPE = 0.02;
const int ROUND_TO_ZERO_POINTS = 4;
-extern bool debug_beam_quanting_flag;
-
static Real
shrink_extra_weight (Real x, Real fac)
{
#if DEBUG_QUANTING
SCM inspect_quants = me->get_property ("inspect-quants");
- if (debug_beam_quanting_flag
+ if (to_boolean (me->get_paper ()->lookup_variable (ly_symbol2scm ("debug-beam-quanting")))
&& ly_c_pair_p (inspect_quants))
{
Drul_array<Real> ins = ly_scm2interval (inspect_quants);
ly_interval2scm (Drul_array<Real> (qscores[best_idx].yl,
qscores[best_idx].yr)));
#if DEBUG_QUANTING
- if (debug_beam_quanting_flag)
+ if (to_boolean (me->get_paper ()->lookup_variable (ly_symbol2scm ("debug-beam-quanting"))))
{
qscores[best_idx].score_card_ += to_string ("i%d", best_idx);
// debug quanting
me->set_property ("quant-score",
- scm_makfrom0str (qscores[best_idx].score_card_.to_str0 ()));
+ scm_makfrom0str (qscores[best_idx].score_card_.to_str0 ()));
}
#endif
#include "spanner.hh"
#include "warn.hh"
-bool debug_beam_quanting_flag;
-
#if DEBUG_QUANTING
#include "text-item.hh" // debug output.
#if (DEBUG_QUANTING)
SCM quant_score = me->get_property ("quant-score");
- if (debug_beam_quanting_flag
+ if (to_boolean (me->get_paper ()->lookup_variable (ly_symbol2scm ("debug-beam-quanting")))
&& ly_c_string_p (quant_score))
{
}
else if (var == ly_symbol2scm ("new-relative"))
lily_1_8_relative = false;
- else if (var == ly_symbol2scm ("debug-beam"))
- {
- debug_beam_quanting_flag = true;
- }
else
{
if (ly_c_symbol_p (var))
AF_FILES = $(wildcard *.af)
-EXTRA_DIST_FILES += README feta.tex cmr.enc.in
+EXTRA_DIST_FILES += README feta.tex
# We don't use $(MF_FILES), because there's more .mf cruft here
FETA_MF_FILES = $(wildcard feta[0-9]*.mf)\
def write_ly (self):
outf = open (self.basename () + '.ly', 'w')
outf.write (self.full_ly ())
+
+ open (self.basename() + '.txt', 'w').write("image of music")
+
def is_outdated (self):
base = self.basename ()
str = output[TEXINFO][BEFORE] % vars ()
for image in self.get_images ():
base, ext = os.path.splitext (image)
+
# URG, makeinfo implicitely prepends dot to ext
# specifying no extension is most robust
ext = ''
if not os.path.exists (i + '.eps') and os.path.exists (i + '.tex'):
to_eps (i)
ly.make_ps_images (i + '.eps', resolution=110)
+
# elif os.path.exists (i + '.ps'):
# ly.make_ps_images (i + '.ps', resolution=110)