示例#1
0
tick_t MidiTime::ticksPerTact( const TimeSig &sig )
{
	return DefaultTicksPerTact * sig.numerator() / sig.denominator();
}
示例#2
0
tick_t MidiTime::ticksPerBeat( const TimeSig &sig ) const
{
	// (number of ticks per bar) divided by (number of beats per bar)
	return ticksPerTact(sig) / sig.numerator();
}