Skip to contents

Creates a typed siteswap object by detecting the notation style of sequence. Vanilla siteswaps (alphanumeric strings such as "531") produce a vanillaSiteswap object; synchronous siteswaps in (a,b) notation such as "(4,2x)*" produce a synchronousSiteswap object; multiplex siteswaps with square-bracket groups such as "[43]1" produce a multiplexSiteswap object; passing siteswaps in <A|B> notation such as "<3p 3 3 3 3 3 | 3p 3 3 3 3 3>" produce a passingSiteswap object.

Usage

siteswap(sequence)

Arguments

sequence

A single character string of siteswap notation.

Examples

siteswap("531")
#>  '531' is valid vanilla siteswap
#>  It uses 3 props
#>  It is symmetrical with period 3
siteswap("(4,2x)*")
#>  '(4,2x)*' is valid synchronous siteswap
#>  Full sequence: (4,2x)(2x,4)
#>  It uses 3 props
#>  It is symmetrical with period 4
siteswap("[43]1")
#>  '[43]1' is valid multiplex siteswap
#>  It uses 4 props
#>  It is asymmetrical with period 2
siteswap("(2,4)([4x4],2x)")
#>  '(2,4)([4x4],2x)' is valid synchronous multiplex siteswap
#>  It uses 4 props
#>  It is asymmetrical with period 4
siteswap("<3p 3 3 3 3 3 | 3p 3 3 3 3 3>")
#>  '<3p 3 3 3 3 3 | 3p 3 3 3 3 3>' is valid passing siteswap
#>  It uses 6 props across 2 jugglers
#>  It is asymmetrical with period 6