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))See also
The visualisation functions timeline(), ladder() and
throw_data().
Other siteswap constructors:
passingSiteswap(),
siteswap(),
synchronousMultiplexSiteswap(),
synchronousSiteswap(),
vanillaSiteswap()
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 (read-only).
@throwsInteger vector of all individual throw heights (flattened across all slots) (read-only).
@periodNumber of time slots per cycle (read-only).
@symmetry"symmetrical"when period is odd;"asymmetrical"when period is even (read-only).@n_propsTotal of all throw heights divided by the period — the number of props required. (Note:
sum(throws) / period, notmean(throws).) (read-only).@can_throwTRUEif for every slot the number of props thrown equals the number of props landing (no conservation violation) (read-only).@satisfies_average_theoremTRUEifn_propsis a whole number (read-only).@validTRUEif bothcan_throwandsatisfies_average_theoremareTRUE(read-only).
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
