-\version "1.3.117";
+\header{
+texidoc="Two automatic knees";
+}
+
\score {
- \notes \context PianoStaff <
- \context Staff = "up" {
- \autochange Staff \relative c' {
- [c8 e'] [c' c,,]
- \stemDown
- c'8 c c g,
- g8 d' d d
- \stemUp
- b8 c d e
- }
- }
- \context Staff = "down" {
- \clef bass;
- s1*2
- }
- >
- \paper{
- \translator{
- \StaffContext
- autoKneeGap = #13.0
- autoInterstaffKneeGap = #4.0
- }
- }
+ \notes \context PianoStaff <
+ \context Staff = "up" \notes\relative c''{
+ [ b8 \translator Staff="down" d,, ]
+ [ c \translator Staff="up" c'' ]
+ [ b, \translator Staff="down" d ]
+ }
+ \context Staff = "down" {
+ \clef bass;
+ s2.
+ }
+ >
+ \paper{
+ linewidth = 40*\staffspace;
+% Now by default
+% \translator{
+% \VoiceContext
+% Beam \override #'auto-knee-gap = #7
+% }
+ }
}
{
public:
static int visible_stem_count (Grob*);
- static Item* first_visible_stem (Grob*);
- static Item* last_visible_stem (Grob*);
+ static Item* first_visible_stem (Grob*);
+ static Item* last_visible_stem (Grob*);
static bool has_interface (Grob*);
static void set_interface (Grob*);
DECLARE_SCHEME_CALLBACK(rest_collision_callback, (SCM element, SCM axis));
private:
static Direction get_default_dir (Grob*);
- static void set_stem_directions (Grob*);
- static void auto_knees (Grob*);
- static bool auto_knee (Grob*,String gap_str, bool interstaff_b);
+ static void set_stem_directions (Grob*);
+ static void consider_auto_knees (Grob*);
static void set_stem_shorten (Grob*);
- static void calc_default_position_and_height (Grob*,Real* y, Real* dy);
- static bool suspect_slope_b (Grob*, Real y, Real dy);
- static Real calc_slope_damping_f (Grob*, Real dy);
- static Real calc_stem_y_f (Grob*, Item* s, Real y, Real dy);
- static Real check_stem_length_f (Grob*, Real y, Real dy);
- static void set_stem_length (Grob*, Real y, Real dy);
- static Real quantise_dy_f (Grob*, Real dy);
- static Real quantise_y_f (Grob*, Real y, Real dy, int quant_dir);
+ static void calc_default_position_and_height (Grob*,Real* y, Real* dy);
+ static bool suspect_slope_b (Grob*, Real y, Real dy);
+ static Real calc_slope_damping_f (Grob*, Real dy);
+ static Real calc_stem_y_f (Grob*, Item* s, Real y, Real dy);
+ static Real check_stem_length_f (Grob*, Real y, Real dy);
+ static void set_stem_length (Grob*, Real y, Real dy);
+ static Real quantise_dy_f (Grob*, Real dy);
+ static Real quantise_y_f (Grob*, Real y, Real dy, int quant_dir);
static int forced_stem_count (Grob*);
};
-#endif // BEAM_HH
+#endif /* BEAM_HH */