Beispiel #1
0
void ARRepeatBegin::setRepeatEnd(const ARRepeatEnd *myr)
{
	if (dur.getNumerator() == -1)
	{
		dur = myr->getRelativeTimePosition() -
			getRelativeTimePosition();
	}
}
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';
}
Beispiel #3
0
void GRSingleRest::GetMap( GuidoeElementSelector sel, MapCollector& f, MapInfos& infos ) const
{
    if (sel == kGuidoEvent) {
        SendMap (f, getRelativeTimePosition(), getDuration(), kRest, infos);
    }
}
Beispiel #4
0
void GRRest::print() const
{
	fprintf(stderr,"(R%.2f,%.2f)",(float) getRelativeTimePosition(),
		(float) getDuration());
}