示例#1
0
void ARRepeatBegin::setRepeatEnd(const ARRepeatEnd *myr)
{
	if (dur.getNumerator() == -1)
	{
		dur = myr->getRelativeTimePosition() -
			getRelativeTimePosition();
	}
}
示例#2
0
void ARMusicalObject::print() const
{
	TYPE_DURATION dur = getDuration();
	TYPE_TIMEPOSITION tpos = getRelativeTimePosition();
	std::cout << "ARMusicalObject: duration: " 
		<<  dur.getNumerator() << '/' << dur.getDenominator()
		<< " time pos: " 
		<<  tpos.getNumerator() << '/' << tpos.getDenominator() << '\n';
}
示例#3
0
void GRSingleRest::GetMap( GuidoeElementSelector sel, MapCollector& f, MapInfos& infos ) const
{
    if (sel == kGuidoEvent) {
        SendMap (f, getRelativeTimePosition(), getDuration(), kRest, infos);
    }
}
示例#4
0
void GRRest::print() const
{
	fprintf(stderr,"(R%.2f,%.2f)",(float) getRelativeTimePosition(),
		(float) getDuration());
}