2 collision.hh -- declare Collision
4 source file of the GNU LilyPond music typesetter
6 (c) 1997--2000 Han-Wen Nienhuys <hanwen@cs.uu.nl>
13 #include "lily-proto.hh"
14 #include "lily-guile.hh"
18 Resolve conflicts between various Note_columns (chords).
22 * multistaff support (see Chlapik: equal noteheads should be on the
25 * Make interface of this, similar to align-interface.
29 elements -- (see Axis_group_interface)
31 merge-differently-dotted -- merge black noteheads with differing dot count.
33 horizontal-shift -- integer that identifies ranking of note-column for horizontal shifting.
35 force-hshift -- amount of collision_note_width that overides automatic collision settings.
36 Read and removed from elements.
38 note-width -- unit for horizontal translation, measured in staff-space.
41 class Collision // interface
44 static SCM automatic_shift (Score_element*);
45 static SCM forced_shift (Score_element*);
46 DECLARE_SCHEME_CALLBACK(force_shift_callback, (SCM element, SCM axis));
47 static void do_shifts (Score_element*);
48 static void add_column (Score_element*me,Score_element*ncol_l);
50 #endif // COLLISION_HH