]> git.donarmstrong.com Git - lilypond.git/commitdiff
lilypond-0.0.52
authorfred <fred>
Sun, 24 Mar 2002 19:39:26 +0000 (19:39 +0000)
committerfred <fred>
Sun, 24 Mar 2002 19:39:26 +0000 (19:39 +0000)
12 files changed:
.version
flower/.version
flower/NEWS
flower/path.cc
lib/source-file.cc
lib/source.cc
lily/head-reg.cc
lily/include/head-reg.hh
lily/include/paper-def.hh
lily/include/slur-reg.hh
lily/include/voice-regs.hh
lily/slur-reg.cc

index 0e2c17ca28d7d73fd9254db74ecebb3d3230a5a0..1457d1972e812d7d3bb929cb227c14f1f64f0534 100644 (file)
--- a/.version
+++ b/.version
@@ -1,6 +1,6 @@
 TOPLEVEL_MAJOR_VERSION = 0
 TOPLEVEL_MINOR_VERSION = 0
-TOPLEVEL_PATCH_LEVEL = 51
+TOPLEVEL_PATCH_LEVEL = 52
 # use to send patches, always empty for released version:
 # include separator: ".postfix", "-pl" makes rpm barf
 
index 53a4af6a089909a9fdd357c53c17769f13c4f99d..8b50ae31c53a140c199e703ea6800849cadcf3e3 100644 (file)
@@ -1,6 +1,6 @@
 MAJOR_VERSION = 1
 MINOR_VERSION = 1
-PATCH_LEVEL = 11
+PATCH_LEVEL = 12
 # use to send patches, always empty for released version:
 MY_PATCH_LEVEL = # include separator: "-1" or ".a"
 #
index 1f489e042f2f67d29dc0ca143645c8859ecbfb57..d0c64e59dd39936655b1197b78fd9f4949542baa 100644 (file)
@@ -1,3 +1,6 @@
+pl 1.1.11.jcn1
+       - No path search for "" and "-"
+
 pl 1.1.11
        - template<> class P
        - assoc elem() methods
