source file of the GNU LilyPond music typesetter
- (c) 1997--2002 Han-Wen Nienhuys <hanwen@cs.uu.nl>,
+ (c) 1997--2004 Han-Wen Nienhuys <hanwen@cs.uu.nl>,
Mats Bengtsson <matsb@s3.kth.se>
*/
protected:
virtual void stop_translation_timestep ();
- virtual void start_translation_timestep ();
virtual void process_music ();
virtual void acknowledge_grob (Grob_info);
private:
SCM basic = ly_symbol2scm ("Clef");
- daddy_trans_->execute_single_pushpop_property (basic, glyph_sym, SCM_UNDEFINED);
- daddy_trans_->execute_single_pushpop_property (basic, glyph_sym, glyph);
+ execute_pushpop_property (daddy_trans_, basic, glyph_sym, SCM_UNDEFINED);
+ execute_pushpop_property (daddy_trans_, basic, glyph_sym, glyph);
}
/**
{
if (!clef_)
{
- Item *c= new Item (get_property ("Clef"));
+ Item *c= make_item ("Clef");
announce_grob(c, SCM_EOL);
clef_ = c;
SCM oct = get_property ("clefOctavation");
if (gh_number_p (oct) && gh_scm2int (oct))
{
- Item * g = new Item (get_property ("OctavateEight"));
-
+ Item * g = make_item ("OctavateEight");
+
+ int abs_oct = gh_scm2int (oct) ;
+ int dir = sign (abs_oct);
+ abs_oct = abs (abs_oct) + 1;
+
+ g->set_grob_property ("text",
+ scm_number_to_string (gh_int2scm (abs_oct),
+ SCM_MAKINUM (10)));
Side_position_interface::add_support (g,clef_);
g->set_parent (clef_, Y_AXIS);
g->set_parent (clef_, X_AXIS);
-
- g->set_grob_property ("direction", scm_int2num (sign (gh_scm2int (oct))));
+ g->set_grob_property ("direction", scm_int2num (dir));
octavate_ = g;
announce_grob(octavate_, SCM_EOL);
}
|| scm_equal_p (glyph, prev_glyph_) == SCM_BOOL_F
|| scm_equal_p (clefpos, prev_cpos_) == SCM_BOOL_F
|| scm_equal_p (octavation, prev_octavation_) == SCM_BOOL_F
- || to_boolean (force_clef)
-)
+ || to_boolean (force_clef))
{
set_glyph ();
create_clef ();
if (octavate_)
{
- Side_position_interface::add_staff_support (octavate_);
typeset_grob (octavate_);
}
}
}
-void
-Clef_engraver::start_translation_timestep ()
-{
-}
-
ENTER_DESCRIPTION(Clef_engraver,