(use-modules (starlet fixture) (starlet state) (starlet playback) (starlet engine) (starlet scanout) (starlet effects) (starlet colours) (starlet clock) (starlet attributes) (starlet cue-list) (starlet attributes) (starlet fixture-library generic dimmer) (starlet fixture-library stairville z120m) (starlet fixture-library robe dl7s) (open-sound-control server-thread) (open-sound-control client)) ;; Patch fixtures (patch-fixture! mhLL 1) (patch-fixture! mhL 52) (patch-fixture! mhR 104) (patch-fixture! mhRR 156) (patch-fixture! washL 260) (patch-fixture! washM 261) (patch-fixture! washR 262) (patch-fixture! ledLL 238) (patch-fixture! ledL 232) (patch-fixture! ledR 250) (patch-fixture! ledRR 244) (patch-fixture! goboL 263) (patch-fixture! goboR 264) (patch-fixture! domeL 265) (patch-fixture! domeR 266) (patch-fixture! apronL 267) (patch-fixture! apronR 268) (patch-fixture! highsideL 269) (patch-fixture! highsideR 270) (patch-fixture! floodL 271) (patch-fixture! floodR 272) ;; Set up some groups (define front-leds (list ledLL ledL ledR ledRR)) (define front-wash (list washL washM washR)) ;; Make a cue list (define my-cues (cue-list (cue 1 (crossfade 3 (lighting-state (at washL washM washR 80)))) (cue 2 (crossfade 2 5 (lighting-state (at washL washM washR 0) (at ledL ledR colour (cmy 0 0 24)) (at ledL ledR 100)))) (cue 3 (snap blackout)) (cue 4 (crossfade 1 (lighting-state (at washM 100)))) (cue 5 track-intensities (crossfade 5 (lighting-state (at ledL ledR 30))) (crossfade 2 #:up-delay 5 (lighting-state (at apronL apronR 100)))) (cue 6 (snap (lighting-state (at washL washR 20)))))) (define pb (make-playback #:cue-list my-cues #:recovery-file "recovery.q")) ;; OSC controls (define osc-server (make-osc-server-thread "7770")) (define osc-send-addr (make-osc-address "7771")) (add-osc-method osc-server "/starlet/selection/clear" (lambda () (sel #f))) (add-osc-method osc-server "/starlet/selection/mhLL" (lambda () (sel mhLL))) (add-osc-method osc-server "/starlet/selection/mhL" (lambda () (sel mhL))) (add-osc-method osc-server "/starlet/selection/mhR" (lambda () (sel mhR))) (add-osc-method osc-server "/starlet/selection/mhRR" (lambda () (sel mhRR))) (osc-send osc-send-addr "/x1k2/leds/*" 1)