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
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"
#
+pl 1.1.11.jcn1
+ - No path search for "" and "-"
+
pl 1.1.11
- template<> class P
- assoc elem() methods
{
fdebug << "looking for " << nm ;
+ if ( !nm.length_i() || ( nm == "-" ) )
+ return nm;
for (int i=0; i < size(); i++) {
String path = (*this)[i];
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_ );
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 ) {
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);
Notehead_register::Notehead_register()
{
note_p_ = 0;
- set_feature(Features::dir(0));
post_move_processing();
}
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()
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;
}
struct Notehead_register : Request_register {
Notehead* note_p_;
Rhythmic_req * note_req_l_;
- int dir_i_;
/* *************** */
Notehead_register();
virtual void process_requests();
virtual void pre_move_processing();
virtual void post_move_processing();
- void set_feature(Features);
NAME_MEMBERS(Notehead_register);
};
/*
- paper-def.hh -- declare
+ paper-def.hh -- declare Paper_def
source file of the LilyPond music typesetter
*/
-#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"
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);
};
#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);
};
/* *************** */
NAME_MEMBERS(Voice_registers);
+
virtual bool acceptable_request_b(Request*);
virtual void acknowledge_element(Staff_elem_info info);
virtual bool try_request(Request*);
#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)
{
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);