]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.1.0
authorfred <fred>
Sun, 24 Mar 2002 19:52:26 +0000 (19:52 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:52:26 +0000 (19:52 +0000)
18 files changed:
VERSION
bin/conflily
configure.in
lily/break.cc
lily/colhpos.cc
lily/include/const.hh
lily/include/performer-group-performer.hh
lily/include/performer.hh
lily/include/staff-performer.hh
lily/ineq-constrained-qp.cc
lily/note-performer.cc
lily/performer-group-performer.cc
lily/performer.cc
lily/score.cc
lily/spring-spacer.cc
lily/staff-performer.cc
lily/template5.cc
lily/wordwrap.cc

diff --git a/VERSION b/VERSION
index 85b19ba5497e6174423cc7c58818242494871c17..e014f462b8c18ae9d2eed09f879faf0693221c1b 100644 (file)
--- a/VERSION
+++ b/VERSION
@@ -1,7 +1,8 @@
 TOPLEVEL_MAJOR_VERSION = 0
-TOPLEVEL_MINOR_VERSION = 0
-TOPLEVEL_PATCH_LEVEL = 78
-# use to send patches, always empty for released version:
-# include separator: ".postfix", "-pl" makes rpm barf
+TOPLEVEL_MINOR_VERSION = 1
+TOPLEVEL_PATCH_LEVEL = 0
 
+# use to send patches, always empty for released version:
+# include separator: ".postfix", don't use -,
+# it makes rpm barf
 TOPLEVEL_MY_PATCH_LEVEL = 
index 2a495a1308a0c20f6e3576b0285c3c753b315b55..f63f8e972ff90e480363836e59e41905cab5826f 100644 (file)
@@ -31,5 +31,5 @@ if [ "x$LILYINCLUDE" = "x" ]; then
        echo "export PATH=$PATH:$lelie/current/bin/out/"
 fi
 
-configure --prefix=$root --enable-debugging --enable-printing --enable-checking
+configure --prefix=/usr --enable-debugging --enable-printing --enable-checking
 
index f209a26110e4e409ff05c6b7040d2d12fd1e8aef..4df3d11ff70293866c1b4382ae11a555e0b0dbfc 100644 (file)
@@ -315,11 +315,13 @@ END
 if test $warn_b = "yes" ; then
 cat <<EOF
     
-    *******************************
-    Warning: configure found errors. 
-    Please resolve these and rerun configure
-    before sending any bugreports.
-    *******************************
+    **************************************************
+    Warning: configure encountered warnings or errors.
+    Please try to resolve these, and rerun configure 
+    before sending a bugreport.
+    If you cannot resolve some warnings, the make 
+    process may still be succesful, but be warned.
+    **************************************************
     
 EOF
 fi
index fbda8d4279553612647bc2f734cfacf5ac71c254..8d3779e4da1eb7bdf842b343b9b2e4164e30d657 100644 (file)
@@ -53,7 +53,7 @@ Break_algorithm::stupid_solution(Line_of_cols curline)const
     Line_spacer *sp =generate_spacing_problem(curline);
     Col_hpositions colhpos;
     colhpos.cols = curline;
-    colhpos.energy = INFTY;
+    colhpos.energy = INFTY_f;
     colhpos.ugh_b_ = true;
     colhpos.config = sp->default_solution();
     delete sp;
index e96b3f99ad19c6d5d6a2ad5a50ad3622c8932a93..e87c22f3c56bea77f51258cf4fc1bbd5c4d4a88f 100644 (file)
@@ -6,7 +6,7 @@
 
 Col_hpositions::Col_hpositions()
 {
-    energy = INFTY;
+    energy = INFTY_f;
     ugh_b_ = false;
 }
 
index 80342a4450e77026b52d48c382b8bca2920648c5..4b45edc5972ee604ae64b673aa75a38a0c1fc754 100644 (file)
@@ -3,8 +3,11 @@
     */
 #ifndef CONST_HH
 #define CONST_HH
+#include <limits.h>
 #include <math.h>
 #include "real.hh"
 
 const Real INFTY=HUGE_VAL;
+const Real INFTY_f=(Real)INT_MAX;
+
 #endif
index ae87b68b197a07e1af96c2cf6a83fdc49e528670..fdca52a576725745d6a4dca6f1348806921c1a4b 100644 (file)
@@ -32,6 +32,11 @@ public:
     virtual bool do_try_request( Request* req_l );
     virtual bool try_request(Request*r) { return Performer::try_request(r) ; }
 
+    // <ugh>
+    virtual void set_track( int& track_i_r );
+    virtual int get_track_i() const;
+    // </ugh>
+
 protected:
 
     virtual Translator* find_get_translator_l( String name, String id );
@@ -46,8 +51,8 @@ protected:
 
     bool is_bottom_performer_b() const;
     virtual Performer_group_performer* find_performer_l( String name, String id );
-    
     virtual void do_print()const;
+
 private:
     Pointer_list<Performer*> perf_p_list_;
     
index f9b47a6f8452f0da5dd751cb741057b90c411cb3..35911605d9b795eddbd992c933246d906aac62a9 100644 (file)
@@ -28,6 +28,11 @@ public:
     virtual void process_requests();
 
     virtual void set( Moment mom );
+    // <ugh>
+    virtual void set_track( int& track_i_r );
+    virtual int get_track_i() const;
+    // </ugh>
+
     virtual bool try_request( Request* req_l );
 
     virtual void do_removal_processing();
index 9161c6322434d1db3de354d81ae0ea1d3d20b981..95c8721da8f69bf927aa040e678d7a22813a9fe7 100644 (file)
@@ -24,12 +24,18 @@ protected:
     virtual void play_event( Midi_item* l );
     virtual void do_removal_processing();
     virtual void do_creation_processing();
+    // <ugh>
+    virtual void set_track( int& track_i_r );
+    virtual int get_track_i() const;
+    // </ugh>
 
 private:
     void header();
 
     Moment midi_mom_;
     Midi_track* midi_track_p_;
+
+    int track_i_;
 };
 
 #endif // STAFF_PERFORMER_HH
