| 1 | <?php |
||
| 7 | class Harmonic |
||
| 8 | { |
||
| 9 | private $halfStop; |
||
| 10 | private $baseStop; |
||
| 11 | |||
| 12 | /** |
||
| 13 | * @param float $halfStop |
||
| 14 | * @param float $baseStop |
||
| 15 | */ |
||
| 16 | public function __construct(float $halfStop, float $baseStop = 1.0) |
||
| 25 | |||
| 26 | /** |
||
| 27 | * @param \ExtendedStrings\Strings\VibratingString $string |
||
| 28 | * |
||
| 29 | * @return float |
||
| 30 | */ |
||
| 31 | public function getSoundingPitch(VibratingString $string): float |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @param int $number |
||
| 43 | * @param bool $exclusive |
||
| 44 | * |
||
| 45 | * @return float[] |
||
| 46 | */ |
||
| 47 | public static function getStringLengthsFromNumber(int $number, bool $exclusive = false): array |
||
| 62 | |||
| 63 | /** |
||
| 64 | * @param int $limit |
||
| 65 | * |
||
| 66 | * @return float[] |
||
| 67 | */ |
||
| 68 | public static function getSeries(int $limit): array |
||
| 78 | } |
||
| 79 |