Extensionbarebones DMX interface. Not intended to be used directly, but rather to be subclassed by a class that implements the actual DMX interface. For serial-based hardware, see SimpleAbstractSerialDMX.
create a new SimpleDMX object
| universeSizes |
An array of integers, one for each universe, specifying the number of channels in each universe. If not specified, defaults to 512 channels per universe. |
| cmdperiod |
if |
amount of time to wait before sending DMX data, in seconds. Defaults to nil.
add the current state of a SimpleDMXFixture to the internal DMX state. Since the fixture knows its universe, it is added to the respective universe. Fails silently if the fixture does not have known universeId. See getUniverse for details.
| fixture |
the |
add values to the internal DMX state. The values are added to the respective universe.
| channel |
the index where to start inserting values. |
| vals |
an array of values to add. |
| universeId |
the |
set state(s) of the specified universe. See SimpleDMXUniverse: state for details.
| state |
an array of values to set. If an array, it is assumed to be an array of values to set. |
| universeId |
the |
set all channels in a universe to 0.
| universeId |
the |
set all channels in all universes to 0.
an array of SimpleDMXUniverse objects.
returns the SimpleDMXUniverse with the given universeId. If no such universe exists, returns nil.
| id |
the |
if true, debugging information will be printed to the console.
send the current DMX state to the hardware.
| universeId |
the |