*/
-#include "accidental-placement.hh"
-#include "accidental-interface.hh"
+#include "accidental-placement.hh"
+#include "skyline.hh"
#include "music.hh"
-#include "note-collision.hh"
-#include "note-column.hh"
#include "pitch.hh"
-#include "pointer-group-interface.hh"
-#include "skyline.hh"
-#include "stream-event.hh"
#include "warn.hh"
+#include "note-column.hh"
+#include "pointer-group-interface.hh"
+#include "note-collision.hh"
+#include "accidental-interface.hh"
void
a->set_property ("X-offset", Grob::x_parent_positioning_proc);
SCM cause = a->get_parent (Y_AXIS)->get_property ("cause");
- Stream_event *mcause = unsmob_stream_event (cause);
+ Music *mcause = unsmob_music (cause);
if (!mcause)
{
- programming_error ("note head has no event cause");
+ programming_error ("note head has no music cause");
return;
}
return sign (ape_priority (a) - ape_priority (b));
}
-bool ape_less (Accidental_placement_entry *const &a,
- Accidental_placement_entry *const &b)
-{
- return ape_priority (a) < ape_priority (b);
-}
-
int ape_rcompare (Accidental_placement_entry *const &a,
Accidental_placement_entry *const &b)
{
{
vector<Accidental_placement_entry*> asc = *apes;
- vector_sort (asc, &ape_less);
+ vector_sort (asc, &ape_compare);
apes->clear ();
for (vsize i = note_cols.size (); i--;)
concat (heads, extract_grob_array (note_cols[i], "note-heads"));
- vector_sort (heads, less<Grob*> ());
+ vector_sort (heads, default_compare);
uniq (heads);
common[Y_AXIS] = common_refpoint_of_array (heads, common[Y_AXIS], Y_AXIS);