if (!me->is_live ())
return boxes;
- SCM scm_style = me->get_property ("style");
- if (!scm_is_symbol (scm_style)
- && !to_boolean (me->get_property ("restore-first"))
+ if (!to_boolean (me->get_property ("restore-first"))
&& !parens)
{
- Rational alteration
- = robust_scm2rational (me->get_property ("alteration"), 0);
- if (alteration == FLAT_ALTERATION)
+ SCM alist = me->get_property ("glyph-name-alist");
+ SCM alt = me->get_property ("alteration");
+ string glyph_name = robust_scm2string (ly_assoc_get (alt, alist, SCM_BOOL_F),
+ "");
+
+ if (glyph_name == "accidentals.flat"
+ || glyph_name == "accidentals.mirroredflat")
{
Box stem = b;
Box bulb = b;
we could make the stem thinner, but that places the flats
really close.
*/
- stem[X_AXIS][RIGHT] *= .5;
+ Direction bulb_dir =
+ glyph_name=="accidentals.mirroredflat" ? LEFT : RIGHT;
+ stem[X_AXIS][bulb_dir] = stem[X_AXIS].center ();
/*
To prevent vertical alignment for 6ths
boxes.push_back (bulb);
boxes.push_back (stem);
}
- else if (alteration == NATURAL_ALTERATION)
+ else if (glyph_name == "accidentals.natural")
{
Box lstem = b;
Box rstem = b;