siteswap-generator-cli
v0.1.0
Published
A command line tool based on siteswap-generator package
Downloads
6
Maintainers
Readme
siteswap-generator-cli
A command line tool based on siteswap-generator package
Install
$ npm install -g siteswap-generator-cli
Usage
$ siteswap -balls [<min>..]<max> -period [<min>..]<max> [-height [<min>..]<max>] [-slice <number>]
or
$ siteswap -b [<min>..]<max> -p [<min>..]<max> [-h [<min>..]<max>] [-s <number>]
Examples
$ siteswap -b 3 -p 3 -h 5
[ [ 5, 3, 1 ],
[ 5, 2, 2 ],
[ 5, 0, 4 ],
[ 4, 4, 1 ],
[ 4, 2, 3 ],
[ 5, 1 ],
[ 4, 2 ],
[ 3 ] ]
$ siteswap -balls 1..3 -period 3..3 -height 5..5
[ [ 5, 3, 1 ], [ 5, 2, 2 ], [ 5, 0, 4 ], [ 5, 0, 1 ] ]
$ #only the first 3 patterns
$ siteswap -b 3 -p 3 -h 5 --slice 3
[ [ 5, 3, 1 ],
[ 5, 2, 2 ],
[ 5, 0, 4 ]]
License
MIT