if (!col_)
{
col_ = make_item ("NoteCollision", SCM_EOL);
-
}
- for (int i = 0; i< note_columns_.size (); i++)
+ for (int i = 0; i < note_columns_.size (); i++)
Note_collision_interface::add_column (col_, note_columns_[i]);
}
void
Collision_engraver::acknowledge_grob (Grob_info i)
{
- if (Note_column::has_interface (i.grob_))
+ if (Note_column::has_interface (i.grob ()))
{
/*should check Y axis? */
- if (Note_column::has_rests (i.grob_) || i.grob_->get_parent (X_AXIS))
+ if (Note_column::has_rests (i.grob ()) || i.grob ()->get_parent (X_AXIS))
return;
- note_columns_.push (i.grob_);
+ note_columns_.push (i.grob ());
}
}
col_ = 0;
}
-
ADD_TRANSLATOR (Collision_engraver,
/* descr */ "Collect NoteColumns, and as soon as there are two or more, put them in a NoteCollision object.",
/* creats*/ "NoteCollision",