2 beam.hh -- part of GNU LilyPond
4 (c) 1996--2000 Han-Wen Nienhuys
10 #include "lily-proto.hh"
11 #include "lily-guile.hh"
18 static int visible_stem_count (Grob*);
19 static Item* first_visible_stem (Grob*);
20 static Item* last_visible_stem (Grob*);
21 static bool has_interface (Grob*);
22 static void set_interface (Grob*);
23 DECLARE_SCHEME_CALLBACK(rest_collision_callback, (SCM element, SCM axis));
25 static void add_stem (Grob*,Grob*);
26 static void set_beaming (Grob*,Beaming_info_list *);
27 static void set_stemlens (Grob*);
28 static int get_multiplicity (Grob*me);
29 DECLARE_SCHEME_CALLBACK(brew_molecule, (SCM ));
30 DECLARE_SCHEME_CALLBACK(before_line_breaking, (SCM ));
31 DECLARE_SCHEME_CALLBACK(after_line_breaking, (SCM ));
36 DECLARE_SCHEME_CALLBACK (least_squares, (SCM));
37 DECLARE_SCHEME_CALLBACK (cancel_suspect_slope, (SCM));
38 DECLARE_SCHEME_CALLBACK (slope_damping, (SCM));
39 DECLARE_SCHEME_CALLBACK (quantise_dy, (SCM));
40 DECLARE_SCHEME_CALLBACK (user_override, (SCM));
41 DECLARE_SCHEME_CALLBACK (do_quantise_y, (SCM));
43 static Molecule stem_beams (Grob*,Item *here, Item *next, Item *prev);
46 static Direction get_default_dir (Grob*);
47 static void set_stem_directions (Grob*);
48 static void consider_auto_knees (Grob*);
49 static void set_stem_shorten (Grob*);
50 static Real calc_stem_y_f (Grob*, Item* s, Real y, Real dy);
51 static Real check_stem_length_f (Grob*, Real y, Real dy);
52 static void set_stem_lengths (Grob*);
53 static Real quantise_y_f (Grob*, Real y, Real dy, int quant_dir);
54 static int forced_stem_count (Grob*);