From: Han-Wen Nienhuys Date: Mon, 20 May 2002 11:48:55 +0000 (+0000) Subject: small fixes X-Git-Tag: release/1.5.58~9 X-Git-Url: https://git.donarmstrong.com/?a=commitdiff_plain;h=75657b2ffb064eecba936d2b6e6aab315f7819f5;p=lilypond.git small fixes --- diff --git a/ChangeLog b/ChangeLog index b024226714..2ff2c64240 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,14 @@ +2002-05-20 Han-Wen + + * lily/note-head.cc (internal_brew_molecule): warn if note head + not found. + + * lily/time-signature.cc (special_time_signature): remove warning + about time signature. + + * lily/spacing-spanner.cc (musical_column_spacing): Prevent + reverse springs by limiting fixed-note space. + 2002-05-19 Jan Nieuwenhuizen * stepmake/aclocal.m4: Bugfix: complain if program not found. diff --git a/input/regression/mensural.ly b/input/regression/mensural.ly index 4f4162e0b1..981630cf31 100644 --- a/input/regression/mensural.ly +++ b/input/regression/mensural.ly @@ -1,10 +1,16 @@ \version "1.3.146" \header { -texidoc = "There is limited support for mensural notation: note head shapes are available. Mensural stems are centered on the note heads, both for up and down stems." + +texidoc = "There is limited support for mensural notation: note head +shapes are available. Mensural stems are centered on the note heads, +both for up and down stems." + } + \score {\notes { \context Voice { -\property Voice.NoteHead \override #'style = #'mensural + \property Voice.NoteHead \set #'font-family = #'ancient + \property Voice.NoteHead \override #'style = #'mensural \transpose d''' { c4 c2 c8 c16 c16 c1 c\breve c\longa } \transpose c'' { c4 c2 c8 c16 c16 c1 c\breve c\longa } }}} diff --git a/lily/note-collision.cc b/lily/note-collision.cc index fa977fda00..8dcbae3d2c 100644 --- a/lily/note-collision.cc +++ b/lily/note-collision.cc @@ -426,6 +426,6 @@ ADD_INTERFACE (Note_collision_interface, "note-collision-interface", "An object that handles collisions between notes with different stem directions and horizontal shifts. Most of the interesting properties are to be set in @ref{note-column-interface}: these are -@code{force-hshift} and @{horizontal-shift}. +@code{force-hshift} and @code{horizontal-shift}. ", "merge-differently-dotted merge-differently-headed collision-done"); diff --git a/lily/note-head.cc b/lily/note-head.cc index 1967691f0e..2b2983be92 100644 --- a/lily/note-head.cc +++ b/lily/note-head.cc @@ -81,13 +81,8 @@ Note_head::brew_ledger_lines (Grob *me, +0.5*(ledgerlinethickness)); Box ledger_line (x_extent, y_extent); -#if 1 Molecule proto_ledger_line = Lookup::roundfilledbox (ledger_line, blotdiameter); -#else - Molecule proto_ledger_line = // if you like it the old way - Lookup::filledbox (ledger_line); -#endif if (!take_space) proto_ledger_line.set_empty (true); @@ -127,7 +122,11 @@ internal_brew_molecule (Grob *me, bool ledger_take_space) SCM_UNDEFINED); String name = "noteheads-" + ly_scm2string (scm_primitive_eval (exp)); Molecule out = Font_interface::get_default_font (me)->find_by_name (name); - + if (out.empty_b()) + { + warning (_f("Symbol not found, ", name.ch_C())); + } + int interspaces = Staff_symbol_referencer::line_count (me)-1; int pos = (int)rint (Staff_symbol_referencer::position_f (me)); if (abs (pos) - interspaces > 1) diff --git a/lily/spacing-spanner.cc b/lily/spacing-spanner.cc index 57c2a1f4b5..2d5204918c 100644 --- a/lily/spacing-spanner.cc +++ b/lily/spacing-spanner.cc @@ -508,7 +508,8 @@ Spacing_spanner::do_measure (Rational shortest, Grob*me, Link_array *cols) /* - Generate the space between two musical columns LC and RC, given spacing parameters INCR and SHORTEST. + Generate the space between two musical columns LC and RC, given + spacing parameters INCR and SHORTEST. */ void Spacing_spanner::musical_column_spacing (Grob *me, Item * lc, Item *rc, Real increment, Rational shortest) @@ -552,10 +553,20 @@ Spacing_spanner::musical_column_spacing (Grob *me, Item * lc, Item *rc, Real inc if (max_note_space < 0) { max_note_space = base_note_space; - max_fixed_note_space = increment; + max_fixed_note_space = increment; } bool ragged = to_boolean (me->paper_l ()->get_scmvar ("raggedright")); + + /* + Whatever we do, the fixed space is smaller than the real + space. + + TODO: this criterion is discontinuous in the derivative. + Maybe it should be continuous? + */ + max_fixed_note_space = max_fixed_note_space "