Creates a multiplex siteswap object from a sequence in which square brackets
group simultaneous throws from the same hand. For example, "[43]1" means
the juggler throws heights 4 and 3 simultaneously on the first beat, then a
single 1 on the second beat. Any slot without brackets is a single throw
exactly as in vanilla siteswap.
Usage
multiplexSiteswap(sequence = character(0))Additional properties
@typeAlways
"multiplex"(read-only).@slotsList of integer vectors, one element per time slot. Single-throw slots are length-1 vectors; multiplex slots have length > 1.
@throwsInteger vector of all individual throw heights (flattened across all slots).
@periodNumber of time slots per cycle.
@symmetry"symmetrical"when period is odd;"asymmetrical"when period is even.@n_propsTotal of all throw heights divided by the period — the number of props required. (Note:
sum(throws) / period, notmean(throws).)@can_throwTRUEif for every slot the number of props thrown equals the number of props landing (no conservation violation).@satisfies_average_theoremTRUEifn_propsis a whole number.@validTRUEif bothcan_throwandsatisfies_average_theoremareTRUE.
Examples
multiplexSiteswap("[43]1")
#> ✔ '[43]1' is valid multiplex siteswap
#> ℹ It uses 4 props
#> ℹ It is asymmetrical with period 2
multiplexSiteswap("[33]")
#> ✔ '[33]' is valid multiplex siteswap
#> ℹ It uses 6 props
#> ℹ It is symmetrical with period 1
s <- multiplexSiteswap("[43]1")
s@n_props
#> [1] 4
s@valid
#> [1] TRUE
