2 duration.cc -- implement Duration, Plet,
4 source file of the LilyPond music typesetter
6 copyright 1997 Jan Nieuwenhuizen <jan@digicash.com>
8 (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
16 #include "source-file.hh"
19 #include "duration.hh"
20 #include "debug.hh" //ugh
21 #include "duration-convert.hh"
24 int Duration::division_1_i_s = 384 * 4;
26 Duration::Duration( int type_i, int dots_i = 0)
33 Duration::set_plet(int i, int t)
40 Duration::length() const
42 return Duration_convert::dur2_mom(*this);
45 Duration::set_ticks( int ticks_i )
54 return Duration_convert::dur2_str(*this);
56 Plet::Plet( int iso_i, int type_i )
64 return Moment( iso_i_, type_i_ );
75 return type_i_ == 1 && iso_i_ == 1;
80 return !plet_.unit_b();