This is a simple script to generate sync passing siteswaps. It has a lot of options for filtering with sensible defaults. There is also an auto-generated (by Gemini) web version which is under webpage/ and available here
Usage:
python generate_sync.py [-h] [--filter-zeros | --allow-zeros] [--filter-twos | --allow-twos] [--filter-1p | --allow-1p] [--filter-2p | --allow-2p] [--filter-fake_sync | --allow-fake_sync] [--filter-wimpy | --allow-wimpy]
[--filter-collisiony | --allow-collisiony] [--filter-pass_modification | --allow-pass_modification] [--filter-self_modification | --allow-self_modification] [--sync-mode {full-sync,sync-async,both}]
balls period max_throwdefaults: filter 0s, 1p, fake-sync, wimpy, collisiony, self modification. Allow 2s and pass modification. Sync mode is both
Positional arguments:
balls: Total number of balls in the pattern (both jugglers combined).period: The period of the pattern.max_throw: The maximum throw height to consider.
Optional arguments:
-h, --help: Show this help message and exit.--filter-zeros/--allow-zeros: Exclude patterns with zero throws (default: filter zeros).--filter-twos/--allow-twos: Exclude patterns with two throws (default: allow twos).--filter-1p/--allow-1p**: Exclude patterns with 1-pass throws (default: filter 1p).--filter-2p/--allow-2p: Exclude patterns with 2-pass throws (default: allow 2p).--filter-fake_sync/--allow-fake_sync**: Exclude patterns that are fake sync (have 2s or 0s every pair alternating hands) (default: filter fake sync).--filter-wimpy/--allow-wimpy**: Exclude wimpy patterns (crossing same height passes/selfs at the same time) (default: filter wimpy).--filter-collisiony/--allow-collisiony**: Exclude patterns that are collisiony (passes of the same height from the same side of the pattern) (default: filter collisiony).--filter-pass_modification/--allow-pass_modification: Exclude patterns with pass modification (allow one juggler to go straight and the other crossing on passes) (default: allow pass modification).--filter-self_modification/--allow-self_modification**: Exclude patterns with self modification (allow one juggler to to straight and the other to go crossing on selfs) (default: filter self modification).--sync-mode {full-sync,sync-async,both}: Choose the sync mode to generate (full-sync is 4 hands throwing at the same time, sync-async is each juggler throwing sync but J2 delayed by a beat) (default: both).
Examples:
python generate_sync.py 6 2 4
python generate_sync.py 8 2 5 --filter-2p --allow-zeros --sync-mode sync-asyncThere is also an older, hack version in the subfolder j2-filtering/. This is a hacky script to generate sync siteswaps for passing from JugglingLab's J2 generation. It filters JugglingLab's output for symmetries such as both jugglers doing the same thing (except straight/crossing), each juggler doing something symmetric and allows generation of sync-async patterns (each juggler sync but out of time) which J2 does not support. There are much faster ways of doing this such as the main script. This is simply the easy way of piggybacking off of JugglingLab's generator and using a modified version of my Python Prechac Validator to make things quick.