index 8fed5146237da7d4db9902e4d59fa6613873c9e8..56d9a555ad90d7547e89aa214b6da800fcb16a52 100644 (file)
@@ -75,13 +75,14 @@ Ineq_constrained_qp::eval (Vector v)
 int
 min_elt_index(Vector v)
 {
-    Real m=INFTY; int idx=-1;
+    Real m=INFTY_f; 
+    int idx=-1;
     for (int i = 0; i < v.dim(); i++){
        if (v(i) < m) {
            idx = i;
            m = v(i);
        }
-       assert(v(i) <= INFTY);
+       assert(v(i) <= INFTY_f);
     }
     return idx;
 }
@@ -130,7 +131,7 @@ Ineq_constrained_qp::solve(Vector start) const
        if (direction.norm() > EPS) {
            mtor << act.status() << '\n';
            
-           Real minalf = INFTY;
+           Real minalf = INFTY_f;
 
            Inactive_iter minidx(act);
 
index 9caa6762317faa498faa8abfc17cd8ba1b5388fa..430e33c7c765ff06dfd5c30616dd366b17d29f2a 100644 (file)
@@ -47,7 +47,7 @@ Note_performer::process_requests()
        return;
 
     // ugh, need to know channel (===track===staff) too
-    int channel_i = 0;
+    int channel_i = get_track_i();
     Moment mom = get_mom();
     if ( !off_mom_ ) { // start note
        off_mom_ = mom + note_req_l_->duration();
index 3e3a745c22e6dde354118557ae06600a1d2de473..66471128e2dab1265d4566e311723f9f05d08c7a 100644 (file)
@@ -132,6 +132,26 @@ Performer_group_performer::process_requests()
        i->process_requests();
 }
 
+//<ugh>
+int
+Performer_group_performer::get_track_i() const
+{
+    int track_i = Performer::get_track_i();
+
+    for ( int i = 0; i < nongroup_l_arr_.size(); i++ )
+       nongroup_l_arr_[ i ]->set_track( track_i );
+    
+    return track_i;
+}
+
+void
+Performer_group_performer::set_track( int& track_i_r )
+{
+    for ( PCursor<Performer*> i( perf_p_list_.top() ); i.ok(); i++ )
+        i->set_track( track_i_r );
+}
+//</ugh>
+
 bool
 Performer_group_performer::do_try_request( Request* req_l )
 {
index e26f2ef2da57f5ccc52da1b62d3e4df0c6249440..5e15fc53d6c97d737ba27f153212eaa36aa7dfa2 100644 (file)
@@ -65,6 +65,19 @@ Performer::set( Moment )
 {
 } 
 
+//<ugh>
+int
+Performer::get_track_i() const
+{
+    return daddy_perf_l_->get_track_i();
+}
+
+void
+Performer::set_track( int& )
+{
+}
+//</ugh>
+
 bool 
 Performer::do_try_request( Request* req_l )
 {
index 77324c3879994123c95543650b22d8b9e22faee9..531c120f9989ed976b7b070a4337f490e423aa62 100644 (file)
@@ -58,7 +58,7 @@ Score::run_translator(Global_translator * trans_l)
 
     trans_l->start();
     while ( iter->ok() || trans_l->moments_left_i() ) {
-       Moment w = INFTY;
+       Moment w = INFTY_f;
        if (iter->ok() ) {
            w = iter->next_moment();
            iter->print();
index 0804161edd2a93981da3f9eca6fca8b0c86cca3d..7684e5de5f52bd9751a8cbd62ff710b92295ba33 100644 (file)
@@ -8,6 +8,7 @@
 
 
 #include <math.h>
+#include <limits.h>
 #include "spring-spacer.hh"
 #include "p-col.hh"
 #include "debug.hh"
@@ -95,8 +96,8 @@ Spring_spacer::position_loose_cols(Vector &sol_vec)const
     assert(sol_vec.dim());
     Array<bool> fix_b_arr;
     fix_b_arr.set_size(cols.size() + loose_col_arr_.size());
-    Real utter_right_f=-INFTY;
-    Real utter_left_f =INFTY;
+    Real utter_right_f=-INFTY_f;
+    Real utter_left_f =INFTY_f;
     for (int i=0; i < loose_col_arr_.size(); i++) {
        fix_b_arr[loose_col_arr_[i].rank_i_] = false;
     }
@@ -444,7 +445,7 @@ Spring_spacer::calc_idealspacing()
            }
            if ( d_iter.ok() && now >= d_iter.when()) {
                Durations_iter d2 = d_iter;
-               Moment shortest = INFTY;
+               Moment shortest = (Real)INT_MAX; //ugh INFTY;
                while (d2.ok() && d2.when() <= now) {
                    shortest = shortest <? d2.duration();
                    d2.next();
index b0368f9c4f91e45e391c629f029b93f3f5b8b05a..0d94d87ae758b5247f2816e08ee5b2396ac9e287 100644 (file)
@@ -56,7 +56,7 @@ Staff_performer::header()
     // lieve wendy, nu heb je mijn track_i_ / get_staff_i weggehaald...
     // zie ook note-performer: ugh
     // ugh, need to know channel (===track===staff) too
-    int channel_i = 0;
+    int channel_i = track_i_;
     Midi_instrument instrument( channel_i, instrument_str() );
     midi_track_p_->add( Moment( 0 ), &instrument );
 
@@ -79,3 +79,18 @@ Staff_performer::play_event( Midi_item* l )
     midi_track_p_->add( delta_t, l);
 }
 
+
+//<ugh>
+int
+Staff_performer::get_track_i() const
+{
+    return track_i_;
+}
+
+void
+Staff_performer::set_track( int& track_i_r )
+{
+    track_i_ = track_i_r++;
+}
+//</ugh>
+
index 68e30479d9ed68cb6ef1c108f2a69c76f3fea6b7..bffae6d08019ea74ec56c6caba297f00e467a10d 100644 (file)
@@ -17,8 +17,9 @@
 Interval__instantiate(Rational);
 Interval__instantiate(int);
 
-#ifdef AIX
-const Real INFTY = 1e8;        // ARGh. AIX sucks
+const Real INFTY_f = (Real)INT_MAX;
+#if defined AIX || defined _WIN32
+const Real INFTY = 1e8;        // ARGh. AIX sucks -- so does doze
 #else
 const Real INFTY = HUGE_VAL;
 #endif
index 8653c071e9dec7cdaa8b14d28488abdae514e246..7d25bb9e94cb3025f9e3a5b3d6cc633082b82a31 100644 (file)
@@ -57,7 +57,7 @@ Word_wrap::do_solve()const
                    current = stupid_solution(current.cols);
                    current.energy = - 1; // make sure we break out.
                } else
-                   current.energy = INFTY;     // make sure we go back
+                   current.energy = INFTY_f;   // make sure we go back
            } else {
                current = solve_line(current.cols);
                current.print();