]> git.donarmstrong.com Git - lilypond.git/commitdiff
* lily/include/scm-hash.hh (class Scheme_hash_table): idem.
authorHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 6 Jan 2004 00:56:13 +0000 (00:56 +0000)
committerHan-Wen Nienhuys <hanwen@xs4all.nl>
Tue, 6 Jan 2004 00:56:13 +0000 (00:56 +0000)
* flower/include/interval.hh: rename elem_b to contains

* lily/lyric-extender.cc (brew_molecule): use heads for width, use
minimum-length for short ones, and shorten so collisions with the
next syllable are avoided.

* lily/beam-quanting.cc (score_slopes_dy): add extra points for
near-zero slopes.
Only do DAMPING_DIRECTION_PENALTY for non-horizontal dy

ChangeLog
flower/include/interval.hh
lily/beam-quanting.cc
lily/beam.cc
lily/include/scm-hash.hh
lily/scm-hash.cc
lily/translator-group.cc

index f91929957c368d43d0a970085746cdff3b794bf8..903521b6ea35f888701f9bbd6e62800e9cf9b9e3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2004-01-06  Han-Wen Nienhuys   <hanwen@cs.uu.nl>
 
+       * lily/include/scm-hash.hh (class Scheme_hash_table): idem.
+
+       * flower/include/interval.hh: rename elem_b to contains 
+
        * lily/tie.cc: change 'heads to 'head-pair.
 
        * lily/lyric-phrasing-engraver.cc (process_acknowledged_grobs):
index df96ce3966e7edc4447ec087674f7a370563cb31..413b6b78d5ca164deecca23f854a6b355aaf0dab 100644 (file)
@@ -92,7 +92,7 @@ struct Interval_t : public Drul_array<T> {
   }
   String to_string () const;    
 
-  bool elem_b (T r);
+  bool contains (T r);
   void negate () {
     T r = -elem (LEFT);
     T l = -elem (RIGHT);
index 550a0a877c92197c8ce71967618b9e793513584b..aff6e7bf8de8413fc9a16984a1131c3fb748d1d8 100644 (file)
@@ -457,7 +457,7 @@ Beam::score_forbidden_quants (Real yl, Real yr,
          gap.add_point (gap1);
          gap.add_point (gap2);
 
-         if (gap.elem_b (radius))
+         if (gap.contains (radius))
            dem += extra_demerit;
        }
       while ((flip (&d))!= LEFT); 
index 5361db25b50bd17f2dc988eb25bb67c6c3e8e40e..03daef5faa7c7807e37a1d309a6886935afa5c03 100644 (file)
@@ -1004,7 +1004,7 @@ Beam::shift_region_to_valid (SCM grob)
     {
       warning (_("Not sure that we can find a nice beam slope (no viable initial configuration found)."));
     }
-  else if (!feasible_left_point.elem_b(y))
+  else if (!feasible_left_point.contains (y))
     {
       if (isinf (feasible_left_point[DOWN]))
        y = feasible_left_point[UP] - REGION_SIZE;
index f58304d834f684a32dcb98e646f6a9c2bdc8c10a..289f9d779c15885d7763c6576aaefaac4c77fb0f 100644 (file)
@@ -41,7 +41,7 @@ class Scheme_hash_table
 {  
 public:
   bool try_retrieve (SCM key, SCM *val);
-  bool elem_b (SCM key) const;
+  bool contains (SCM key) const;
 
   /**
      WARNING: putting something in assumes responsibility for cleaning
index 1a49a39b549f4e4b75785e58efa594e7d2db52f3..60d8fbbe7d3caf9c162fe5079393423905731413 100644 (file)
@@ -93,7 +93,7 @@ Scheme_hash_table::try_retrieve (SCM k, SCM *v)
 }
 
 bool
-Scheme_hash_table::elem_b (SCM k) const
+Scheme_hash_table::contains (SCM k) const
 {
   return ly_pair_p (scm_hashq_get_handle (hash_tab_, k));
 }
index 4a6109881a0694538d8a7f124165d18198515271..b9b3b33dedca69e2b02b6c87b9442f79aa0f4935 100644 (file)
@@ -264,7 +264,7 @@ Translator_group::each (Method_pointer method)
 Translator_group*
 Translator_group::where_defined (SCM sym) const
 {
-  if (properties_dict ()->elem_b (sym))
+  if (properties_dict ()->contains (sym))
     {
       return (Translator_group*)this;
     }