Creates a vanilla siteswap object from an alphanumeric siteswap sequence
such as "531" or "97531". Vanilla siteswap describes solo juggling
patterns where one prop is thrown per beat, alternating hands.
Usage
vanillaSiteswap(sequence = character(0))Additional properties
@typeAlways
"vanilla"(read-only).@throwsInteger vector of throw heights for one cycle.
@periodNumber of throws per cycle (length of
throws).@symmetry"symmetrical"when period is odd (pattern repeats with swapped hands);"asymmetrical"when period is even.@n_propsMean throw height, equal to the number of props required.
@can_throwTRUEif no two throws land on the same beat (no collisions).@satisfies_average_theoremTRUEifn_propsis a whole number.@validTRUEif bothcan_throwandsatisfies_average_theoremareTRUE.
Examples
vanillaSiteswap("531")
#> ✔ '531' is valid vanilla siteswap
#> ℹ It uses 3 props
#> ℹ It is symmetrical with period 3
vanillaSiteswap("97531")
#> ✔ '97531' is valid vanilla siteswap
#> ℹ It uses 5 props
#> ℹ It is symmetrical with period 5
s <- vanillaSiteswap("531")
s@n_props
#> [1] 3
s@valid
#> [1] TRUE
