]> git.donarmstrong.com Git - lilypond.git/blob - midi2ly/plet.cc
df6efdd84288547a95b27277d850ffad23ed45d1
[lilypond.git] / midi2ly / plet.cc
1 /*
2   plet.cc -- implement Plet
3
4   source file of the GNU LilyPond music typesetter
5
6   (c)  1997--2001 Han-Wen Nienhuys <hanwen@cs.uu.nl>
7 */
8
9 #include "plet.hh"
10
11
12 Plet::Plet ()
13 {
14   type_i_ = 1;
15   iso_i_ = 1;
16 }
17
18 Rational
19 Plet::mom () const
20 {
21   return  Rational (iso_i_, type_i_);
22 }
23
24 bool
25 Plet::unit_b () const
26 {
27   return type_i_ == 1 && iso_i_ == 1;
28 }
29