Add a Ballyhoo pad for the movers to the test show.

Pad 11 on the movers layer (note 94) toggles a fast figure of eight around
the Pan and Tilt knobs, like Wander: about ±85° of pan and ±26° of tilt, all
four movers together so the pairs mirror left to right and front to back
(scripts/shows/mover_ballyhoo.py).

The pad controller now settles the knobs after Ballyhoo goes off as well as
Wander, and keeps track of each separately.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Opus 5.5 committed 2026-10-23 01:46:03 +13:00
1 parent 8caf341d30
commit 913494c0aa
5 files changed
+180 -18

No files matched your search

+12 -3
View File
@@ -193,9 +193,9 @@ class PlayLayerTest(unittest.TestCase):
layer.handle(PAUSE_DOWN)
self.assertEqual(layer.handle([0x99, 45, 100]), [[0x99, 93, 100]])
layer.handle([0x89, 45, 0])
self.assertEqual((layer.wander, layer.settle), (True, False))
self.assertEqual((layer.moving, layer.settle), ({93}, False))
layer.handle([0x99, 45, 100])
self.assertEqual((layer.wander, layer.settle), (False, True))
self.assertEqual((layer.moving, layer.settle), (set(), True))
self.assertEqual(layer.nudge(), [[0xB0, 38, 39], [0xB0, 39, 1]])
self.assertEqual(layer.positions(), [[0xB0, 38, 40], [0xB0, 39, 0]])
@@ -203,7 +203,16 @@ class PlayLayerTest(unittest.TestCase):
layer = PlayLayer()
layer.handle([0x99, 45, 100])
layer.handle([0x99, 45, 100])
self.assertEqual((layer.wander, layer.settle), (False, False))
self.assertEqual((layer.moving, layer.settle), (set(), False))
def test_ballyhoo_off_settles_while_wander_runs_on(self):
layer = PlayLayer()
layer.handle(PAUSE_DOWN)
layer.handle([0x99, 45, 100])
self.assertEqual(layer.handle([0x99, 46, 100]), [[0x99, 94, 100]])
self.assertEqual((layer.moving, layer.settle), ({93, 94}, False))
layer.handle([0x99, 46, 100])
self.assertEqual((layer.moving, layer.settle), ({93}, True))
if __name__ == "__main__":