axis_ = Y_AXIS;
type_ = "barNumber";
visibility_lambda_
- = ly_ch_C_eval_scm ("postbreak_only_visibility");
+ = ly_ch_C_eval_scm ("postbreak-only-visibility");
}
void
text_p_ =0;
hang_on_clef_b_ = false;
visibility_lambda_
- = ly_ch_C_eval_scm ("non_postbreak_visibility");
+ = ly_ch_C_eval_scm ("non-postbreak-visibility");
}
void
{
staff_side_p_
->set_elt_property ("padding",
- gh_double2scm(paper_l ()->get_realvar (gh_symbol2scm("interline"))));
+ gh_double2scm(paper_l ()->get_var ("interline")));
}
staff_side_p_->set_elt_property ("visibility-lambda",
{
spanbar_p_ = get_span_bar_p();
spanbar_p_->set_parent (bar_l_arr_[0], Y_AXIS);
- String visnam = String(name()) + "_visibility";
+ String visnam = String(name()) + "-visibility";
spanbar_p_->set_elt_property ("visibility-lambda",
ly_ch_C_eval_scm (visnam.ch_C()));
if(breathing_sign_req_l_) {
breathing_sign_p_ = new Breathing_sign;
- SCM prop = get_property ("verticalDirection", 0);
- if(isdir_b(prop))
- breathing_sign_p_->set_vertical_position(to_dir (prop));
-
announce_element (Score_element_info (breathing_sign_p_, breathing_sign_req_l_));
}
}
{
set_direction (UP);
set_elt_property ("breakable", SCM_BOOL_T);
- set_elt_property ("visibility-lambda",
- ly_ch_C_eval_scm ("non_postbreak_visibility"));
}
-void
-Breathing_sign::set_vertical_position (Direction updown)
-{
- assert(updown >= -1 && updown <= +1);
- if(updown != 0)
- set_direction (updown);
-}
Molecule*
Breathing_sign::do_brew_molecule_p () const
--- /dev/null
+/*
+ directional-element.hh -- declare Directional_element
+
+ source file of the GNU LilyPond music typesetter
+
+ (c) 1999 Han-Wen Nienhuys <hanwen@cs.uu.nl>
+
+ */
+
+#ifndef DIRECTIONAL_ELEMENT_HH
+#define DIRECTIONAL_ELEMENT_HH
+
+#include "score-element.hh"
+
+struct Directional_element : public virtual Score_element
+{
+ void set_direction (Direction d);
+ Direction get_direction () const;
+
+ VIRTUAL_COPY_CONS(Score_element);
+ Directional_element ();
+};
+
+#endif /* DIRECTIONAL_ELEMENT_HH */
+
{
bool def = (!item_p_);
create_key ();
- if (def)
+ if (!def)
{
item_p_->set_elt_property ("visibility-lambda",
- ly_ch_C_eval_scm ("postbreak_only_visibility"));
+ ly_ch_C_eval_scm ("all-visibility"));
}
}
void
Slur_engraver::do_pre_move_processing()
{
- SCM dir (get_property ("slurVerticalDirection", 0));
- SCM dir2 (get_property ("verticalDirection", 0));
-
- Direction slurdir = CENTER;
- if (gh_number_p(dir))
- slurdir = to_dir (dir);
- else if (gh_number_p (dir2))
- slurdir = to_dir (dir2);
-
for (int i = 0; i < end_slur_l_arr_.size(); i++)
{
- end_slur_l_arr_[i]->set_direction (slurdir);
typeset_element (end_slur_l_arr_[i]);
}
end_slur_l_arr_.clear();
{
axis_ = X_AXIS;
type_ = "margin";
- visibility_lambda_ = ly_ch_C_eval_scm ("postbreak_only_visibility");
+ visibility_lambda_ = ly_ch_C_eval_scm ("postbreak-only-visibility");
}
if (stem_p_)
{
- SCM prop = get_property ("verticalDirection", 0);
- if (gh_number_p(prop))
- {
- stem_p_->set_direction (to_dir (prop));
- stem_p_->set_elt_property ("dir-forced", SCM_BOOL_T);
- }
-
Translator_group* which;
- prop = get_property ("stemLeftBeamCount", &which);
+ SCM prop = get_property ("stemLeftBeamCount", &which);
if (gh_number_p(prop))
{
stem_p_->beams_i_drul_[LEFT] = gh_scm2int (prop);
stem_p_->beams_i_drul_[RIGHT] = gh_scm2int (prop);
((Translator_group*)which)->set_property ("stemRightBeamCount", SCM_UNDEFINED);
}
+
+ // UGH. Should mark non-forced instead.
+ SCM dir = stem_p_->get_elt_property ("direction");
+ if (gh_number_p (dir) && gh_int2scm (dir))
+ {
+ stem_p_->set_elt_property ("dir-forced", SCM_BOOL_T);
+ }
+
+
typeset_element(stem_p_);
stem_p_ = 0;
}
}
now_heads_.clear ();
- SCM dir (get_property ("tieVerticalDirection", 0));
- SCM dir2 (get_property ("verticalDirection", 0));
-
- Direction tie_dir = CENTER;
- if (gh_number_p(dir))
- tie_dir = to_dir (dir);
- else if (isdir_b (dir2))
- tie_dir = to_dir (dir2);
-
for (int i=0; i< tie_p_arr_.size (); i++)
{
- tie_p_arr_[i]->set_direction (tie_dir);
typeset_element (tie_p_arr_[i]);
}
tie_p_arr_.clear ();
% Bar_engraver must be first so default bars aren't overwritten
% with empty ones.
\consists "Repeat_engraver";
+
+
+ % name, glyph id, c0 position
+ supportedClefTypes = #'(
+ ("treble" "treble" -2)
+ ("violin" "treble" -2)
+ ("G" "treble" -2)
+ ("G2" "treble" -2)
+ ("french" "treble" -4 )
+ ("soprano" "alto" -4 )
+ ("mezzosoprano" "alto" -2 )
+ ("alto" "alto" 0 )
+ ("tenor" "alto" 2 )
+ ("baritone" "alto" 4 )
+ ("varbaritone" "bass" 0)
+ ("bass" "bass" 2 )
+ ("F" "bass" 2)
+ ("subbass" "bass" 4)
+ )
+
\consists "Clef_engraver";
\consists "Key_engraver";
\consists "Time_signature_engraver";