blob: 2ab7ce2daa259c2567a8396d43b48df7a95d11f0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
(define-module (starlet fixture-library generic)
#:use-module (oop goops)
#:use-module (starlet base)
#:export (<generic-dimmer>))
(define-class <generic-dimmer> (<fixture>)
(attributes
#:init-form (list
(attr-continuous 'intensity '(0 100) 0))))
(define-method (scanout-fixture (fixture <generic-dimmer>)
get-attr set-chan set-chan-16bit)
;; Set DMX value for intensity
(set-chan 1 (percent->dmxval (get-attr 'intensity))))
|