lilypond-1.3.11
[lilypond.git] / lily / meter.cc
blob97df812358c2a56859358ca299c7aa04417e41fe
1 #include "scalar.hh"
2 #include "molecule.hh"
3 #include "meter.hh"
4 #include "paper-def.hh"
5 #include "lookup.hh"
7 Meter::Meter (Array<Scalar>a)
8 :args (a)
10 breakable_b_ = true;
13 Molecule*
14 Meter::brew_molecule_p() const
16 Atom s = paper()->lookup_l ()->meter (args);
17 s.translate_axis (-s.extent()[Y_AXIS].center (), Y_AXIS);
18 return new Molecule (Atom (s));
23 IMPLEMENT_IS_TYPE_B1(Meter,Item);