Returns a extFloat.
Extensions to Float.
| partitionByRatio | Partitions receiver into parts by ratio. |
| partitionByRatio | DEPRECATED: version without nested rhythm tree support. |
Partitions receiver into parts by ratio.
Returns array of floats.
Example
1.5.partitionByRatio(#[1, 1, 1]);[ 0.5, 0.5, 0.5 ]Example
-1.5.partitionByRatio(#[1, 1, 1]);[ -0.5, -0.5, -0.5 ]Example
1.5.partitionByRatio(#[1, -1, 1]);[ 0.5, -0.5, 0.5 ]Support nested rhythm tree syntax.
1.0.partitionByRatio(#[1, 2, [2, [-2, 2, 1]]]);[ 0.2, 0.4, -0.16, 0.16, 0.08 ]DEPRECATED: version without nested rhythm tree support.