const. Note that the proper order C<Type const> i.s.o. C<const Type>
+=item C<C>
+
+A const pointer. This would be equivalent to C<_c_l>, but since any
+"const" pointer has to be a link (you can't delete a const pointer),
+it is superfluous.
+
=item C<l>
temporary pointer to object (link)
{
if (bar_req_l_ ) {
bar_p_ = new Bar(bar_req_l_->type_str_);
- } else if (!get_staff_info().time_c_l_->whole_in_measure_) {
+ } else if (!get_staff_info().time_C_->whole_in_measure_) {
bar_p_ = new Bar("|");
}
Clef_register::read_req(Clef_change_req*c_l)
{
if (!set_type(c_l->clef_str_))
- error("unknown clef type ", c_l->defined_ch_c_l_);
+ error("unknown clef type ", c_l->defined_ch_C_);
}
bool
void
Clef_register::process_requests()
{
- Time_description const *time_l = get_staff_info().time_c_l_;
+ Time_description const *time_l = get_staff_info().time_C_;
if (!clef_req_l_ && (!time_l->whole_in_measure_|| !time_l->when_)) {
clef_p_ = new Clef_item;
clef_p_->change = false;
/// the total music def of one movement
struct Input_score {
/// defined where?
- char const * defined_ch_c_l_;
+ char const * defined_ch_C_;
int errorlevel_i_;
/// paper_, staffs_ and commands_ form the problem definition.
struct Input_staff {
- char const * defined_ch_c_l_;
+ char const * defined_ch_C_;
String type;
IPointerList<Input_music*> music_;
struct Local_key_register : Request_register {
Local_key local_key_;
Local_key_item* key_item_p_;
- Key const *key_c_l_;
+ Key const *key_C_;
/* *************** */
virtual void process_requests();
virtual void acknowledge_element(Staff_elem_info);
class Request {
public:
Voice_element*elt_l_;
- char const* defined_ch_c_l_;
+ char const* defined_ch_C_;
/* *************** */
Voice * voice_l();
IPointerList<Score_column*> cols_;
PScore *pscore_p_;
- char const *defined_ch_c_l_;
+ char const *defined_ch_C_;
int errorlevel_i_;
/* *************************************************************** */
struct Staff_info {
int *c0_position_i_;
Staff_walker *walk_l_;
- Time_description const *time_c_l_;
- Rhythmic_grouping const *rhythmic_c_l_;
+ Time_description const *time_C_;
+ Rhythmic_grouping const *rhythmic_C_;
bool break_allowed_b_;
};
int align_i_;
String text_str_;
String style_str_;
- char const* defined_ch_c_l_;
+ char const* defined_ch_C_;
/* *************** */
*the requests, */
struct Voice_element {
Moment duration;
- char const* defined_ch_c_l_;
+ char const* defined_ch_C_;
Voice const *voice_l_;
IPointerList<Request*> reqs;
if ( i->plet() ) {
Moment start_moment = 0;
if ( !find_plet_start_bo( i->plet()->type_c_, start_moment ) ) {
- error( "begin of plet not found", i->defined_ch_c_l_ );
+ error( "begin of plet not found", i->defined_ch_C_ );
break;
}
Moment moment = 0;
{
paper_p_ = (s.paper_p_)? new Paper_def(*s.paper_p_) :0;
midi_p_ = (s.midi_p_)? new Midi_def(*s.midi_p_) : 0;
- defined_ch_c_l_ = s.defined_ch_c_l_;
+ defined_ch_C_ = s.defined_ch_C_;
errorlevel_i_ = s.errorlevel_i_;
}
Input_score::parse()
{
Score *s_p = new Score;
- s_p->defined_ch_c_l_= defined_ch_c_l_;
+ s_p->defined_ch_C_= defined_ch_C_;
s_p->errorlevel_i_ = errorlevel_i_;
if (midi_p_)
s_p->set(new Midi_def(*midi_p_));
Input_score::Input_score()
{
- defined_ch_c_l_=0;
+ defined_ch_C_=0;
paper_p_= 0;
midi_p_ = 0;
errorlevel_i_ = 0;
Input_staff::Input_staff(String s)
{
type= s;
- defined_ch_c_l_ = 0;
+ defined_ch_C_ = 0;
}
void
else if (type == "lyric")
p = new Lyric_staff;
else {
- error( "Unknown staff-type `" + type +"\'", defined_ch_c_l_ );
+ error( "Unknown staff-type `" + type +"\'", defined_ch_C_ );
exit( 1 );
}
{
for (iter_top(s.music_,i); i.ok(); i++)
add(i->clone());
- defined_ch_c_l_ = s.defined_ch_c_l_;
+ defined_ch_C_ = s.defined_ch_C_;
type = s.type;
}
void
Key_register::process_requests()
{
- Time_description const *time_l = get_staff_info().time_c_l_;
+ Time_description const *time_l = get_staff_info().time_C_;
if (!keyreq_l_ &&
(!time_l->whole_in_measure_|| !time_l->when_)) {
Local_key_register::Local_key_register()
{
key_item_p_ = 0;
- key_c_l_ = 0;
+ key_C_ = 0;
}
void
} else if (info.elem_p_->name()==Key_item::static_name()) {
Key_register * key_reg_l =
(Key_register*)info.origin_reg_l_arr_[0];
- key_c_l_ = &key_reg_l->key_;
- local_key_.reset(*key_c_l_);
+ key_C_ = &key_reg_l->key_;
+ local_key_.reset(*key_C_);
}
}
void
Local_key_register::process_requests()
{
- Time_description const * time_c_l_ = get_staff_info().time_c_l_;
- if (! time_c_l_->whole_in_measure_){
- if (key_c_l_)
- local_key_.reset(*key_c_l_);
- else if( time_c_l_->when_ >Moment(0))
+ Time_description const * time_C_ = get_staff_info().time_C_;
+ if (! time_C_->whole_in_measure_){
+ if (key_C_)
+ local_key_.reset(*key_C_);
+ else if( time_C_->when_ >Moment(0))
warning ("Help me! can't figure current key", 0);
}
}
number_i_ = number_i;
- char const* data_ch_c_l = ""
+ char const* data_ch_C = ""
// "00" "ff58" "0404" "0218" "08"
// "00" "ff51" "0307" "a120"
// why a key at all, in midi?
String data_str;
// only for format 0 (currently using format 1)?
- data_str += String_convert::hex2bin_str( data_ch_c_l );
+ data_str += String_convert::hex2bin_str( data_ch_C );
- char const* footer_ch_c_l = "00" "ff2f" "00";
- String footer_str = String_convert::hex2bin_str( footer_ch_c_l );
+ char const* footer_ch_C = "00" "ff2f" "00";
+ String footer_str = String_convert::hex2bin_str( footer_ch_C );
set( "MTrk", data_str, footer_str );
}
// 00 01 one track
// 00 60 96 per quarter-note
-// char const ch_c_l = "0000" "0006" "0001" "0001" "0060";
-// str += String_convert::hex2bin_str( ch_c_l );
+// char const ch_C = "0000" "0006" "0001" "0001" "0060";
+// str += String_convert::hex2bin_str( ch_C );
// *os_p_ << str;
// *this << Midi_header( 1, 1, tempo_i_ );
*mlog << "\nSetting up music ..." << flush;
if (last() == Moment(0)) {
errorlevel_i_ |= 1;
- error("Need to have music in a score.", defined_ch_c_l_);
+ error("Need to have music in a score.", defined_ch_C_);
}
for (iter_top(staffs_,i); i.ok(); i++) {
paper_p_ = 0;
midi_p_ = 0;
errorlevel_i_ = 0;
- defined_ch_c_l_ = 0;
+ defined_ch_C_ = 0;
}
Score::~Score()
the_output << "% outputting Score, defined at: " <<
source_l_g->
- sourcefile_l (defined_ch_c_l_)->file_line_no_str(defined_ch_c_l_) << "\n";
+ sourcefile_l (defined_ch_C_)->file_line_no_str(defined_ch_C_) << "\n";
pscore_p_->output(the_output);
}
Input_score* &is_p = score_array_global[i];
if (is_p->errorlevel_i_) {
warning("Score contains errors. Will not process it. ",
- is_p->defined_ch_c_l_);
+ is_p->defined_ch_C_);
delete is_p;
continue;
}
if (slur_req_l->spantype == Span_req::STOP) {
if (slur_l_stack_.empty())
warning("can't find slur to end",
- slur_req_l->defined_ch_c_l_);
+ slur_req_l->defined_ch_C_);
else {
end_slur_l_arr_.push(slur_l_stack_.pop());
requests_arr_.pop();
Slur_register::~Slur_register()
{
for (int i=0; i < requests_arr_.size(); i++) {
- warning("unterminated slur", requests_arr_[i]->defined_ch_c_l_);
+ warning("unterminated slur", requests_arr_[i]->defined_ch_C_);
}
}
if (tr_l->partial()) {
time_.setpartial(tr_l->partial()->duration_);
} else if (tr_l->barcheck() && time_.whole_in_measure_) {
- warning( "Barcheck failed", tr_l->defined_ch_c_l_ );
+ warning( "Barcheck failed", tr_l->defined_ch_C_ );
} else if (tr_l->cadenza()) {
time_.set_cadenza(tr_l->cadenza()->on_b_);
} else if (tr_l->measuregrouping()) {
{
align_i_ = 1; // right
style_str_ = "roman";
- defined_ch_c_l_ = 0;
+ defined_ch_C_ = 0;
}
bool
Text_def::compare(Text_def const &def)
change_group(cr_l->groupchange(), 0, 0);
} else
warning("junking request: " + String(r->name()),
- r->defined_ch_c_l_);
+ r->defined_ch_C_);
}
return b;
}
inf.break_allowed_b_ = walk_l_->score_walk_l_->break_allowed_b();
inf.c0_position_i_ = &walk_l_->c0_position_i_;
inf.walk_l_ = walk_l_;
- inf.time_c_l_ = &walk_l_->time_;
- inf.rhythmic_c_l_ = walk_l_->default_grouping;
+ inf.time_C_ = &walk_l_->time_;
+ inf.rhythmic_C_ = walk_l_->default_grouping;
}
Paper_def*