Add cabaret's can patterns to the test show.

Eight of make_cabaret_vc.py's Can Patterns on the cans pads 1-8, in a Can
patterns solo frame in place of the pads frame's empty Buttons 53-60:
Theater, Rainbow, Odd Even, Left Right, Scanner (with a fading tail), Fill,
Center and Pairs, laid out for the test show's cans and walking the ring round
the room (scripts/shows/can_patterns.py). Collapse and Chase Out are left out.

The masks show the Colour 1 colour; Odd Even (a checkerboard) and Left Right
swap between Colour 1 and Colour 2 through four Matrix widgets in the Chase
colours frame. All of them follow the cans' Speed dial (knob 1). Each pattern is
RGB matrices running from start to stop (rgbscripts/steps.js and swap.js, linked
into ~/.qlcplus/rgbscripts), so a chase started over one lands on top, and the
pad controller restarts the pattern that is on just after a Colour 1 press so
the new colour scene doesn't cover it.

The row of 4 (#3-#6) never animates; CLAUDE.md now says so for whatever comes
next.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
jimmyandClaude Opus 5.5 committed 2026-10-23 13:57:13 +13:00
1 parent e7e1cf656b
commit 4fd11445e8
9 files changed
+1622 -98

No files matched your search

+35
View File
@@ -139,6 +139,41 @@ class PlayLayerTest(unittest.TestCase):
layer.handle([0x99, 49, 100])
self.assertEqual((layer.moving, layer.settle), (None, True))
def test_colour_1_restarts_the_can_pattern_on_top(self):
layer = PlayLayer()
layer.handle([0x99, 40, 127])
self.assertEqual(layer.handle([0x99, 57, 127]), [[0x99, 57, 127]])
self.assertTrue(layer.restart_pattern)
self.assertEqual(layer.pattern_tap(), [[0x99, 40, 127], [0x89, 40, 0]])
self.assertEqual(layer.pattern, 40)
def test_colour_1_leaves_the_cans_alone_with_no_pattern(self):
layer = PlayLayer()
layer.handle([0x99, 36, 127])
layer.handle([0x99, 36, 127])
self.assertEqual(layer.handle([0x99, 57, 127]), [[0x99, 57, 127]])
self.assertFalse(layer.restart_pattern)
self.assertEqual(layer.pattern_tap(), [])
def test_a_new_pattern_takes_over_in_the_solo_frame(self):
layer = PlayLayer()
layer.handle([0x99, 40, 127])
layer.handle([0x99, 37, 127])
self.assertEqual(layer.pattern, 37)
def test_colour_2_does_not_restart_the_can_pattern(self):
layer = PlayLayer()
layer.handle([0x99, 43, 127])
layer.handle(PLAY_DOWN)
self.assertEqual(layer.handle([0x99, 57, 127]), [[0x99, 73, 127]])
self.assertFalse(layer.restart_pattern)
def test_pattern_pads_on_the_movers_layer_are_not_can_patterns(self):
layer = PlayLayer()
layer.handle(PAUSE_DOWN)
layer.handle([0x99, 42, 127])
self.assertIsNone(layer.pattern)
def test_every_movement_pad_settles_when_it_goes_off(self):
for pad_note, sent in ((51, 99), (44, 92), (47, 95), (40, 88)):
layer = PlayLayer()