| 1 | <?php |
||
| 7 | class Cent |
||
| 8 | { |
||
| 9 | /** |
||
| 10 | * @param float $lower |
||
| 11 | * @param float $upper |
||
| 12 | * |
||
| 13 | * @return float |
||
| 14 | * The number of cents between the two frequencies. |
||
| 15 | */ |
||
| 16 | public static function frequenciesToCents(float $lower, float $upper): float |
||
| 20 | |||
| 21 | /** |
||
| 22 | * @param float $cents |
||
| 23 | * @param float $base |
||
| 24 | * |
||
| 25 | * @return float |
||
| 26 | */ |
||
| 27 | public static function centsToFrequency(float $cents, float $base): float |
||
| 31 | } |
||
| 32 |