SCM
Time_signature::print (SCM smob)
{
- Grob *me = unsmob_grob (smob);
+ Grob *me = Grob::unsmob (smob);
SCM st = me->get_property ("style");
SCM frac = me->get_property ("fraction");
int n = 4;
if ((style == "default") || (style == ""))
style = ::to_string ("C");
+ else if (style == "single-C")
+ {
+ if ((n != 2) && (n != 4))
+ return numbered_time_signature (me, n, 0);
+ /* for any d, print 2/d as cut-C, 4/d as C */
+ style = ::to_string ("C");
+ d = n;
+ }
if (style == "C")
{
SCM sd = Text_interface::interpret_markup (me->layout ()->self_scm (), chain,
ly_string2scm (::to_string (den)));
- Stencil n = *unsmob_stencil (sn);
- Stencil d = *unsmob_stencil (sd);
+ Stencil n = *Stencil::unsmob (sn);
+ Stencil d = *Stencil::unsmob (sd);
n.align_to (X_AXIS, CENTER);
d.align_to (X_AXIS, CENTER);