slurring from/to beams.
* ly/lilypond-book-preamble.ly: new file.
* lily/slur.cc: add inspect-index feature.
+2006-06-14 Han-Wen Nienhuys <hanwen@lilypond.org>
+
+ * lily/stem.cc (get_beaming): return max of scm_ilength. Fixes
+ slurring from/to beams.
+
+ * ly/lilypond-book-preamble.ly: new file.
+
+ * lily/slur.cc: add inspect-index feature.
+
2006-06-13 Graham Percival <gpermus@gmail.com>
* Documentation/user/tutorial.itely: trivial fix.
format.
* lily/stem.cc (calc_stem_end_position): calc quantized-positions
- for beamed case. Backportme.
+ for beamed case.
* lily/note-spacing.cc (stem_dir_correction): don't inspect
- stem_end_position, but estimate instead. Backportme.
+ stem_end_position, but estimate instead.
* lily/tuplet-bracket.cc (calc_positions): look at
stem-end-position for tuplet bracket slope. Fixes sloped tuplet
- brackets narrower than beams. Backportme.
+ brackets narrower than beams.
* lily/lexer.ll: set version-seen? even if version is
- INVALID. Backportme.
+ INVALID.
* lily/rest.cc (y_offset_callback): bugfix: decide position
override based on scm_is_number(). Fixes \rest on center staff
- line. Backportme.
+ line.
* lily/beaming-pattern.cc (best_splitpoint_index): fix beaming
patterns for 16th triplets.
bool debug_slurs = to_boolean (slur_->layout ()
->lookup_variable (ly_symbol2scm ("debug-slur-scoring")));
SCM inspect_quants = slur_->get_property ("inspect-quants");
+ SCM inspect_index = slur_->get_property ("inspect-index");
if (debug_slurs
- && scm_is_pair (inspect_quants))
+ && scm_is_integer (inspect_index))
+ {
+ opt_idx = scm_to_int (inspect_index);
+ configurations_[opt_idx]->calculate_score (*this);
+ opt = configurations_[opt_idx]->score ();
+ }
+ else if (debug_slurs
+ && scm_is_pair (inspect_quants))
{
opt_idx = get_closest_index (inspect_quants);
configurations_[opt_idx]->calculate_score (*this);
"eccentricity "
"encompass-objects "
"height-limit "
+ "inspect-quants "
+ "inspect-index "
"line-thickness "
"note-columns "
"positions "
"quant-score "
"ratio "
"thickness "
-
);
return 0;
SCM lst = index_get_cell (pair, d);
- return scm_ilength (lst);
+
+ int len = scm_ilength (lst);
+ return max (len, 0);
}
Interval
#(define toplevel-scores '())
#(define output-count 0)
#(define $defaultheader #f)
-#(define version-seen? #f)
+#(define version-seen #f)
\maininput
%% there is a problem at the end of the input file
(not (ly:get-option 'old-relative-used)))
(old-relative-not-used-message input-file-name))%% there is a problem at the end of the input file
-#(if (and (not version-seen?)
+#(if (and (not version-seen)
(defined? 'input-file-name))
(version-not-seen-message input-file-name))
--- /dev/null
+
+
+#(set! toplevel-score-handler print-score-with-defaults)
+#(set! toplevel-music-handler
+ (lambda (p m)
+ (if (not (eq? (ly:music-property m \'void) #t))
+ (print-score-with-defaults
+ p (scorify-music m p)))))
+
+#(ly:set-option (quote no-point-and-click))
+#(define inside-lilypond-book #t)
+#(define version-seen #t)
Choices are @code{around}, @code{inside}, @code{outside}. If unset, script
and slur ignore eachother.")
(inspect-quants ,number-pair? "If debugging is set,
-set beam quant to this position, and print the respective scores.")
+set beam/slur quant to this position, and print the respective scores.")
+ (inspect-index ,integer? "If debugging is set,
+set beam/slur configuration to this index, and print the respective scores.")
(implicit ,boolean? "Is this an implicit bass figure?")
(keep-inside-line ,boolean? "If set, this column cannot have
things sticking into the margin.")