index a0bbaca44f472dd14736ad7a5853896a40dbd3fa..3a2e5dfbc0abf56648f251c70ffe53af1f57c49b 100644 (file)
@@ -65,6 +65,8 @@ File_path::find(String nm)const
 
 {
     fdebug << "looking for " << nm ;
+    if ( !nm.length_i() || ( nm == "-" ) )
+       return nm;
     for (int i=0; i < size(); i++) {
 
         String path  = (*this)[i];
index fe56cb3551df5e71e2ece32455adb04232bef97b..8f28f9b5f5bb857b5776f41c0f38da662f65426c 100644 (file)
@@ -33,13 +33,15 @@ Source_file::Source_file( String filename_str )
     istream_p_ = 0;
 
     open();
-    map();
+    if ( fildes_i_ > 0 )
+       map();
 }
 
 istream*
 Source_file::istream_l()
 {
-    assert( fildes_i_ );
+    if ( !fildes_i_ )
+       return &cin;
     if ( !istream_p_ ) {
        if ( size_off_ ) // can-t this be done without such a hack?
            istream_p_ = new istrstream( ch_C(), size_off_ );
@@ -165,6 +167,11 @@ Source_file::name_str()
 void
 Source_file::open()
 {
+    if ( !name_str_.length_i() || ( name_str_ == "-" ) ) {
+       fildes_i_ = 0;
+       return;
+    }
+
     fildes_i_ = ::open( name_str_, O_RDONLY ); 
            
     if ( fildes_i_ == -1 ) {
index 3247c8d82c11d262af148cd8a612fc6dcdb23855..8901c8f7934f123245d0084ac882affcfa1ec574 100644 (file)
@@ -26,17 +26,18 @@ Sources::set_path(File_path *f_C)
   open a file
 
   @param file_str the file to be opened, name might be changed if it
-  is found in a search path.
+  is found in a search path. UGH!
 
   @return 0 if no file found
   */
 Source_file*
-Sources::get_file_l(String &file_str )
+Sources::get_file_l(String &file_str ) //UGH
 {
     if (path_C_){
-       file_str = path_C_->find(file_str); 
-       if (file_str== "")
+       String file_str_o = path_C_->find(file_str); 
+       if ( ( file_str_o == "" ) && ( file_str != "" ) )
            return 0;
+       file_str = file_str_o;
     }
     Source_file * f_p= (!binary_b_) ?
        new Source_file(file_str) : new Binary_source_file(file_str);
index fd84da697414664f053d3609df8b3b75081500e3..a0a5676a74b92267bae846a5e0da77aa8728b48a 100644 (file)
@@ -13,7 +13,6 @@
 Notehead_register::Notehead_register()
 {
     note_p_ = 0;
-    set_feature(Features::dir(0));
     post_move_processing();
 }
 
@@ -27,12 +26,6 @@ Notehead_register::try_request(Request *req_l)
 
     return true;
 }
-void
-Notehead_register::set_feature(Features d)
-{
-    if(d.direction_i_ || d.initialiser_b_)
-       dir_i_ = d.direction_i_;
-}
 
 void
 Notehead_register::process_requests()
@@ -63,9 +56,6 @@ void
 Notehead_register::pre_move_processing()
 {
     if (note_p_) {
-       if (dir_i_ && note_p_->rest_b_ ) {
-           note_p_->position +=4*dir_i_ ;
-       }
        typeset_element(note_p_);
        note_p_ = 0;
     }
index 188db10a26ec04b49f2f873fbc39628964c23d71..09941a0554217aefb07629f14f5f8b2d2b9f08a9 100644 (file)
@@ -12,7 +12,6 @@
 struct Notehead_register : Request_register {
     Notehead* note_p_;
     Rhythmic_req * note_req_l_;
-    int dir_i_;
     
     /* *************** */
     Notehead_register();
@@ -20,7 +19,6 @@ struct Notehead_register : Request_register {
     virtual void process_requests();
     virtual void pre_move_processing();
     virtual void post_move_processing();
-    void set_feature(Features);
     NAME_MEMBERS(Notehead_register);
 };
 
index 5086a0ff0c0178ba1bb5f816800ab3e861e8b2f5..cb1c5cbea95aaf15a5f292a92756d303ae77dc28 100644 (file)
@@ -1,5 +1,5 @@
 /*
-  paper-def.hh -- declare 
+  paper-def.hh -- declare Paper_def
 
   source file of the LilyPond music typesetter
 
@@ -7,8 +7,8 @@
 */
 
 
-#ifndef Paper_def_HH
-#define Paper_def_HH
+#ifndef PAPER_DEF_HH
+#define PAPER_DEF_HH
 #include "proto.hh"
 #include "real.hh"
 #include "string.hh"
@@ -41,13 +41,27 @@ public:
     void set(Lookup*);
     ~Paper_def();
     Paper_def(Paper_def const&);
+    /**
+      The distance between lines
+     */
     Real interline()const;
+    /// half the distance between lines
     Real internote()const;
+
+    /// thickness of the standard line 
     Real rule_thickness()const;
+
+    /// height of the staff
     Real standard_height()const;
+
+    /// width of a quaver ball
     Real note_width() const;
     void print() const;
     Lookup const * lookup_l(); // TODO naming
+
+    /** convert a duration to an idealspacing
+      influence using the geometric_ and whole_width parameters.
+      */
     Real duration_to_dist(Moment);
 };
 
index e357c8795ef99b04c1ad8f720d0bb8a85dfed26b..f53ed992b3564d6cfde1c73f36e2508aa9a6ac70 100644 (file)
 
 #include "register.hh"
 
-struct Slur_register : Request_register {
+class Slur_register :public Request_register {
     Array<Slur_req*> requests_arr_;
     Array<Slur_req*> new_slur_req_l_arr_;
     Array<Slur *> slur_l_stack_;
     Array<Slur*> end_slur_l_arr_;
 
-    int dir_i_;
-    
     /* *************** */
-    ~Slur_register();
-    Slur_register();
+protected:
+    virtual ~Slur_register();
     virtual bool try_request(Request*);
     virtual void process_requests();
     virtual void acknowledge_element(Staff_elem_info);
     virtual void pre_move_processing();
     virtual void post_move_processing();
-    virtual void set_feature(Features);
+public:
     NAME_MEMBERS(Slur_register);
 };
 
index 8b565f77357fb382339c1553414984e4ee9c6bb7..4172a8385e9108dc297b5ce4a18f7d364dcf6044 100644 (file)
@@ -19,6 +19,7 @@ public:
     /* *************** */
 
     NAME_MEMBERS(Voice_registers);
+
     virtual bool acceptable_request_b(Request*);
     virtual void acknowledge_element(Staff_elem_info info);
     virtual bool try_request(Request*);
index 0921ef27f077b0507de63433fcb8fbdd62b1fdb0..9498dd4c7c2b667a6492959c22819957a7e0db9d 100644 (file)
 #include "debug.hh"
 #include "notehead.hh"
 
-void
-Slur_register::set_feature(Features i)
-{
-    dir_i_ = i.direction_i_;
-}
-
-Slur_register::Slur_register()
-{
-    set_feature(Features::dir(0));
-}
-
 bool
 Slur_register::try_request(Request *req_l)
 {
@@ -80,8 +69,6 @@ void
 Slur_register::pre_move_processing()
 {
     for (int i = 0; i < end_slur_l_arr_.size(); i++) {
-       if (dir_i_) 
-           end_slur_l_arr_[i]->dir_i_ = dir_i_;
        typeset_element(end_slur_l_arr_[i]);
     }
     end_slur_l_arr_.set_size(0);