]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.47
authorfred <fred>
Sun, 24 Mar 2002 20:06:03 +0000 (20:06 +0000)
committerfred <fred>
Sun, 24 Mar 2002 20:06:03 +0000 (20:06 +0000)
lily/include/linespace.hh
lily/include/spring-spacer.hh
lily/spring-spacer.cc

index 12058cfc8e3f9c47a5e87f93875626521dfee0c8..396c840a12b5a85e45b43b9668cefcb3338cf12c 100644 (file)
@@ -68,14 +68,6 @@ class Spacing_problem {
 
     void handle_loose_cols();
     void position_loose_cols (Vector &) const;
-   /**
-       add a idealspacing to the problem.
-      
-    One pair of columns can have no, one or more idealspacings,
-    since they can be "summed" if the columns to which #i# refers are
-    not in this problem, the spacing is ignored.
-    */
-    void add_ideal (Idealspacing const *i);
     void print_ideal (Idealspacing const *) const; 
     Vector try_initial_solution() const;
     void calcideal();
index 7d30e4493ada5904609b0365de048fd72ec700dd..04c9184f56ada169f9c916f4c682dd0c92f4560f 100644 (file)
@@ -69,14 +69,6 @@ class Spring_spacer : public Line_spacer {
 
   void handle_loose_cols();
   void position_loose_cols (Vector &) const;
-  /**
-    add a idealspacing to the problem.
-      
-    One pair of columns can have no, one or more idealspacings,
-    since they can be "summed" if the columns to which #i# refers are
-    not in this problem, the spacing is ignored.
-    */
-  void add_ideal (Idealspacing const *i);
   Vector try_initial_solution() const;
   void calc_idealspacing();
   void set_fixed_cols (Mixed_qp&) const;
index 2b030e6c71bc555cc0741cb7983883df846c786b..bf5a8094a52ff932d9b016ac27cae99ef30686d6 100644 (file)
@@ -531,15 +531,15 @@ Spring_spacer::calc_idealspacing()
          Real durational_distance = 0;
 
          
-             Moment delta_t =  scol_l (i+1)->when() - scol_l (i)->when () ;
+         Moment delta_t =  scol_l (i+1)->when() - scol_l (i)->when () ;
 
-             Real k=  paper_l()->arithmetic_constant(context_shortest_arr[i]);
-             /*
-               ugh should use shortest_playing distance
-               */
-             if (delta_t)
-               durational_distance =  paper_l()->duration_to_dist (delta_t,k);
-             symbol_distance += -cols[i+1].width_[LEFT];
+         Real k=  paper_l()->arithmetic_constant(context_shortest_arr[i]);
+         /*
+           ugh should use shortest_playing distance
+         */
+         if (delta_t)
+           durational_distance =  paper_l()->duration_to_dist (delta_t,k);
+         symbol_distance += -cols[i+1].width_[LEFT];
  
 
          ideal_arr_[i] = symbol_distance >? durational_distance;
@@ -574,32 +574,32 @@ Spring_spacer::calc_idealspacing()
          dist *= delta_t / shortest_playing_len;
 
          /*
-            According to [Ross] and [Wanske], and from what i've seen:
+           According to [Ross] and [Wanske], and from what i've seen:
             
-            * whitespace at the begin of the bar should be fixed at 
-            (about) one interline.
-            [Ross]:
-            when spacing gets real tight, a smaller fixed value may be 
-            used, so that there are two discrete amounts of whitespace 
-            possible at the begin of a bar; but this is not implemented 
-            right now.
+           * whitespace at the begin of the bar should be fixed at 
+           (about) one interline.
+           [Ross]:
+           when spacing gets real tight, a smaller fixed value may be 
+           used, so that there are two discrete amounts of whitespace 
+           possible at the begin of a bar; but this is not implemented 
+           right now.
             
-            * whitespace at the end of the bar is the normal amount of 
-            "hinterfleish" that would have been used, had there been
-            yet another note in the bar.  
-            [Ross]:
-            some editors argue that the bar line should not take any 
-            space, not to hinder the flow of music spaced around a bar 
-            line.  
-            [Ross] and [Wanske] do not suggest this, however.  Further, 
-            it introduces some spacing problems and think that it is ugly 
-            too.
-            [jcn]
-          */
+           * whitespace at the end of the bar is the normal amount of 
+           "hinterfleish" that would have been used, had there been
+           yet another note in the bar.  
+           [Ross]:
+           some editors argue that the bar line should not take any 
+           space, not to hinder the flow of music spaced around a bar 
+           line.  
+           [Ross] and [Wanske] do not suggest this, however.  Further, 
+           it introduces some spacing problems and think that it is ugly 
+           too.
+           [jcn]
+         */
 
          /* 
             first musical column of bar
-          */
+         */
          if (i && scol_l (i - 1)->breakable_b_)
            {
              // fixed: probably should set minimum (rod/spring)?
@@ -610,7 +610,7 @@ Spring_spacer::calc_idealspacing()
 
          /* 
             last musical column of bar
-          */
+         */
          if (i + 1 < cols.size () && scol_l(i+1)->breakable_b_)
            {
              // hmm, how bout?
@@ -621,8 +621,8 @@ Spring_spacer::calc_idealspacing()
                someone was junking this last "hinterfleisch" whitespace?!
 
                but this seems to be fixed now :-)
-              */
-              // set minimum rod 
+             */
+             // set minimum rod 
              cols[i].width_[RIGHT] += interline_f;
            }