2 time-signature.cc -- implement Time_signature
4 source file of the GNU LilyPond music typesetter
6 (c) 1996--1998 Han-Wen Nienhuys <hanwen@cs.uu.nl>
11 #include "molecule.hh"
12 #include "time-signature.hh"
13 #include "paper-def.hh"
16 Time_signature::Time_signature ()
22 Time_signature::brew_molecule_p () const
25 if (time_sig_type_str_.length_i ())
27 if (time_sig_type_str_[0]=='1')
29 Array<Scalar> tmparr=args_;
31 s = lookup_l ()->time_signature (tmparr);
35 s = lookup_l ()-> special_time_signature (time_sig_type_str_,args_);
39 s = lookup_l ()->time_signature (args_);
40 s.translate_axis (-s.extent ()[Y_AXIS].center (), Y_AXIS);
41 return new Molecule (Atom (s));
46 IMPLEMENT_IS_TYPE_B1(Time_signature,Item);