You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi !
For some reason you transform the denominator of time signature to it's log2 value
But when you compute the user friendly time signature you don't revert the denominator correctly, you compute pow($logDenominator, 2) instead of pow(2, $logDenominator)
// Constructor
parent::__construct(array($numerator, log($denominator, 2), $metronomePulse, $thirtySecondNotesPerQuarterNote));
// Time signature computation
public static function getTimeSignature($numerator, $logarithmicDenominator) {
return $numerator . '/' . pow($logarithmicDenominator, 2);
}
The text was updated successfully, but these errors were encountered:
Hi !
For some reason you transform the denominator of time signature to it's log2 value
But when you compute the user friendly time signature you don't revert the denominator correctly, you compute
pow($logDenominator, 2)
instead ofpow(2, $logDenominator)
The text was updated successfully, but these errors were encountered: