source file of the LilyPond music typesetter
- copyright 1997 Jan Nieuwenhuizen <jan@digicash.com>
-
- (c) 1997 Han-Wen Nienhuys <hanwen@stack.nl>
+ (c) 1997 Jan Nieuwenhuizen <jan@digicash.com>
+ Han-Wen Nienhuys <hanwen@stack.nl>
*/
#include "proto.hh"
int Duration::division_1_i_s = 384 * 4;
-Duration::Duration( int type_i, int dots_i = 0)
+Duration::Duration()
{
-// this breaks mi2mu quite effectively
-// assert(duration_type_b(type_i));
- type_i_ = type_i;
- dots_i_ = dots_i;
+ type_i_ = 1;
+ dots_i_ = 0;
ticks_i_ = 0;
}
iso_i_ = 1;
}
-Plet::Plet( int iso_i, int type_i )
-{
- iso_i_ = iso_i;
- type_i_ = type_i;
-}
-
Moment
Plet::mom()const
{
MInterval m;
for (iter(music_p_list_.top(), i); i.ok(); i++)
m.unite(i->time_int());
+
return m;
}
Voice::time_int() const
{
Moment last=0;
- for (iter(music_p_list_.top(), i); i.ok(); i++)
- last += i->time_int().length();
+ for (iter(music_p_list_.top(), i); i.ok(); i++) {
+ MInterval interval = i->time_int();
+
+ /*
+ c4 <> c4
+ */
+ if ( !interval.empty_b() )
+ last += interval.length();
+ }
return offset_mom_ + MInterval(0,last);
}