- static int visible_stem_count (Score_element*);
- static Item* first_visible_stem (Score_element*);
- static Item* last_visible_stem (Score_element*);
- static bool has_interface (Score_element*);
- static void set_interface (Score_element*);
- static Real rest_collision_callback (Score_element *,Axis);
- Beam (SCM);
- static void add_stem (Score_element*,Score_element*);
- static void set_beaming (Score_element*,Beaming_info_list *);
- static void set_stemlens (Score_element*);
- static int get_multiplicity (Score_element*me);
- static SCM brew_molecule (SCM);
- static SCM before_line_breaking (SCM);
- static SCM after_line_breaking (SCM);
- static Molecule stem_beams (Score_element*,Item *here, Item *next, Item *prev);
+ static int visible_stem_count (Grob *);
+ static Grob *first_visible_stem (Grob *);
+ static Grob *last_visible_stem (Grob *);
+ DECLARE_GROB_INTERFACE();
+ static void add_stem (Grob *, Grob *);
+ static bool is_knee (Grob *);
+ static void set_beaming (Grob *, Beaming_pattern const *);
+ static void set_stemlens (Grob *);
+ static int get_beam_count (Grob *me);
+ static Real get_beam_translation (Grob *me);
+ static Real get_thickness (Grob *me);
+ static void connect_beams (Grob *me);
+ static vector<Beam_segment> get_beam_segments (Grob *me_grob, Grob **common);
+
+ DECLARE_SCHEME_CALLBACK (rest_collision_callback, (SCM element, SCM prev_off));
+ DECLARE_SCHEME_CALLBACK (print, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_beaming, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_stem_shorten, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_direction, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_positions, (SCM));
+ DECLARE_SCHEME_CALLBACK (calc_least_squares_positions, (SCM, SCM));
+ DECLARE_SCHEME_CALLBACK (calc_concaveness, (SCM));
+ DECLARE_SCHEME_CALLBACK (set_stem_lengths, (SCM));
+
+ /* position callbacks */
+ DECLARE_SCHEME_CALLBACK (shift_region_to_valid, (SCM, SCM));
+ DECLARE_SCHEME_CALLBACK (slope_damping, (SCM, SCM));
+ DECLARE_SCHEME_CALLBACK (quanting, (SCM, SCM));
+
+static Real score_slopes_dy (Real, Real, Real, Real, Real, bool, Beam_quant_parameters const *);